| 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 #ifndef CHROME_COMMON_INSTANT_TYPES_H_ | 5 #ifndef CHROME_COMMON_INSTANT_TYPES_H_ |
| 6 #define CHROME_COMMON_INSTANT_TYPES_H_ | 6 #define CHROME_COMMON_INSTANT_TYPES_H_ |
| 7 | 7 |
| 8 #include "base/string16.h" | 8 #include "base/string16.h" |
| 9 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
| 10 | 10 |
| 11 // Ways that the Instant suggested text is autocompleted into the omnibox. | 11 // Ways that the Instant suggested text is autocompleted into the omnibox. |
| 12 enum InstantCompleteBehavior { | 12 enum InstantCompleteBehavior { |
| 13 // Autocomplete the suggestion immediately. | 13 // Autocomplete the suggestion immediately. |
| 14 INSTANT_COMPLETE_NOW, | 14 INSTANT_COMPLETE_NOW, |
| 15 | 15 |
| 16 // Autocomplete the suggestion after a delay. | |
| 17 INSTANT_COMPLETE_DELAYED, | |
| 18 | |
| 19 // Do not autocomplete the suggestion. The suggestion may still be displayed | 16 // Do not autocomplete the suggestion. The suggestion may still be displayed |
| 20 // in the omnibox, but not made a part of the omnibox text by default (e.g., | 17 // in the omnibox, but not made a part of the omnibox text by default (e.g., |
| 21 // by displaying the suggestion as non-highlighted, non-selected gray text). | 18 // by displaying the suggestion as non-highlighted, non-selected gray text). |
| 22 INSTANT_COMPLETE_NEVER, | 19 INSTANT_COMPLETE_NEVER, |
| 23 | 20 |
| 24 // Treat the suggested text as the entire omnibox text, effectively replacing | 21 // Treat the suggested text as the entire omnibox text, effectively replacing |
| 25 // whatever the user has typed. | 22 // whatever the user has typed. |
| 26 INSTANT_COMPLETE_REPLACE, | 23 INSTANT_COMPLETE_REPLACE, |
| 27 }; | 24 }; |
| 28 | 25 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // Query suggestions and search results relevant when the user is typing in | 89 // Query suggestions and search results relevant when the user is typing in |
| 93 // the omnibox. | 90 // the omnibox. |
| 94 INSTANT_SHOWN_QUERY_SUGGESTIONS, | 91 INSTANT_SHOWN_QUERY_SUGGESTIONS, |
| 95 | 92 |
| 96 // ZeroSuggest suggestions relevant when the user has focused in the omnibox, | 93 // ZeroSuggest suggestions relevant when the user has focused in the omnibox, |
| 97 // but not yet typed anything. | 94 // but not yet typed anything. |
| 98 INSTANT_SHOWN_ZERO_SUGGESTIONS, | 95 INSTANT_SHOWN_ZERO_SUGGESTIONS, |
| 99 }; | 96 }; |
| 100 | 97 |
| 101 #endif // CHROME_COMMON_INSTANT_TYPES_H_ | 98 #endif // CHROME_COMMON_INSTANT_TYPES_H_ |
| OLD | NEW |