Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1155)

Side by Side Diff: chrome/browser/ui/search/instant_page.h

Issue 14646034: Add onfocuschange to the Extended Search API, with associated isFocused attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added unit tests Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698