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

Unified Diff: chrome/browser/ui/search/search_types.h

Issue 11369137: Implement {Start,Stop}CapturingKeyStrokes for Instant. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix which active tab we use. 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/ui/search/search_types.h
diff --git a/chrome/browser/ui/search/search_types.h b/chrome/browser/ui/search/search_types.h
index b4804c161196a30e49a3685d72e6c56cd8ef7a15..8aa2dec2ab628301655c7b9d135c7810bdd40bf4 100644
--- a/chrome/browser/ui/search/search_types.h
+++ b/chrome/browser/ui/search/search_types.h
@@ -49,6 +49,9 @@ struct Mode {
// On the NTP page and the NTP is ready to be displayed.
MODE_NTP,
+ // On the NTP page and the web searchbox has focus.
+ MODE_NTP_WEB_SEARCHBOX_HAS_FOCUS,
dhollowa 2012/11/15 21:31:00 I'm not so crazy about mixing this in with the Mod
+
// On the NTP page and the Omnibox is modified in some way.
MODE_SEARCH_SUGGESTIONS,
@@ -72,7 +75,7 @@ struct Mode {
}
bool is_ntp() const {
- return mode == MODE_NTP;
+ return mode == MODE_NTP || mode == MODE_NTP_WEB_SEARCHBOX_HAS_FOCUS;
}
bool is_search() const {

Powered by Google App Engine
This is Rietveld 408576698