| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 HISTORY_URL = 1; // URLs in history, or user-typed URLs | 79 HISTORY_URL = 1; // URLs in history, or user-typed URLs |
| 80 HISTORY_CONTENTS = 2; // Matches for page contents of pages in history | 80 HISTORY_CONTENTS = 2; // Matches for page contents of pages in history |
| 81 HISTORY_QUICK = 3; // Matches for recently or frequently visited pages | 81 HISTORY_QUICK = 3; // Matches for recently or frequently visited pages |
| 82 // in history | 82 // in history |
| 83 SEARCH = 4; // Search suggestions for the default search engine | 83 SEARCH = 4; // Search suggestions for the default search engine |
| 84 KEYWORD = 5; // Keyword-triggered searches | 84 KEYWORD = 5; // Keyword-triggered searches |
| 85 BUILTIN = 6; // Built-in URLs, such as chrome://version | 85 BUILTIN = 6; // Built-in URLs, such as chrome://version |
| 86 SHORTCUTS = 7; // Recently selected omnibox suggestions | 86 SHORTCUTS = 7; // Recently selected omnibox suggestions |
| 87 EXTENSION_APPS = 8; // Custom suggestions from extensions and/or apps | 87 EXTENSION_APPS = 8; // Custom suggestions from extensions and/or apps |
| 88 CONTACT = 9; // The user's contacts | 88 CONTACT = 9; // The user's contacts |
| 89 BOOKMARK = 10; // The user's bookmarks |
| 89 } | 90 } |
| 90 | 91 |
| 91 // The result set displayed on the completion popup | 92 // The result set displayed on the completion popup |
| 92 // Next tag: 6 | 93 // Next tag: 6 |
| 93 message Suggestion { | 94 message Suggestion { |
| 94 // Where does this result come from? | 95 // Where does this result come from? |
| 95 optional ProviderType provider = 1; | 96 optional ProviderType provider = 1; |
| 96 | 97 |
| 97 // What kind of result this is. | 98 // What kind of result this is. |
| 98 // This corresponds to the AutocompleteMatch::Type enumeration in | 99 // This corresponds to the AutocompleteMatch::Type enumeration in |
| (...skipping 10 matching lines...) Expand all Loading... |
| 109 SEARCH_WHAT_YOU_TYPED = 7; // The input as a search query (with the | 110 SEARCH_WHAT_YOU_TYPED = 7; // The input as a search query (with the |
| 110 // default engine) | 111 // default engine) |
| 111 SEARCH_HISTORY = 8; // A past search (with the default engine) | 112 SEARCH_HISTORY = 8; // A past search (with the default engine) |
| 112 // containing the input | 113 // containing the input |
| 113 SEARCH_SUGGEST = 9; // A suggested search (with the default | 114 SEARCH_SUGGEST = 9; // A suggested search (with the default |
| 114 // engine) | 115 // engine) |
| 115 SEARCH_OTHER_ENGINE = 10; // A search with a non-default engine | 116 SEARCH_OTHER_ENGINE = 10; // A search with a non-default engine |
| 116 EXTENSION_APP = 11; // An Extension App with a title/url that | 117 EXTENSION_APP = 11; // An Extension App with a title/url that |
| 117 // contains the input | 118 // contains the input |
| 118 CONTACT = 12; // One of the user's contacts | 119 CONTACT = 12; // One of the user's contacts |
| 120 BOOKMARK_TITLE = 13; // A bookmark whose title contains the input. |
| 119 }; | 121 }; |
| 120 optional ResultType result_type = 2; | 122 optional ResultType result_type = 2; |
| 121 | 123 |
| 122 // The relevance score for this suggestion. | 124 // The relevance score for this suggestion. |
| 123 optional int32 relevance = 3; | 125 optional int32 relevance = 3; |
| 124 | 126 |
| 125 // How many times this result was typed in / selected from the omnibox. | 127 // How many times this result was typed in / selected from the omnibox. |
| 126 // Only set for some providers and result_types. At the time of | 128 // Only set for some providers and result_types. At the time of |
| 127 // writing this comment, it is only set for HistoryURL and | 129 // writing this comment, it is only set for HistoryURL and |
| 128 // HistoryQuickProvider matches. | 130 // HistoryQuickProvider matches. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 141 | 143 |
| 142 // The provider's done() value, i.e., whether it's completed processing | 144 // The provider's done() value, i.e., whether it's completed processing |
| 143 // the query. Providers which don't do any asynchronous processing | 145 // the query. Providers which don't do any asynchronous processing |
| 144 // will always be done. | 146 // will always be done. |
| 145 optional bool provider_done = 2; | 147 optional bool provider_done = 2; |
| 146 } | 148 } |
| 147 // A list of diagnostic information about each provider. Providers | 149 // A list of diagnostic information about each provider. Providers |
| 148 // will appear at most once in this list. | 150 // will appear at most once in this list. |
| 149 repeated ProviderInfo provider_info = 12; | 151 repeated ProviderInfo provider_info = 12; |
| 150 } | 152 } |
| OLD | NEW |