Searched defs:scriptValue (Results 1 - 25 of 40) sorted by relevance

12

/external/chromium_org/third_party/skia/src/animator/
H A DSkDrawTextBox.cpp65 bool SkDrawTextBox::setProperty(int index, SkScriptValue& scriptValue) argument
67 return this->INHERITED::setProperty(index, scriptValue);
H A DSkDisplayMath.cpp133 SkScriptValue* scriptValue) {
134 if (scriptValue == NULL)
213 scriptValue->fOperand.fScalar = scalarResult;
214 scriptValue->fType = SkType_Float;
131 executeFunction(SkDisplayable* target, int index, SkTDArray<SkScriptValue>& parameters, SkDisplayTypes type, SkScriptValue* scriptValue) argument
H A DSkAnimateBase.cpp213 SkScriptValue scriptValue; local
214 bool success = engine.evaluateScript(&script, &scriptValue);
215 if (success && scriptValue.fType == SkType_Displayable)
216 fTarget = scriptValue.fOperand.fDrawable;
H A DSkDisplayTypes.cpp123 SkScriptValue* scriptValue) {
124 if (scriptValue == NULL)
129 scriptValue->fType = SkType_String;
141 scriptValue->fOperand.fString = new SkString(&value.c_str()[start], end - start);
143 scriptValue->fOperand.fString = new SkString(value);
152 bool SkDisplayString::getProperty(int index, SkScriptValue* scriptValue) const {
155 scriptValue->fType = SkType_Int;
156 scriptValue->fOperand.fS32 = (int32_t) value.size();
121 executeFunction(SkDisplayable* target, int index, SkTDArray<SkScriptValue>& parameters, SkDisplayTypes type, SkScriptValue* scriptValue) argument
H A DSkDrawMatrix.cpp214 bool SkDrawMatrix::setProperty(int index, SkScriptValue& scriptValue) { argument
215 SkScalar number = scriptValue.fOperand.fScalar;
219 SkASSERT(scriptValue.fType == SkType_Array);
220 SkASSERT(scriptValue.fOperand.fArray->getType() == SkType_Float);
221 SkASSERT(scriptValue.fOperand.fArray->count() == 2);
222 // SkParse::FindScalars(scriptValue.fOperand.fString->c_str(), xy, 2);
223 fMatrix.setTranslateX((*scriptValue.fOperand.fArray)[0].fScalar);
224 fMatrix.setTranslateY((*scriptValue.fOperand.fArray)[1].fScalar);
H A DSkDrawPaint.cpp150 SkScriptValue* scriptValue) {
151 if (scriptValue == NULL)
160 scriptValue->fType = SkType_Float;
162 scriptValue->fOperand.fScalar = paint.measureText(parameters[0].fOperand.fString->c_str(),
165 // scriptValue->fOperand.fScalar / 65536.0f);
148 executeFunction(SkDisplayable* target, int index, SkTDArray<SkScriptValue>& parameters, SkDisplayTypes type, SkScriptValue* scriptValue) argument
H A DSkDisplayXMLParser.cpp152 SkScriptValue scriptValue; local
153 scriptValue.fOperand.fDisplayable = ref;
154 scriptValue.fType = ref->getType();
155 displayable->setProperty(info->propertyIndex(), scriptValue);
H A DSkMemberInfo.cpp188 SkScriptValue scriptValue; local
189 scriptValue.fType = SkType_Unknown;
190 scriptValue.fOperand.fS32 = 0;
252 success = engine.evaluateScript(&script, &scriptValue);
259 if (scriptValue.fType == SkType_Displayable) {
262 maker.findKey(scriptValue.fOperand.fDisplayable, &charPtr);
263 scriptValue.fOperand.fString = new SkString(charPtr);
264 scriptValue.fType = SkType_String;
265 engine.SkScriptEngine::track(scriptValue.fOperand.fString);
270 displayable->setReference(this, scriptValue
313 SkScriptValue scriptValue; local
316 displayable->setProperty(propertyIndex(), scriptValue); local
367 displayable->setProperty(propertyIndex(), scriptValue); local
[all...]
H A DSkAnimatorScript.cpp91 bool SkAnimatorScript::Box(void* user, SkScriptValue* scriptValue) { argument
93 SkDisplayTypes type = scriptValue->fType;
97 SkDisplayArray* boxedValue = new SkDisplayArray(*scriptValue->fOperand.fArray);
103 boxedValue->value = !! scriptValue->fOperand.fS32;
108 boxedValue->value = scriptValue->fOperand.fS32;
113 boxedValue->value = scriptValue->fOperand.fScalar;
116 SkDisplayString* boxedValue = new SkDisplayString(*scriptValue->fOperand.fString);
120 scriptValue->fOperand.fObject = scriptValue->fOperand.fDisplayable;
121 scriptValue
141 SkScriptValue* scriptValue = params.begin(); local
441 Unbox(void* m, SkScriptValue* scriptValue) argument
[all...]
/external/skia/src/animator/
H A DSkDrawTextBox.cpp65 bool SkDrawTextBox::setProperty(int index, SkScriptValue& scriptValue) argument
67 return this->INHERITED::setProperty(index, scriptValue);
H A DSkDisplayMath.cpp133 SkScriptValue* scriptValue) {
134 if (scriptValue == NULL)
213 scriptValue->fOperand.fScalar = scalarResult;
214 scriptValue->fType = SkType_Float;
131 executeFunction(SkDisplayable* target, int index, SkTDArray<SkScriptValue>& parameters, SkDisplayTypes type, SkScriptValue* scriptValue) argument
H A DSkAnimateBase.cpp213 SkScriptValue scriptValue; local
214 bool success = engine.evaluateScript(&script, &scriptValue);
215 if (success && scriptValue.fType == SkType_Displayable)
216 fTarget = scriptValue.fOperand.fDrawable;
H A DSkDisplayTypes.cpp123 SkScriptValue* scriptValue) {
124 if (scriptValue == NULL)
129 scriptValue->fType = SkType_String;
141 scriptValue->fOperand.fString = new SkString(&value.c_str()[start], end - start);
143 scriptValue->fOperand.fString = new SkString(value);
152 bool SkDisplayString::getProperty(int index, SkScriptValue* scriptValue) const {
155 scriptValue->fType = SkType_Int;
156 scriptValue->fOperand.fS32 = (int32_t) value.size();
121 executeFunction(SkDisplayable* target, int index, SkTDArray<SkScriptValue>& parameters, SkDisplayTypes type, SkScriptValue* scriptValue) argument
H A DSkDrawMatrix.cpp214 bool SkDrawMatrix::setProperty(int index, SkScriptValue& scriptValue) { argument
215 SkScalar number = scriptValue.fOperand.fScalar;
219 SkASSERT(scriptValue.fType == SkType_Array);
220 SkASSERT(scriptValue.fOperand.fArray->getType() == SkType_Float);
221 SkASSERT(scriptValue.fOperand.fArray->count() == 2);
222 // SkParse::FindScalars(scriptValue.fOperand.fString->c_str(), xy, 2);
223 fMatrix.setTranslateX((*scriptValue.fOperand.fArray)[0].fScalar);
224 fMatrix.setTranslateY((*scriptValue.fOperand.fArray)[1].fScalar);
H A DSkDrawPaint.cpp150 SkScriptValue* scriptValue) {
151 if (scriptValue == NULL)
160 scriptValue->fType = SkType_Float;
162 scriptValue->fOperand.fScalar = paint.measureText(parameters[0].fOperand.fString->c_str(),
165 // scriptValue->fOperand.fScalar / 65536.0f);
148 executeFunction(SkDisplayable* target, int index, SkTDArray<SkScriptValue>& parameters, SkDisplayTypes type, SkScriptValue* scriptValue) argument
H A DSkDisplayXMLParser.cpp152 SkScriptValue scriptValue; local
153 scriptValue.fOperand.fDisplayable = ref;
154 scriptValue.fType = ref->getType();
155 displayable->setProperty(info->propertyIndex(), scriptValue);
H A DSkMemberInfo.cpp188 SkScriptValue scriptValue; local
189 scriptValue.fType = SkType_Unknown;
190 scriptValue.fOperand.fS32 = 0;
252 success = engine.evaluateScript(&script, &scriptValue);
259 if (scriptValue.fType == SkType_Displayable) {
262 maker.findKey(scriptValue.fOperand.fDisplayable, &charPtr);
263 scriptValue.fOperand.fString = new SkString(charPtr);
264 scriptValue.fType = SkType_String;
265 engine.SkScriptEngine::track(scriptValue.fOperand.fString);
270 displayable->setReference(this, scriptValue
313 SkScriptValue scriptValue; local
316 displayable->setProperty(propertyIndex(), scriptValue); local
367 displayable->setProperty(propertyIndex(), scriptValue); local
[all...]
H A DSkAnimatorScript.cpp91 bool SkAnimatorScript::Box(void* user, SkScriptValue* scriptValue) { argument
93 SkDisplayTypes type = scriptValue->fType;
97 SkDisplayArray* boxedValue = new SkDisplayArray(*scriptValue->fOperand.fArray);
103 boxedValue->value = !! scriptValue->fOperand.fS32;
108 boxedValue->value = scriptValue->fOperand.fS32;
113 boxedValue->value = scriptValue->fOperand.fScalar;
116 SkDisplayString* boxedValue = new SkDisplayString(*scriptValue->fOperand.fString);
120 scriptValue->fOperand.fObject = scriptValue->fOperand.fDisplayable;
121 scriptValue
141 SkScriptValue* scriptValue = params.begin(); local
441 Unbox(void* m, SkScriptValue* scriptValue) argument
[all...]
/external/chromium_org/third_party/WebKit/Source/core/animation/
H A DEffectInput.cpp58 ScriptValue scriptValue; local
59 bool frameHasOffset = DictionaryHelper::get(keyframeDictionaryVector[i], "offset", scriptValue) && !scriptValue.isNull();
/external/chromium_org/third_party/WebKit/Source/bindings/modules/v8/
H A DIDBBindingUtilities.cpp387 bool canInjectIDBKeyIntoScriptValue(v8::Isolate* isolate, const ScriptValue& scriptValue, const IDBKeyPath& keyPath) argument
399 v8::Handle<v8::Value> v8Value(scriptValue.v8Value());
419 IDBKey* scriptValueToIDBKey(v8::Isolate* isolate, const ScriptValue& scriptValue) argument
423 v8::Handle<v8::Value> v8Value(scriptValue.v8Value());
427 IDBKeyRange* scriptValueToIDBKeyRange(v8::Isolate* isolate, const ScriptValue& scriptValue) argument
430 v8::Handle<v8::Value> value(scriptValue.v8Value());
449 ScriptValue scriptValue(scriptState, deserializeIDBValueBuffer(isolate, buffer.get(), blobInfo));
453 IDBKey* expectedKey = createIDBKeyFromScriptValueAndKeyPathInternal(isolate, scriptValue, keyPath, allowExperimentalTypes);
456 bool injected = injectV8KeyIntoV8Value(isolate, keyValue.v8Value(), scriptValue.v8Value(), keyPath);
/external/chromium_org/third_party/WebKit/Source/modules/indexeddb/
H A DIDBCursor.cpp312 ScriptValue scriptValue = idbAnyToScriptValue(scriptState, value); local
314 return scriptValue;
/external/chromium_org/third_party/skia/src/xml/
H A DSkJSDisplayable.cpp240 SkScriptValue scriptValue; local
241 bool success = displayable->getProperty(info->propertyIndex(), &scriptValue);
242 SkASSERT(scriptValue.fType == SkType_Scalar);
243 scalar = scriptValue.fOperand.fScalar;
335 SkScriptValue scriptValue; local
336 scriptValue.fType = SkType_Scalar;
337 scriptValue.fOperand.fScalar = scalar;
338 displayable->setProperty(-1 - (int) info->fOffset, scriptValue);
/external/skia/src/xml/
H A DSkJSDisplayable.cpp240 SkScriptValue scriptValue; local
241 bool success = displayable->getProperty(info->propertyIndex(), &scriptValue);
242 SkASSERT(scriptValue.fType == SkType_Scalar);
243 scalar = scriptValue.fOperand.fScalar;
335 SkScriptValue scriptValue; local
336 scriptValue.fType = SkType_Scalar;
337 scriptValue.fOperand.fScalar = scalar;
338 displayable->setProperty(-1 - (int) info->fOffset, scriptValue);
/external/chromium_org/third_party/WebKit/Source/core/inspector/
H A DInspectorCanvasAgent.cpp243 InjectedScriptCanvasModule InspectorCanvasAgent::injectedScriptCanvasModule(ErrorString* errorString, const ScriptValue& scriptValue) argument
247 if (scriptValue.isEmpty()) {
252 return injectedScriptCanvasModule(errorString, scriptValue.scriptState());
/external/chromium_org/third_party/WebKit/Source/modules/serviceworkers/
H A DCacheTest.cpp432 ScriptValue scriptValue = getResolveValue(result); local
433 Response* response = V8Response::toImplWithTypeCheck(isolate(), scriptValue.v8Value());
469 ScriptValue scriptValue = getResolveValue(result); local
472 Vector<v8::Handle<v8::Value> > requests = toImplArray<v8::Handle<v8::Value> >(scriptValue.v8Value(), 0, isolate(), exceptionState);
520 ScriptValue scriptValue = getResolveValue(result); local
523 Vector<v8::Handle<v8::Value> > responses = toImplArray<v8::Handle<v8::Value> >(scriptValue.v8Value(), 0, isolate(), exceptionState);
533 scriptValue = getResolveValue(result);
534 responses = toImplArray<v8::Handle<v8::Value> >(scriptValue.v8Value(), 0, isolate(), exceptionState);

Completed in 349 milliseconds

12