Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 option java_outer_classname = "OmniboxEventProtos"; | 10 option java_outer_classname = "OmniboxEventProtos"; |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 161 CONTACT = 9; // DEPRECATED. The user's contacts | 161 CONTACT = 9; // DEPRECATED. The user's contacts |
| 162 BOOKMARK = 10; // The user's bookmarks | 162 BOOKMARK = 10; // The user's bookmarks |
| 163 ZERO_SUGGEST = 11; // Suggestions based on the current page | 163 ZERO_SUGGEST = 11; // Suggestions based on the current page |
| 164 // This enum value is currently only used by Android GSA. It represents | 164 // This enum value is currently only used by Android GSA. It represents |
| 165 // a suggestion from the phone. | 165 // a suggestion from the phone. |
| 166 ON_DEVICE = 12; | 166 ON_DEVICE = 12; |
| 167 // This enum value is currently only used by Android GSA. It represents | 167 // This enum value is currently only used by Android GSA. It represents |
| 168 // a suggestion powered by a Chrome content provider. | 168 // a suggestion powered by a Chrome content provider. |
| 169 ON_DEVICE_CHROME = 13; | 169 ON_DEVICE_CHROME = 13; |
| 170 CLIPBOARD_URL = 14; // Suggestion coming from clipboard (iOS only). | 170 CLIPBOARD_URL = 14; // Suggestion coming from clipboard (iOS only). |
| 171 PHYSICAL_WEB = 15; // URLs broadcast by nearby devices (iOS only). | |
|
Mark P
2016/08/08 20:41:36
URLs -> suggestions
(because this refers to the *p
Mark P
2016/08/08 20:41:36
Also, before submitting this external changelist,
mattreynolds
2016/08/09 21:42:02
Updated the comment, and thanks for the heads-up o
| |
| 171 } | 172 } |
| 172 | 173 |
| 173 // The result set displayed on the completion popup | 174 // The result set displayed on the completion popup |
| 174 // Next tag: 7 | 175 // Next tag: 7 |
| 175 message Suggestion { | 176 message Suggestion { |
| 176 // Where does this result come from? | 177 // Where does this result come from? |
| 177 optional ProviderType provider = 1; | 178 optional ProviderType provider = 1; |
| 178 | 179 |
| 179 // What kind of result this is. | 180 // What kind of result this is. |
| 180 // This corresponds to the AutocompleteMatch::Type enumeration in | 181 // This corresponds to the AutocompleteMatch::Type enumeration in |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 219 // from the on-device suggestion provider | 220 // from the on-device suggestion provider |
| 220 // (go/icing). This field is | 221 // (go/icing). This field is |
| 221 // used by Android GSA for on-device | 222 // used by Android GSA for on-device |
| 222 // suggestion logging. | 223 // suggestion logging. |
| 223 NAVSUGGEST_PERSONALIZED = 21; // A personalized url. | 224 NAVSUGGEST_PERSONALIZED = 21; // A personalized url. |
| 224 SEARCH_SUGGEST_ANSWER = 22; // DEPRECATED. Answers no longer have their | 225 SEARCH_SUGGEST_ANSWER = 22; // DEPRECATED. Answers no longer have their |
| 225 // own type but instead can be attached to | 226 // own type but instead can be attached to |
| 226 // suggestions of any type. | 227 // suggestions of any type. |
| 227 CALCULATOR = 23; // A calculator answer. | 228 CALCULATOR = 23; // A calculator answer. |
| 228 CLIPBOARD = 24; // An URL based on the clipboard. | 229 CLIPBOARD = 24; // An URL based on the clipboard. |
| 230 PHYSICAL_WEB = 25; // A Physical Web nearby URL. | |
| 229 } | 231 } |
| 230 optional ResultType result_type = 2; | 232 optional ResultType result_type = 2; |
| 231 | 233 |
| 232 // The relevance score for this suggestion. | 234 // The relevance score for this suggestion. |
| 233 optional int32 relevance = 3; | 235 optional int32 relevance = 3; |
| 234 | 236 |
| 235 // How many times this result was typed in / selected from the omnibox. | 237 // How many times this result was typed in / selected from the omnibox. |
| 236 // Only set for some providers and result_types. At the time of | 238 // Only set for some providers and result_types. At the time of |
| 237 // writing this comment, it is only set for HistoryURL and | 239 // writing this comment, it is only set for HistoryURL and |
| 238 // HistoryQuickProvider matches. | 240 // HistoryQuickProvider matches. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 277 // The number of times this provider returned a non-zero number of | 279 // The number of times this provider returned a non-zero number of |
| 278 // suggestions during this omnibox session. | 280 // suggestions during this omnibox session. |
| 279 // Note that each provider may define a session differently for its | 281 // Note that each provider may define a session differently for its |
| 280 // purposes. | 282 // purposes. |
| 281 optional int32 times_returned_results_in_session = 5; | 283 optional int32 times_returned_results_in_session = 5; |
| 282 } | 284 } |
| 283 // A list of diagnostic information about each provider. Providers | 285 // A list of diagnostic information about each provider. Providers |
| 284 // will appear at most once in this list. | 286 // will appear at most once in this list. |
| 285 repeated ProviderInfo provider_info = 12; | 287 repeated ProviderInfo provider_info = 12; |
| 286 } | 288 } |
| OLD | NEW |