Home
last modified time | relevance | path

Searched refs:JSONBasicValue (Results 1 – 6 of 6) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/platform/
DJSONValues.h95 class PLATFORM_EXPORT JSONBasicValue : public JSONValue {
98 static PassRefPtr<JSONBasicValue> create(bool value) in create()
100 return adoptRef(new JSONBasicValue(value)); in create()
103 static PassRefPtr<JSONBasicValue> create(int value) in create()
105 return adoptRef(new JSONBasicValue(value)); in create()
108 static PassRefPtr<JSONBasicValue> create(double value) in create()
110 return adoptRef(new JSONBasicValue(value)); in create()
123 explicit JSONBasicValue(bool value) : JSONValue(TypeBoolean), m_boolValue(value) { } in JSONBasicValue() function
124 explicit JSONBasicValue(int value) : JSONValue(TypeNumber), m_doubleValue((double)value) { } in JSONBasicValue() function
125 explicit JSONBasicValue(double value) : JSONValue(TypeNumber), m_doubleValue(value) { } in JSONBasicValue() function
[all …]
DJSONValues.cpp160 bool JSONBasicValue::asBoolean(bool* output) const in asBoolean()
168 bool JSONBasicValue::asNumber(double* output) const in asNumber()
176 bool JSONBasicValue::asNumber(long* output) const in asNumber()
184 bool JSONBasicValue::asNumber(int* output) const in asNumber()
192 bool JSONBasicValue::asNumber(unsigned long* output) const in asNumber()
200 bool JSONBasicValue::asNumber(unsigned* output) const in asNumber()
208 void JSONBasicValue::writeJSON(StringBuilder* output) const in writeJSON()
/external/chromium_org/third_party/WebKit/Source/core/inspector/
DInspectorState.h67 …void setBoolean(const String& propertyName, bool value) { setValue(propertyName, JSONBasicValue::c… in setBoolean()
69 …void setLong(const String& propertyName, long value) { setValue(propertyName, JSONBasicValue::crea… in setLong()
70 …e(const String& propertyName, double value) { setValue(propertyName, JSONBasicValue::create(value)… in setDouble()
DJSONParser.cpp357 result = JSONBasicValue::create(true); in buildValue()
360 result = JSONBasicValue::create(false); in buildValue()
367 result = JSONBasicValue::create(value); in buildValue()
DInspectorDatabaseAgent.cpp95 … case SQLValue::NumberValue: values->addItem(JSONBasicValue::create(value.number())); break; in handleEvent()
/external/chromium_org/third_party/WebKit/Source/bindings/v8/
DScriptValue.cpp81 return JSONBasicValue::create(value->BooleanValue()); in v8ToJSONValue()
83 return JSONBasicValue::create(value->NumberValue()); in v8ToJSONValue()