| 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_INSTANT_INSTANT_PAGE_H_ | 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_PAGE_H_ |
| 6 #define CHROME_BROWSER_INSTANT_INSTANT_PAGE_H_ | 6 #define CHROME_BROWSER_INSTANT_INSTANT_PAGE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 void DetermineIfPageSupportsInstant(); | 134 void DetermineIfPageSupportsInstant(); |
| 135 | 135 |
| 136 // Tells the page about the available autocomplete results. | 136 // Tells the page about the available autocomplete results. |
| 137 void SendAutocompleteResults( | 137 void SendAutocompleteResults( |
| 138 const std::vector<InstantAutocompleteResult>& results); | 138 const std::vector<InstantAutocompleteResult>& results); |
| 139 | 139 |
| 140 // Tells the page that the user pressed Up or Down in the omnibox. |count| is | 140 // Tells the page that the user pressed Up or Down in the omnibox. |count| is |
| 141 // a repeat count, negative for moving up, positive for moving down. | 141 // a repeat count, negative for moving up, positive for moving down. |
| 142 void UpOrDownKeyPressed(int count); | 142 void UpOrDownKeyPressed(int count); |
| 143 | 143 |
| 144 // Tells the page that the user pressed Esc in the omnibox after having |
| 145 // arrowed down in the suggestions. The page should reset the selection to |
| 146 // the first suggestion. |user_text| is what the omnibox has been reset to. |
| 147 void CancelSelection(const string16& user_text); |
| 148 |
| 144 // Tells the page about the current theme background. | 149 // Tells the page about the current theme background. |
| 145 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info); | 150 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info); |
| 146 | 151 |
| 147 // Tells the page about the current theme area height. | 152 // Tells the page about the current theme area height. |
| 148 void SendThemeAreaHeight(int height); | 153 void SendThemeAreaHeight(int height); |
| 149 | 154 |
| 150 // Tells the page whether it is allowed to display Instant results. | 155 // Tells the page whether it is allowed to display Instant results. |
| 151 void SetDisplayInstantResults(bool display_instant_results); | 156 void SetDisplayInstantResults(bool display_instant_results); |
| 152 | 157 |
| 153 // Tells the page whether the browser is capturing user key strokes. | 158 // Tells the page whether the browser is capturing user key strokes. |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 void OnSearchBoxNavigate(int page_id, const GURL& url, | 210 void OnSearchBoxNavigate(int page_id, const GURL& url, |
| 206 content::PageTransition transition); | 211 content::PageTransition transition); |
| 207 | 212 |
| 208 Delegate* const delegate_; | 213 Delegate* const delegate_; |
| 209 bool supports_instant_; | 214 bool supports_instant_; |
| 210 | 215 |
| 211 DISALLOW_COPY_AND_ASSIGN(InstantPage); | 216 DISALLOW_COPY_AND_ASSIGN(InstantPage); |
| 212 }; | 217 }; |
| 213 | 218 |
| 214 #endif // CHROME_BROWSER_INSTANT_INSTANT_PAGE_H_ | 219 #endif // CHROME_BROWSER_INSTANT_INSTANT_PAGE_H_ |
| OLD | NEW |