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. This may cause the |
samarth
2013/05/15 19:05:53
nit: just "Tells the page that the omnibox focus h
Donn Denman
2013/05/20 23:48:14
Done.
| |
188 void KeyCaptureChanged(bool is_key_capture_enabled); | 188 // browser's method of capturing user key strokes to also change. |
189 // The new focus state, and reason for the change is provided. | |
190 void FocusChanged(OmniboxFocusState state, | |
191 OmniboxFocusChangeReason reason); | |
189 | 192 |
190 // Tells the page about new Most Visited data. | 193 // Tells the page about new Most Visited data. |
191 void SendMostVisitedItems( | 194 void SendMostVisitedItems( |
192 const std::vector<InstantMostVisitedItemIDPair>& items); | 195 const std::vector<InstantMostVisitedItemIDPair>& items); |
193 | 196 |
194 protected: | 197 protected: |
195 InstantPage(Delegate* delegate, const std::string& instant_url); | 198 InstantPage(Delegate* delegate, const std::string& instant_url); |
196 | 199 |
197 // Sets |contents| as the page to communicate with. |contents| may be NULL, | 200 // Sets |contents| as the page to communicate with. |contents| may be NULL, |
198 // which effectively stops all communication. | 201 // which effectively stops all communication. |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
257 | 260 |
258 Delegate* const delegate_; | 261 Delegate* const delegate_; |
259 const std::string instant_url_; | 262 const std::string instant_url_; |
260 bool supports_instant_; | 263 bool supports_instant_; |
261 bool instant_support_determined_; | 264 bool instant_support_determined_; |
262 | 265 |
263 DISALLOW_COPY_AND_ASSIGN(InstantPage); | 266 DISALLOW_COPY_AND_ASSIGN(InstantPage); |
264 }; | 267 }; |
265 | 268 |
266 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ | 269 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ |
OLD | NEW |