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

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: 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/ui/browser_window.h
diff --git a/chrome/browser/ui/browser_window.h b/chrome/browser/ui/browser_window.h
index efa96cab66a5f9c88053005992582ec37327b7f2..cc09dee09b6e148c15456c7085c61a13b344e9a8 100644
--- a/chrome/browser/ui/browser_window.h
+++ b/chrome/browser/ui/browser_window.h
@@ -12,6 +12,7 @@
#include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h"
#include "chrome/browser/ui/sync/one_click_signin_sync_starter.h"
#include "chrome/common/content_settings_types.h"
+#include "chrome/common/instant_types.h"
#include "ui/gfx/native_widget_types.h"
#include "webkit/glue/window_open_disposition.h"
@@ -326,7 +327,7 @@ 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;
// Returns the desired bounds for instant in screen coordinates. Note that if
@@ -334,6 +335,10 @@ class BrowserWindow : public BaseWindow {
// placed at.
virtual gfx::Rect GetInstantBounds() = 0;
+ // Resize the instant preview to the given |height|, interpreting the height
sky 2012/09/19 00:23:18 Everything after ',' is a bit obvious. Nuke it.
Jered 2012/09/19 18:52:09 Done.
+ // to be in the given |units| (see instant_types.h for details).
+ virtual void SetInstantPreviewHeight(int height, InstantSizeUnits units) = 0;
+
// Checks if an instant's tab contents is being shown.
virtual bool IsInstantTabShowing() = 0;

Powered by Google App Engine
This is Rietveld 408576698