Home
last modified time | relevance | path

Searched refs:ScriptValue (Results 1 – 25 of 68) sorted by relevance

123

/external/webkit/Source/WebCore/bindings/v8/
DScriptValue.h49 class ScriptValue {
51 ScriptValue() {} in ScriptValue() function
53 ScriptValue(v8::Handle<v8::Value> value) in ScriptValue() function
64 ScriptValue(const ScriptValue& value) in ScriptValue() function
75 ScriptValue& operator=(const ScriptValue& value)
93 bool operator==(const ScriptValue value) const
98 bool isEqual(ScriptState*, const ScriptValue& value) const in isEqual()
108 bool operator!=(const ScriptValue value) const
134 static ScriptValue deserialize(ScriptState*, SerializedScriptValue*);
136 static ScriptValue undefined() { return ScriptValue(v8::Undefined()); } in undefined()
[all …]
DScriptFunctionCall.h40 class ScriptValue; variable
48 void appendArgument(const ScriptValue&);
60 Vector<ScriptValue> m_arguments;
66 ScriptValue call(bool& hadException, bool reportExceptions = true);
67 ScriptValue call();
77 ScriptCallback(ScriptState*, ScriptValue);
79 ScriptValue call();
80 ScriptValue call(bool& hadException);
83 ScriptValue m_function;
DWorkerScriptController.h42 class ScriptValue; variable
54 ScriptValue evaluate(const ScriptSourceCode&);
55 ScriptValue evaluate(const ScriptSourceCode&, ScriptValue* exception);
57 void setException(ScriptValue);
DScriptFunctionCall.cpp56 void ScriptCallArgumentHandler::appendArgument(const ScriptValue& argument) in appendArgument()
115 ScriptValue ScriptFunctionCall::call(bool& hadException, bool reportExceptions) in call()
123 return ScriptValue(); in call()
136 return ScriptValue(); in call()
139 return ScriptValue(result); in call()
142 ScriptValue ScriptFunctionCall::call() in call()
175 ScriptCallback::ScriptCallback(ScriptState* state, ScriptValue function) in ScriptCallback()
181 ScriptValue ScriptCallback::call() in call()
187 ScriptValue ScriptCallback::call(bool& hadException) in call()
205 return ScriptValue(); in call()
[all …]
DWorkerScriptController.cpp64 ScriptValue WorkerScriptController::evaluate(const ScriptSourceCode& sourceCode) in evaluate()
69 ScriptValue WorkerScriptController::evaluate(const ScriptSourceCode& sourceCode, ScriptValue* excep… in evaluate()
72 return ScriptValue(); in evaluate()
75ScriptValue result = m_proxy->evaluate(sourceCode.source(), sourceCode.url().string(), WTF::toZero… in evaluate()
103 void WorkerScriptController::setException(ScriptValue exception) in setException()
DScriptValue.cpp41 PassRefPtr<SerializedScriptValue> ScriptValue::serialize(ScriptState* scriptState) in serialize()
47 ScriptValue ScriptValue::deserialize(ScriptState* scriptState, SerializedScriptValue* value) in deserialize()
50 return ScriptValue(value->deserialize()); in deserialize()
53 bool ScriptValue::getString(String& result) const in getString()
65 String ScriptValue::toString(ScriptState*) const in toString()
128 PassRefPtr<InspectorValue> ScriptValue::toInspectorValue(ScriptState* scriptState) const in toInspectorValue()
DWorkerContextExecutionProxy.cpp191 ScriptValue WorkerContextExecutionProxy::evaluate(const String& script, const String& fileName, con… in evaluate()
196 return ScriptValue(); in evaluate()
208 return ScriptValue(); in evaluate()
220 state->exception = ScriptValue(exceptionCatcher.Exception()); in evaluate()
227 return ScriptValue(); in evaluate()
229 return ScriptValue(result); in evaluate()
/external/webkit/Source/WebCore/bindings/js/
DScriptValue.h47 class ScriptValue {
49 ScriptValue() { } in ScriptValue() function
50 ScriptValue(JSC::JSGlobalData& globalData, JSC::JSValue value) : m_value(globalData, value) {} in ScriptValue() function
51 virtual ~ScriptValue() {} in ~ScriptValue()
56 bool isEqual(ScriptState*, const ScriptValue&) const;
63 bool operator==(const ScriptValue& other) const { return m_value == other.m_value; }
66 …static ScriptValue deserialize(ScriptState*, SerializedScriptValue*, SerializationErrorMode = Thro…
68 static ScriptValue undefined();
DScriptValue.cpp47 bool ScriptValue::getString(ScriptState* scriptState, String& result) const in getString()
59 String ScriptValue::toString(ScriptState* scriptState) const in toString()
68 bool ScriptValue::isEqual(ScriptState* scriptState, const ScriptValue& anotherValue) const in isEqual()
76 bool ScriptValue::isNull() const in isNull()
83 bool ScriptValue::isUndefined() const in isUndefined()
90 bool ScriptValue::isObject() const in isObject()
97 bool ScriptValue::isFunction() const in isFunction()
103 PassRefPtr<SerializedScriptValue> ScriptValue::serialize(ScriptState* scriptState, SerializationErr… in serialize()
108 ScriptValue ScriptValue::deserialize(ScriptState* scriptState, SerializedScriptValue* value, Serial… in deserialize()
110 …return ScriptValue(scriptState->globalData(), value->deserialize(scriptState, scriptState->lexical… in deserialize()
[all …]
DWorkerScriptController.cpp102 ScriptValue WorkerScriptController::evaluate(const ScriptSourceCode& sourceCode) in evaluate()
105 return ScriptValue(); in evaluate()
107 ScriptValue exception; in evaluate()
108 ScriptValue result(evaluate(sourceCode, &exception)); in evaluate()
116 ScriptValue WorkerScriptController::evaluate(const ScriptSourceCode& sourceCode, ScriptValue* excep… in evaluate()
119 return ScriptValue(); in evaluate()
134 return ScriptValue(); in evaluate()
138 return ScriptValue(*m_globalData, comp.value()); in evaluate()
145 … *exception = ScriptValue(*m_globalData, throwError(exec, createError(exec, errorMessage.impl()))); in evaluate()
147 *exception = ScriptValue(*m_globalData, comp.value()); in evaluate()
[all …]
DScriptFunctionCall.h46 class ScriptValue; variable
53 void appendArgument(const ScriptValue&);
79 ScriptValue call(bool& hadException, bool reportExceptions = true);
80 ScriptValue call();
90 ScriptCallback(ScriptState*, ScriptValue);
92 ScriptValue call();
93 ScriptValue call(bool& hadException);
96 ScriptValue m_function;
DScriptFunctionCall.cpp54 void ScriptCallArgumentHandler::appendArgument(const ScriptValue& argument) in appendArgument()
124 ScriptValue ScriptFunctionCall::call(bool& hadException, bool reportExceptions) in call()
136 return ScriptValue(); in call()
142 return ScriptValue(); in call()
150 return ScriptValue(); in call()
153 return ScriptValue(m_exec->globalData(), result); in call()
156 ScriptValue ScriptFunctionCall::call() in call()
194 ScriptCallback::ScriptCallback(ScriptState* state, ScriptValue function) in ScriptCallback()
200 ScriptValue ScriptCallback::call() in call()
206 ScriptValue ScriptCallback::call(bool& hadException) in call()
[all …]
DWorkerScriptController.h44 class ScriptValue; variable
59 ScriptValue evaluate(const ScriptSourceCode&);
60 ScriptValue evaluate(const ScriptSourceCode&, ScriptValue* exception);
62 void setException(ScriptValue);
DJSInjectedScriptHostCustom.cpp64 Node* InjectedScriptHost::scriptValueAsNode(ScriptValue value) in scriptValueAsNode()
71 ScriptValue InjectedScriptHost::nodeAsScriptValue(ScriptState* state, Node* node) in nodeAsScriptValue()
74 return ScriptValue(state->globalData(), toJS(state, node)); in nodeAsScriptValue()
117 ScriptValue object(exec->globalData(), exec->argument(0)); in inspect()
118 ScriptValue hints(exec->globalData(), exec->argument(1)); in inspect()
DScriptController.h60 class ScriptValue; variable
95 ScriptValue executeScript(const ScriptSourceCode&);
96 ScriptValue executeScript(const String& script, bool forceUserGesture = false);
97ScriptValue executeScriptInWorld(DOMWrapperWorld*, const String& script, bool forceUserGesture = f…
106 ScriptValue evaluate(const ScriptSourceCode&);
107 ScriptValue evaluateInWorld(const ScriptSourceCode&, DOMWrapperWorld*);
/external/webkit/Source/WebCore/html/
DAsyncImageResizer.h80 …create(CachedImage*, OutputType, IntSize desiredBounds, ScriptValue successCallback, ScriptValue e…
89 …esizer(CachedImage*, OutputType, IntSize desiredBounds, ScriptValue successCallback, ScriptValue e…
93 ScriptValue m_successCallback;
94 ScriptValue m_errorCallback;
DAsyncImageResizer.cpp43 …hedImage, OutputType outputType, IntSize desiredBounds, ScriptValue successCallback, ScriptValue e… in create()
48 …hedImage, OutputType outputType, IntSize desiredBounds, ScriptValue successCallback, ScriptValue e… in AsyncImageResizer()
/external/webkit/Source/WebCore/inspector/
DScriptArguments.h42 class ScriptValue; variable
46 static PassRefPtr<ScriptArguments> create(ScriptState*, Vector<ScriptValue>& arguments);
50 const ScriptValue& argumentAt(size_t) const;
59 ScriptArguments(ScriptState*, Vector<ScriptValue>& arguments);
62 Vector<ScriptValue> m_arguments;
DScriptArguments.cpp38 PassRefPtr<ScriptArguments> ScriptArguments::create(ScriptState* scriptState, Vector<ScriptValue>& … in create()
43 ScriptArguments::ScriptArguments(ScriptState* scriptState, Vector<ScriptValue>& arguments) in ScriptArguments()
53 const ScriptValue &ScriptArguments::argumentAt(size_t index) const in argumentAt()
69 const ScriptValue& value = argumentAt(0); in getFirstArgumentAsString()
DInjectedScript.cpp108 ScriptValue resultValue = function.call(hadException); in nodeForObjectId()
138 ScriptValue callFramesValue = function.call(); in callFrames()
146 PassRefPtr<InspectorObject> InjectedScript::wrapObject(ScriptValue value, const String& groupName) in wrapObject()
154 ScriptValue r = wrapFunction.call(hadException); in wrapObject()
198 ScriptValue resultValue = function.call(hadException); in makeCall()
223 ScriptValue InjectedScript::nodeAsScriptValue(Node* node) in nodeAsScriptValue()
DInjectedScriptHost.h55 class ScriptValue; variable
92 static Node* scriptValueAsNode(ScriptValue);
93 static ScriptValue nodeAsScriptValue(ScriptState*, Node*);
/external/webkit/Source/WebCore/bindings/
DScriptControllerBase.cpp48 ScriptValue ScriptController::executeScript(const String& script, bool forceUserGesture) in executeScript()
53 ScriptValue ScriptController::executeScript(const ScriptSourceCode& sourceCode) in executeScript()
56 return ScriptValue(); in executeScript()
61 ScriptValue result = evaluate(sourceCode); in executeScript()
89 ScriptValue result = executeScript(decodedURL.substring(javascriptSchemeLength), false); in executeIfJavaScriptURL()
/external/webkit/Source/WebCore/dom/
DCustomEvent.h44 …void initCustomEvent(const AtomicString& type, bool canBubble, bool cancelable, ScriptValue detail…
48 ScriptValue detail() const { return m_detail; } in detail()
53 ScriptValue m_detail;
/external/webkit/Source/WebCore/css/
DMediaQueryListListener.h37 static PassRefPtr<MediaQueryListListener> create(ScriptValue value) in create()
48 MediaQueryListListener(ScriptValue value) : m_value(value) { } in MediaQueryListListener()
50 ScriptValue m_value;
/external/webkit/Source/WebCore/bindings/v8/custom/
DV8InjectedScriptHostCustom.cpp52 Node* InjectedScriptHost::scriptValueAsNode(ScriptValue value) in scriptValueAsNode()
59 ScriptValue InjectedScriptHost::nodeAsScriptValue(ScriptState* state, Node* node) in nodeAsScriptValue()
65 return ScriptValue(toV8(node)); in nodeAsScriptValue()
102 ScriptValue object(args[0]); in inspectCallback()
103 ScriptValue hints(args[1]); in inspectCallback()

123