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

Unified Diff: chrome/browser/ui/browser_window.h

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_window.h
diff --git a/chrome/browser/ui/browser_window.h b/chrome/browser/ui/browser_window.h
index efa96cab66a5f9c88053005992582ec37327b7f2..54fe4840e7fd4f26c4c53f1f75801c39dac0d8eb 100644
--- a/chrome/browser/ui/browser_window.h
+++ b/chrome/browser/ui/browser_window.h
@@ -326,9 +326,14 @@ class BrowserWindow : public BaseWindow {
// Invoked when instant's tab contents should be shown.
virtual void ShowInstant(TabContents* preview) = 0;
- // Invoked when the instant's tab contents should be hidden.
+ // Invoked when instant's tab contents should be hidden.
virtual void HideInstant() = 0;
+ // Resizes the Instant preview. If |is_percent| is true, then |value| is a
+ // percentage of the available content height in [0, 100], otherwise |value|
+ // is the desired height in pixels.
+ virtual void SetInstantPreviewHeight(int value, bool is_percent) = 0;
+
// Returns the desired bounds for instant in screen coordinates. Note that if
// instant isn't currently visible this returns the bounds instant would be
// placed at.

Powered by Google App Engine
This is Rietveld 408576698