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

Unified Diff: chrome/browser/instant/instant_loader.cc

Issue 11413018: alternate ntp: implement searchbox api for instant overlay to adopt themes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed scott's comments 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_loader.cc
diff --git a/chrome/browser/instant/instant_loader.cc b/chrome/browser/instant/instant_loader.cc
index 47681aafc7970e6acf8f0c173b04b31e05b12085..88a7b5c4efcf4c0ccaf0d625248cdf5b62c738c1 100644
--- a/chrome/browser/instant/instant_loader.cc
+++ b/chrome/browser/instant/instant_loader.cc
@@ -352,6 +352,21 @@ void InstantLoader::SendAutocompleteResults(
results));
}
+void InstantLoader::SendThemeBackgroundInfo(
+ const ThemeBackgroundInfo& theme_info) {
+ content::RenderViewHost* rvh =
+ preview_contents_->web_contents()->GetRenderViewHost();
+ rvh->Send(new ChromeViewMsg_SearchBoxThemeChanged(rvh->GetRoutingID(),
+ theme_info));
+}
+
+void InstantLoader::SendThemeAreaHeight(int height) {
+ content::RenderViewHost* rvh =
+ preview_contents_->web_contents()->GetRenderViewHost();
+ rvh->Send(new ChromeViewMsg_SearchBoxThemeAreaHeightChanged(
+ rvh->GetRoutingID(), height));
+}
+
void InstantLoader::OnUpOrDownKeyPressed(int count) {
content::RenderViewHost* rvh =
preview_contents_->web_contents()->GetRenderViewHost();

Powered by Google App Engine
This is Rietveld 408576698