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

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

Issue 17699006: Pipe a bit down to the InstantExtended new tab page javascript API for whether or not the app launc… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comment 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
Index: chrome/renderer/searchbox/searchbox.cc
diff --git a/chrome/renderer/searchbox/searchbox.cc b/chrome/renderer/searchbox/searchbox.cc
index 922e985bf1290c8f5f8ff78f3b72c3ae635e5aca..c098637f77fb1819aa806511c33e7aee6a1aa0e7 100644
--- a/chrome/renderer/searchbox/searchbox.cc
+++ b/chrome/renderer/searchbox/searchbox.cc
@@ -90,6 +90,7 @@ SearchBox::SearchBox(content::RenderView* render_view)
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 @@ bool SearchBox::OnMessageReceived(const IPC::Message& message) {
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 @@ void SearchBox::OnFontInformationReceived(const string16& omnibox_font,
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) {

Powered by Google App Engine
This is Rietveld 408576698