Lines Matching defs:field

51 // for an int field.  Do not report failures for missing fields.
55 // For nested field, the internal message also has to implement the registration
66 // For repeated field, we just assume ScopedVector for its container
111 virtual bool Convert(const base::Value& value, FieldType* field) const = 0;
118 FieldType StructType::* field,
121 field_pointer_(field),
144 virtual bool Convert(const base::Value& value, int* field) const OVERRIDE {
145 return value.GetAsInteger(field);
158 const base::Value& value, std::string* field) const OVERRIDE {
159 return value.GetAsString(field);
172 const base::Value& value, string16* field) const OVERRIDE {
173 return value.GetAsString(field);
185 virtual bool Convert(const base::Value& value, double* field) const OVERRIDE {
186 return value.GetAsDouble(field);
198 virtual bool Convert(const base::Value& value, bool* field) const OVERRIDE {
199 return value.GetAsBoolean(field);
209 typedef bool(*ConvertFunc)(const base::Value* value, FieldType* field);
215 FieldType* field) const OVERRIDE {
216 return convert_func_(&value, field);
228 typedef bool(*ConvertFunc)(const StringPiece& value, FieldType* field);
234 FieldType* field) const OVERRIDE {
237 convert_func_(string_value, field);
252 const base::Value& value, NestedType* field) const OVERRIDE {
253 return converter_.Convert(value, field);
267 const base::Value& value, ScopedVector<Element>* field) const OVERRIDE {
270 // The field is not a list.
274 field->reserve(list->GetSize());
282 field->push_back(e.release());
303 ScopedVector<NestedType>* field) const OVERRIDE {
308 field->reserve(list->GetSize());
316 field->push_back(nested.release());
334 typedef bool(*ConvertFunc)(const base::Value* value, NestedType* field);
340 ScopedVector<NestedType>* field) const OVERRIDE {
345 field->reserve(list->GetSize());
353 field->push_back(nested.release());
378 int StructType::* field) {
380 field_name, field, new internal::BasicValueConverter<int>));
384 std::string StructType::* field) {
386 field_name, field, new internal::BasicValueConverter<std::string>));
390 string16 StructType::* field) {
392 field_name, field, new internal::BasicValueConverter<string16>));
396 bool StructType::* field) {
398 field_name, field, new internal::BasicValueConverter<bool>));
402 double StructType::* field) {
404 field_name, field, new internal::BasicValueConverter<double>));
409 const std::string& field_name, NestedType StructType::* field) {
412 field,
419 FieldType StructType::* field,
423 field,
430 FieldType StructType::* field,
434 field,
439 ScopedVector<int> StructType::* field) {
442 field_name, field, new internal::RepeatedValueConverter<int>));
446 ScopedVector<std::string> StructType::* field) {
450 field,
455 ScopedVector<string16> StructType::* field) {
459 field,
464 ScopedVector<double> StructType::* field) {
467 field_name, field, new internal::RepeatedValueConverter<double>));
471 ScopedVector<bool> StructType::* field) {
474 field_name, field, new internal::RepeatedValueConverter<bool>));
480 ScopedVector<NestedType> StructType::* field,
485 field,
492 ScopedVector<NestedType> StructType::* field) {
496 field,
508 const base::Value* field = NULL;
509 if (dictionary_value->Get(field_converter->field_path(), &field)) {
510 if (!field_converter->ConvertField(*field, output)) {
511 DVLOG(1) << "failure at field " << field_converter->field_path();