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

Unified Diff: chrome/browser/ui/browser_instant_controller.cc

Issue 10915217: Hook up SetInstantPreviewHeight for ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor fixes. 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/ui/browser_instant_controller.cc
diff --git a/chrome/browser/ui/browser_instant_controller.cc b/chrome/browser/ui/browser_instant_controller.cc
index b4e46f5f088765b911aa5114487d2fe1a6e9726b..fcf5be67687201708b040a74ba0fd2ca25cf55a4 100644
--- a/chrome/browser/ui/browser_instant_controller.cc
+++ b/chrome/browser/ui/browser_instant_controller.cc
@@ -124,6 +124,12 @@ void BrowserInstantController::CommitInstant(TabContents* preview) {
}
}
+void BrowserInstantController::SetInstantPreviewHeight(int height,
+ InstantSizeUnits units) {
+ browser_->window()->SetInstantPreviewHeight(height,
+ units == INSTANT_SIZE_PERCENT);
+}
+
void BrowserInstantController::SetSuggestedText(
const string16& text,
InstantCompleteBehavior behavior) {

Powered by Google App Engine
This is Rietveld 408576698