| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // 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 |
| 79 // replacement, meaning the search terms should've appeared in the omnibox | 79 // replacement, meaning the search terms should've appeared in the omnibox |
| 80 // 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. |
| 81 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 | 82 // The new tab page in which this omnibox interaction first started |
| 83 // with the user having focus in the omnibox. | 83 // with the user having focus in the omnibox. |
| 84 INSTANT_NEW_TAB_PAGE_WITH_OMNIBOX_AS_STARTING_FOCUS = 7; | 84 INSTANT_NEW_TAB_PAGE_WITH_OMNIBOX_AS_STARTING_FOCUS = 7; |
| 85 // The new tab page in which this omnibox interaction first started | 85 // The new tab page in which this omnibox interaction first started |
| 86 // with the user having focus in the fakebox. | 86 // with the user having focus in the fakebox. |
| 87 INSTANT_NEW_TAB_PAGE_WITH_FAKEBOX_AS_STARTING_FOCUS = 8; | 87 INSTANT_NEW_TAB_PAGE_WITH_FAKEBOX_AS_STARTING_FOCUS = 8; |
| 88 // The user is on a search result page that's not doing search term |
| 89 // replacement, meaning the URL of the page should've appeared in the |
| 90 // omnibox before the user started editing it, not the search terms. |
| 91 SEARCH_RESULT_PAGE_NO_SEARCH_TERM_REPLACEMENT = 9; |
| 88 } | 92 } |
| 89 optional PageClassification current_page_classification = 10; | 93 optional PageClassification current_page_classification = 10; |
| 90 | 94 |
| 91 // What kind of input the user provided. | 95 // What kind of input the user provided. |
| 92 enum InputType { | 96 enum InputType { |
| 93 INVALID = 0; // Empty input (should not reach here) | 97 INVALID = 0; // Empty input (should not reach here) |
| 94 UNKNOWN = 1; // Valid input whose type cannot be determined | 98 UNKNOWN = 1; // Valid input whose type cannot be determined |
| 95 REQUESTED_URL = 2; // DEPRECATED. Input autodetected as UNKNOWN, which the | 99 REQUESTED_URL = 2; // DEPRECATED. Input autodetected as UNKNOWN, which the |
| 96 // user wants to treat as an URL by specifying a | 100 // user wants to treat as an URL by specifying a |
| 97 // desired_tld | 101 // desired_tld |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 // See AutocompleteController::ResetSession() for more details on the | 193 // See AutocompleteController::ResetSession() for more details on the |
| 190 // definition of a session. | 194 // definition of a session. |
| 191 // See chrome/browser/autocomplete/search_provider.cc for a specific usage | 195 // See chrome/browser/autocomplete/search_provider.cc for a specific usage |
| 192 // example. | 196 // example. |
| 193 repeated fixed32 field_trial_triggered_in_session = 4; | 197 repeated fixed32 field_trial_triggered_in_session = 4; |
| 194 } | 198 } |
| 195 // A list of diagnostic information about each provider. Providers | 199 // A list of diagnostic information about each provider. Providers |
| 196 // will appear at most once in this list. | 200 // will appear at most once in this list. |
| 197 repeated ProviderInfo provider_info = 12; | 201 repeated ProviderInfo provider_info = 12; |
| 198 } | 202 } |
| OLD | NEW |