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

Unified Diff: chrome/browser/instant/instant_controller.h

Issue 11413217: Instant API: tell page whether the browser is capturing key strokes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@focus
Patch Set: Fix js error. Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/instant/instant_controller.h
diff --git a/chrome/browser/instant/instant_controller.h b/chrome/browser/instant/instant_controller.h
index f3448cd557667c6f429a69a8d7c9578ee9a5356c..01894f1fd0465c5f854b52eed02cf28ec14a45aa 100644
--- a/chrome/browser/instant/instant_controller.h
+++ b/chrome/browser/instant/instant_controller.h
@@ -86,7 +86,7 @@ class InstantController {
// The omnibox has gained focus. Preload the default search engine, in
// anticipation of the user typing a query.
- void OmniboxGotFocus();
+ void OmniboxGotFocus(bool focus_is_visible);
// The search mode in the active tab has changed. Pass the message down to
// the loader which will notify the renderer.
@@ -223,6 +223,10 @@ class InstantController {
// True if the omnibox is focused, false otherwise.
bool is_omnibox_focused_;
+ // True iff the omnibox is invisibly focused. Never true if is_omnibox_focused
+ // is false.
+ bool is_omnibox_invisibly_focused_;
Jered 2012/11/28 17:50:16 Would it make sense to have a single enum here, li
samarth 2012/11/28 19:33:09 We could do that. The downside is that just check
Jered 2012/11/28 19:56:57 I think we could just say: omnibox_focus_type_ !=
samarth 2012/11/28 22:08:11 Duh, you're right. Done.
+
// The search model mode for the active tab.
chrome::search::Mode search_mode_;
« no previous file with comments | « no previous file | chrome/browser/instant/instant_controller.cc » ('j') | chrome/browser/instant/instant_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698