| 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info); | 186 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info); |
| 187 | 187 |
| 188 // Tells the page whether it is allowed to display Instant results. | 188 // Tells the page whether it is allowed to display Instant results. |
| 189 void SetDisplayInstantResults(bool display_instant_results); | 189 void SetDisplayInstantResults(bool display_instant_results); |
| 190 | 190 |
| 191 // Tells the page that the omnibox focus has changed. | 191 // Tells the page that the omnibox focus has changed. |
| 192 void FocusChanged(OmniboxFocusState state, OmniboxFocusChangeReason reason); | 192 void FocusChanged(OmniboxFocusState state, OmniboxFocusChangeReason reason); |
| 193 | 193 |
| 194 // Tells the page about new Most Visited data. | 194 // Tells the page about new Most Visited data. |
| 195 void SendMostVisitedItems( | 195 void SendMostVisitedItems( |
| 196 const std::vector<InstantMostVisitedItemIDPair>& items); | 196 const std::vector<InstantMostVisitedItem>& items); |
| 197 | 197 |
| 198 // Tells the page to toggle voice search. | 198 // Tells the page to toggle voice search. |
| 199 void ToggleVoiceSearch(); | 199 void ToggleVoiceSearch(); |
| 200 | 200 |
| 201 protected: | 201 protected: |
| 202 InstantPage(Delegate* delegate, const std::string& instant_url); | 202 InstantPage(Delegate* delegate, const std::string& instant_url); |
| 203 | 203 |
| 204 // Sets |contents| as the page to communicate with. |contents| may be NULL, | 204 // Sets |contents| as the page to communicate with. |contents| may be NULL, |
| 205 // which effectively stops all communication. | 205 // which effectively stops all communication. |
| 206 void SetContents(content::WebContents* contents); | 206 void SetContents(content::WebContents* contents); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 | 272 |
| 273 Delegate* const delegate_; | 273 Delegate* const delegate_; |
| 274 const std::string instant_url_; | 274 const std::string instant_url_; |
| 275 bool supports_instant_; | 275 bool supports_instant_; |
| 276 bool instant_support_determined_; | 276 bool instant_support_determined_; |
| 277 | 277 |
| 278 DISALLOW_COPY_AND_ASSIGN(InstantPage); | 278 DISALLOW_COPY_AND_ASSIGN(InstantPage); |
| 279 }; | 279 }; |
| 280 | 280 |
| 281 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ | 281 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ |
| OLD | NEW |