Chromium Code Reviews| 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 177 size_t selection_start, | 177 size_t selection_start, |
| 178 size_t selection_end, | 178 size_t selection_end, |
| 179 bool verbatim); | 179 bool verbatim); |
| 180 | 180 |
| 181 // Tells the page about the current theme background. | 181 // Tells the page about the current theme background. |
| 182 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info); | 182 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info); |
| 183 | 183 |
| 184 // Tells the page whether it is allowed to display Instant results. | 184 // Tells the page whether it is allowed to display Instant results. |
| 185 void SetDisplayInstantResults(bool display_instant_results); | 185 void SetDisplayInstantResults(bool display_instant_results); |
| 186 | 186 |
| 187 // Tells the page whether the browser is capturing user key strokes. | 187 // Tells the page that the input focus has changed. |
|
samarth
2013/05/22 04:40:56
nit: s/input/omnibox/
Donn Denman
2013/05/22 17:37:36
Done.
| |
| 188 void KeyCaptureChanged(bool is_key_capture_enabled); | 188 void FocusChanged(OmniboxFocusState state, |
|
samarth
2013/05/22 04:40:56
nit: fits on one line?
Donn Denman
2013/05/22 17:37:36
Done.
| |
| 189 OmniboxFocusChangeReason reason); | |
| 189 | 190 |
| 190 // Tells the page about new Most Visited data. | 191 // Tells the page about new Most Visited data. |
| 191 void SendMostVisitedItems( | 192 void SendMostVisitedItems( |
| 192 const std::vector<InstantMostVisitedItemIDPair>& items); | 193 const std::vector<InstantMostVisitedItemIDPair>& items); |
| 193 | 194 |
| 194 protected: | 195 protected: |
| 195 InstantPage(Delegate* delegate, const std::string& instant_url); | 196 InstantPage(Delegate* delegate, const std::string& instant_url); |
| 196 | 197 |
| 197 // Sets |contents| as the page to communicate with. |contents| may be NULL, | 198 // Sets |contents| as the page to communicate with. |contents| may be NULL, |
| 198 // which effectively stops all communication. | 199 // which effectively stops all communication. |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 257 | 258 |
| 258 Delegate* const delegate_; | 259 Delegate* const delegate_; |
| 259 const std::string instant_url_; | 260 const std::string instant_url_; |
| 260 bool supports_instant_; | 261 bool supports_instant_; |
| 261 bool instant_support_determined_; | 262 bool instant_support_determined_; |
| 262 | 263 |
| 263 DISALLOW_COPY_AND_ASSIGN(InstantPage); | 264 DISALLOW_COPY_AND_ASSIGN(InstantPage); |
| 264 }; | 265 }; |
| 265 | 266 |
| 266 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ | 267 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ |
| OLD | NEW |