// chrome://newtab/. This can be either the built-in version or a
// replacement new tab page from an extension. Note that when Instant
// Extended is enabled, the new tab page will be reported as either
- // INSTANT_NEW_TAB_PAGE_WITH_OMNIBOX_AS_STARTING_FOCUS or
- // INSTANT_NEW_TAB_PAGE_WITH_FAKEBOX_AS_STARTING_FOCUS below,
+ // INSTANT_NTP_WITH_OMNIBOX_AS_STARTING_FOCUS or
+ // INSTANT_NTP_WITH_FAKEBOX_AS_STARTING_FOCUS below,
// unless an extension is replacing the new tab page, in which case
- // it will still be reported as NEW_TAB_PAGE.
- NEW_TAB_PAGE = 1;
+ // it will still be reported as NTP.
+ NTP = 1;
// about:blank.
BLANK = 2;
OTHER = 4;
// The instant new tab page enum value was deprecated on August 2, 2013.
- OBSOLETE_INSTANT_NEW_TAB_PAGE = 5;
+ OBSOLETE_INSTANT_NTP = 5;
// The user is on a search result page that's doing search term
// replacement, meaning the search terms should've appeared in the omnibox
// The new tab page in which this omnibox interaction first started
// with the user having focus in the omnibox.
- INSTANT_NEW_TAB_PAGE_WITH_OMNIBOX_AS_STARTING_FOCUS = 7;
+ INSTANT_NTP_WITH_OMNIBOX_AS_STARTING_FOCUS = 7;
// The new tab page in which this omnibox interaction first started
// with the user having focus in the fakebox.
- INSTANT_NEW_TAB_PAGE_WITH_FAKEBOX_AS_STARTING_FOCUS = 8;
+ INSTANT_NTP_WITH_FAKEBOX_AS_STARTING_FOCUS = 8;
// The user is on a search result page that's not doing search term
// replacement, meaning the URL of the page should've appeared in the
// omnibox before the user started editing it, not the search terms.
SEARCH_RESULT_PAGE_NO_SEARCH_TERM_REPLACEMENT = 9;
+
+ // When adding new classifications, please consider adding them in
+ // chrome/browser/resources/omnibox/omnibox.html
+ // so that these new options are displayed on about:omnibox.
}
optional PageClassification current_page_classification = 10;
CONTACT = 9; // The user's contacts
BOOKMARK = 10; // The user's bookmarks
ZERO_SUGGEST = 11; // Suggestions based on the current page
+ // This enum value is currently only used by Android GSA. It represents
+ // a suggestion from the phone.
+ ON_DEVICE = 12;
}
// The result set displayed on the completion popup
// What kind of result this is.
// This corresponds to the AutocompleteMatch::Type enumeration in
- // chrome/browser/autocomplete/autocomplete_match.h
+ // chrome/browser/autocomplete/autocomplete_match.h (except for Android
+ // GSA result types).
enum ResultType {
UNKNOWN_RESULT_TYPE = 0; // Unknown type (should not reach here)
URL_WHAT_YOU_TYPED = 1; // The input as a URL
SEARCH_HISTORY = 8; // A past search (with the default engine)
// containing the input
SEARCH_SUGGEST = 9; // A suggested search (with the default
- // engine)
+ // engine) query that doesn't fall into one of
+ // the more specific suggestion categories
+ // below.
SEARCH_OTHER_ENGINE = 10; // A search with a non-default engine
EXTENSION_APP = 11; // An Extension App with a title/url that
// contains the input
CONTACT = 12; // One of the user's contacts
BOOKMARK_TITLE = 13; // A bookmark whose title contains the input.
+ SEARCH_SUGGEST_ENTITY = 14; // A suggested search for an entity.
+ SEARCH_SUGGEST_INFINITE = 15; // A suggested search to complete the tail
+ // of the query.
+ SEARCH_SUGGEST_PERSONALIZED = 16; // A personalized suggested search.
+ SEARCH_SUGGEST_PROFILE = 17; // A personalized suggested search for a
+ // Google+ profile.
+ APP_RESULT = 18; // Result from an installed app
+ // (eg: a gmail email).
+ // Used by Android GSA for on-device
+ // suggestion logging.
+ APP = 19; // An app result (eg: the gmail app).
+ // Used by Android GSA for on-device
+ // suggestion logging.
}
optional ResultType result_type = 2;