Lines Matching refs:Value
23 // JSONValueConverter converts a JSON value into a C++ struct in a
52 // Convert() returns false when it fails. Here "fail" means that the value is
53 // structurally different from expected, such like a string value appears
101 virtual bool ConvertField(const base::Value& value, StructType* obj)
114 virtual bool Convert(const base::Value& value, FieldType* field) const = 0;
128 bool ConvertField(const base::Value& value, StructType* dst) const override {
129 return value_converter_->Convert(value, &(dst->*field_pointer_));
146 bool Convert(const base::Value& value, int* field) const override;
158 bool Convert(const base::Value& value, std::string* field) const override;
170 bool Convert(const base::Value& value, string16* field) const override;
181 bool Convert(const base::Value& value, double* field) const override;
192 bool Convert(const base::Value& value, bool* field) const override;
201 typedef bool(*ConvertFunc)(const base::Value* value, FieldType* field);
206 bool Convert(const base::Value& value, FieldType* field) const override {
207 return convert_func_(&value, field);
219 typedef bool(*ConvertFunc)(const StringPiece& value, FieldType* field);
224 bool Convert(const base::Value& value, FieldType* field) const override {
226 return value.GetAsString(&string_value) &&
241 bool Convert(const base::Value& value, NestedType* field) const override {
242 return converter_.Convert(value, field);
255 bool Convert(const base::Value& value,
258 if (!value.GetAsList(&list)) {
265 const base::Value* element = NULL;
291 bool Convert(const base::Value& value,
294 if (!value.GetAsList(&list))
299 const base::Value* element = NULL;
323 typedef bool(*ConvertFunc)(const base::Value* value, NestedType* field);
328 bool Convert(const base::Value& value,
331 if (!value.GetAsList(&list))
336 const base::Value* element = NULL;
420 bool (*convert_func)(const base::Value*, FieldType*)) {
470 bool (*convert_func)(const base::Value*, NestedType*)) {
489 bool Convert(const base::Value& value, StructType* output) const {
491 if (!value.GetAsDictionary(&dictionary_value))
497 const base::Value* field = NULL;