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

Unified Diff: chrome/renderer/searchbox/searchbox.cc

Issue 18095002: Merge 208596 "Pipe a bit down to the InstantExtended new tab pag..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1547/src/
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/searchbox/searchbox.h ('k') | chrome/renderer/searchbox/searchbox_extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/searchbox/searchbox.cc
===================================================================
--- chrome/renderer/searchbox/searchbox.cc (revision 208940)
+++ chrome/renderer/searchbox/searchbox.cc (working copy)
@@ -90,6 +90,7 @@
is_input_in_progress_(false),
display_instant_results_(false),
omnibox_font_size_(0),
+ app_launcher_enabled_(false),
autocomplete_results_cache_(kMaxInstantAutocompleteResultItemCacheSize),
most_visited_items_cache_(kMaxInstantMostVisitedItemCacheSize) {
}
@@ -271,6 +272,8 @@
OnThemeChanged)
IPC_MESSAGE_HANDLER(ChromeViewMsg_SearchBoxFontInformation,
OnFontInformationReceived)
+ IPC_MESSAGE_HANDLER(ChromeViewMsg_SearchBoxPromoInformation,
+ OnPromoInformationReceived)
IPC_MESSAGE_HANDLER(ChromeViewMsg_SearchBoxMostVisitedItemsChanged,
OnMostVisitedChanged)
IPC_MESSAGE_HANDLER(ChromeViewMsg_SearchBoxToggleVoiceSearch,
@@ -487,6 +490,10 @@
omnibox_font_size_ = omnibox_font_size;
}
+void SearchBox::OnPromoInformationReceived(bool is_app_launcher_enabled) {
+ app_launcher_enabled_ = is_app_launcher_enabled;
+}
+
double SearchBox::GetZoom() const {
WebKit::WebView* web_view = render_view()->GetWebView();
if (web_view) {
« no previous file with comments | « chrome/renderer/searchbox/searchbox.h ('k') | chrome/renderer/searchbox/searchbox_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698