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

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

Issue 10915217: Hook up SetInstantPreviewHeight for ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More comments. Created 8 years, 3 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/browser/instant/instant_controller.cc
diff --git a/chrome/browser/instant/instant_controller.cc b/chrome/browser/instant/instant_controller.cc
index 869c0293123248bbdc986880c17051b1d6508f90..442eab662dfb347a880d4481e436e72103d16541 100644
--- a/chrome/browser/instant/instant_controller.cc
+++ b/chrome/browser/instant/instant_controller.cc
@@ -507,6 +507,16 @@ void InstantController::CommitInstantLoader(InstantLoader* loader) {
CommitCurrentPreview(INSTANT_COMMIT_FOCUS_LOST);
}
+void InstantController::SetInstantPreviewHeight(InstantLoader* loader,
+ int height,
+ InstantSizeUnits units) {
+ DCHECK_EQ(loader_.get(), loader);
+ if (loader_ != loader || mode_ != EXTENDED)
+ return;
+
+ delegate_->SetInstantPreviewHeight(height, units);
+}
+
void InstantController::InstantLoaderPreviewLoaded(InstantLoader* loader) {
DCHECK_EQ(loader_.get(), loader);
AddPreviewUsageForHistogram(mode_, PREVIEW_LOADED);

Powered by Google App Engine
This is Rietveld 408576698