| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 size_t selection_start, | 182 size_t selection_start, |
| 183 size_t selection_end, | 183 size_t selection_end, |
| 184 bool verbatim); | 184 bool verbatim); |
| 185 | 185 |
| 186 // Tells the page about the current theme background. | 186 // Tells the page about the current theme background. |
| 187 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info); | 187 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info); |
| 188 | 188 |
| 189 // Tells the page whether it is allowed to display Instant results. | 189 // Tells the page whether it is allowed to display Instant results. |
| 190 void SetDisplayInstantResults(bool display_instant_results); | 190 void SetDisplayInstantResults(bool display_instant_results); |
| 191 | 191 |
| 192 // Tells the page whether the browser is capturing user key strokes. | 192 // Tells the page that the omnibox focus has changed. |
| 193 void KeyCaptureChanged(bool is_key_capture_enabled); | 193 void FocusChanged(OmniboxFocusState state, OmniboxFocusChangeReason reason); |
| 194 | 194 |
| 195 // Tells the page about new Most Visited data. | 195 // Tells the page about new Most Visited data. |
| 196 void SendMostVisitedItems( | 196 void SendMostVisitedItems( |
| 197 const std::vector<InstantMostVisitedItemIDPair>& items); | 197 const std::vector<InstantMostVisitedItemIDPair>& items); |
| 198 | 198 |
| 199 protected: | 199 protected: |
| 200 InstantPage(Delegate* delegate, const std::string& instant_url); | 200 InstantPage(Delegate* delegate, const std::string& instant_url); |
| 201 | 201 |
| 202 // Sets |contents| as the page to communicate with. |contents| may be NULL, | 202 // Sets |contents| as the page to communicate with. |contents| may be NULL, |
| 203 // which effectively stops all communication. | 203 // which effectively stops all communication. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 | 263 |
| 264 Delegate* const delegate_; | 264 Delegate* const delegate_; |
| 265 const std::string instant_url_; | 265 const std::string instant_url_; |
| 266 bool supports_instant_; | 266 bool supports_instant_; |
| 267 bool instant_support_determined_; | 267 bool instant_support_determined_; |
| 268 | 268 |
| 269 DISALLOW_COPY_AND_ASSIGN(InstantPage); | 269 DISALLOW_COPY_AND_ASSIGN(InstantPage); |
| 270 }; | 270 }; |
| 271 | 271 |
| 272 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ | 272 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ |
| OLD | NEW |