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

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

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.h
diff --git a/chrome/renderer/searchbox/searchbox.h b/chrome/renderer/searchbox/searchbox.h
index 230782c93c8dee9cb89ef6cc1ff99f6c8646239c..38a766e02dbed0358093af43617a3b951cef1c42 100644
--- a/chrome/renderer/searchbox/searchbox.h
+++ b/chrome/renderer/searchbox/searchbox.h
@@ -76,6 +76,7 @@ class SearchBox : public content::RenderViewObserver,
bool display_instant_results() const { return display_instant_results_; }
const string16& omnibox_font() const { return omnibox_font_; }
size_t omnibox_font_size() const { return omnibox_font_size_; }
+ bool app_launcher_enabled() const { return app_launcher_enabled_; }
// In extended Instant, returns the start-edge margin of the location bar in
// screen pixels.
@@ -168,6 +169,7 @@ class SearchBox : public content::RenderViewObserver,
void OnThemeAreaHeightChanged(int height);
void OnFontInformationReceived(const string16& omnibox_font,
size_t omnibox_font_size);
+ void OnPromoInformationReceived(bool is_app_launcher_enabled);
void OnMostVisitedChanged(
const std::vector<InstantMostVisitedItem>& items);
void OnToggleVoiceSearch();
@@ -198,6 +200,7 @@ class SearchBox : public content::RenderViewObserver,
bool display_instant_results_;
string16 omnibox_font_;
size_t omnibox_font_size_;
+ bool app_launcher_enabled_;
InstantRestrictedIDCache<InstantAutocompleteResult>
autocomplete_results_cache_;
InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_;

Powered by Google App Engine
This is Rietveld 408576698