Lines Matching defs:Category
29 // Term values for kSchemeKind category:
37 const char kCategoryField[] = "category";
160 Category::CategoryType type;
165 { Category::CATEGORY_KIND, "http://schemas.google.com/g/2005#kind" },
166 { Category::CATEGORY_LABEL, "http://schemas.google.com/g/2005/labels" },
290 // Category implementation
292 Category::Category() : type_(CATEGORY_UNKNOWN) {
295 // Converts category.scheme into CategoryType enum.
296 bool Category::GetCategoryTypeFromScheme(
297 const base::StringPiece& scheme, Category::CategoryType* result) {
309 void Category::RegisterJSONConverter(
310 base::JSONValueConverter<Category>* converter) {
311 converter->RegisterStringField(kLabelField, &Category::label_);
312 converter->RegisterCustomField<Category::CategoryType>(
313 kSchemeField, &Category::type_, &Category::GetCategoryTypeFromScheme);
314 converter->RegisterStringField(kTermField, &Category::term_);
356 converter->template RegisterRepeatedMessage<Category>(
545 const Category* category = categories_[i];
546 if (category->type() == Category::CATEGORY_KIND)
547 kind_ = GetEntryKindFromTerm(category->term());
548 else if (category->type() == Category::CATEGORY_LABEL)
549 labels_.push_back(category->label());