| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ | 5 #ifndef CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ |
| 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ | 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 void DetermineIfPageSupportsInstant(); | 149 void DetermineIfPageSupportsInstant(); |
| 150 | 150 |
| 151 // Tells the page about the available autocomplete results. | 151 // Tells the page about the available autocomplete results. |
| 152 void SendAutocompleteResults( | 152 void SendAutocompleteResults( |
| 153 const std::vector<InstantAutocompleteResult>& results); | 153 const std::vector<InstantAutocompleteResult>& results); |
| 154 | 154 |
| 155 // Tells the page that the user pressed Up or Down in the omnibox. |count| is | 155 // Tells the page that the user pressed Up or Down in the omnibox. |count| is |
| 156 // a repeat count, negative for moving up, positive for moving down. | 156 // a repeat count, negative for moving up, positive for moving down. |
| 157 void UpOrDownKeyPressed(int count); | 157 void UpOrDownKeyPressed(int count); |
| 158 | 158 |
| 159 // Tells the page that the user pressed Esc key in the omnibox. |
| 160 void EscKeyPressed(); |
| 161 |
| 159 // Tells the page that the user pressed Esc in the omnibox after having | 162 // Tells the page that the user pressed Esc in the omnibox after having |
| 160 // arrowed down in the suggestions. The page should reset the selection to | 163 // arrowed down in the suggestions. The page should reset the selection to |
| 161 // the first suggestion. Arguments are the same as those for Update(). | 164 // the first suggestion. Arguments are the same as those for Update(). |
| 162 void CancelSelection(const string16& user_text, | 165 void CancelSelection(const string16& user_text, |
| 163 size_t selection_start, | 166 size_t selection_start, |
| 164 size_t selection_end, | 167 size_t selection_end, |
| 165 bool verbatim); | 168 bool verbatim); |
| 166 | 169 |
| 167 // Tells the page about the current theme background. | 170 // Tells the page about the current theme background. |
| 168 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info); | 171 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 void OnUndoAllMostVisitedDeletions(); | 235 void OnUndoAllMostVisitedDeletions(); |
| 233 | 236 |
| 234 Delegate* const delegate_; | 237 Delegate* const delegate_; |
| 235 const std::string instant_url_; | 238 const std::string instant_url_; |
| 236 bool supports_instant_; | 239 bool supports_instant_; |
| 237 | 240 |
| 238 DISALLOW_COPY_AND_ASSIGN(InstantPage); | 241 DISALLOW_COPY_AND_ASSIGN(InstantPage); |
| 239 }; | 242 }; |
| 240 | 243 |
| 241 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ | 244 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ |
| OLD | NEW |