OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // Stores information about an omnibox interaction. | 5 // Stores information about an omnibox interaction. |
6 | 6 |
7 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
10 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 enum PageClassification { | 66 enum PageClassification { |
67 INVALID_SPEC = 0; // invalid URI; shouldn't happen | 67 INVALID_SPEC = 0; // invalid URI; shouldn't happen |
68 NEW_TAB_PAGE = 1; // chrome://newtab/ | 68 NEW_TAB_PAGE = 1; // chrome://newtab/ |
69 // Note that chrome://newtab/ doesn't have to be the built-in | 69 // Note that chrome://newtab/ doesn't have to be the built-in |
70 // version; it could be replaced by an extension. | 70 // version; it could be replaced by an extension. |
71 BLANK = 2; // about:blank | 71 BLANK = 2; // about:blank |
72 HOMEPAGE = 3; // user switched settings to "open this page" mode. | 72 HOMEPAGE = 3; // user switched settings to "open this page" mode. |
73 // Note that if the homepage is set to the new tab page or about blank, | 73 // Note that if the homepage is set to the new tab page or about blank, |
74 // then we'll classify the web page into those categories, not HOMEPAGE. | 74 // then we'll classify the web page into those categories, not HOMEPAGE. |
75 OTHER = 4; // everything not included somewhere else on this list | 75 OTHER = 4; // everything not included somewhere else on this list |
76 INSTANT_NEW_TAB_PAGE = 5; // new tab page rendered by Instant | 76 // The instant new tab page enum value was deprecated on August 2, 2013. |
| 77 OBSOLETE_INSTANT_NEW_TAB_PAGE = 5; |
77 // The user is on a search result page that's doing search term | 78 // The user is on a search result page that's doing search term |
78 // replacement, meaning the search terms should've appeared in the omnibox | 79 // replacement, meaning the search terms should've appeared in the omnibox |
79 // before the user started editing it, not the URL of the page. | 80 // before the user started editing it, not the URL of the page. |
80 SEARCH_RESULT_PAGE_DOING_SEARCH_TERM_REPLACEMENT = 6; | 81 SEARCH_RESULT_PAGE_DOING_SEARCH_TERM_REPLACEMENT = 6; |
| 82 // The new tab page in which this omnibox interaction first started |
| 83 // with the user having focus in the omnibox. |
| 84 INSTANT_NEW_TAB_PAGE_WITH_OMNIBOX_AS_STARTING_FOCUS = 7; |
| 85 // The new tab page in which this omnibox interaction first started |
| 86 // with the user having focus in the fakebox. |
| 87 INSTANT_NEW_TAB_PAGE_WITH_FAKEBOX_AS_STARTING_FOCUS = 8; |
81 } | 88 } |
82 optional PageClassification current_page_classification = 10; | 89 optional PageClassification current_page_classification = 10; |
83 | 90 |
84 // What kind of input the user provided. | 91 // What kind of input the user provided. |
85 enum InputType { | 92 enum InputType { |
86 INVALID = 0; // Empty input (should not reach here) | 93 INVALID = 0; // Empty input (should not reach here) |
87 UNKNOWN = 1; // Valid input whose type cannot be determined | 94 UNKNOWN = 1; // Valid input whose type cannot be determined |
88 REQUESTED_URL = 2; // DEPRECATED. Input autodetected as UNKNOWN, which the | 95 REQUESTED_URL = 2; // DEPRECATED. Input autodetected as UNKNOWN, which the |
89 // user wants to treat as an URL by specifying a | 96 // user wants to treat as an URL by specifying a |
90 // desired_tld | 97 // desired_tld |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 // See AutocompleteController::ResetSession() for more details on the | 189 // See AutocompleteController::ResetSession() for more details on the |
183 // definition of a session. | 190 // definition of a session. |
184 // See chrome/browser/autocomplete/search_provider.cc for a specific usage | 191 // See chrome/browser/autocomplete/search_provider.cc for a specific usage |
185 // example. | 192 // example. |
186 repeated fixed32 field_trial_triggered_in_session = 4; | 193 repeated fixed32 field_trial_triggered_in_session = 4; |
187 } | 194 } |
188 // A list of diagnostic information about each provider. Providers | 195 // A list of diagnostic information about each provider. Providers |
189 // will appear at most once in this list. | 196 // will appear at most once in this list. |
190 repeated ProviderInfo provider_info = 12; | 197 repeated ProviderInfo provider_info = 12; |
191 } | 198 } |
OLD | NEW |