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

Unified Diff: chrome/browser/ui/panels/panel_strip.h

Issue 9517010: Change panels to be able to turn off autoresize. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ensure that the latest version is uploaded. Created 8 years, 10 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/panels/panel_strip.h
diff --git a/chrome/browser/ui/panels/panel_strip.h b/chrome/browser/ui/panels/panel_strip.h
index 7b0bced6fc2a6b29013fbc85f8db791ffa6d87dd..ce8930fcee0f5408dd75af50eeaa73f13934362b 100644
--- a/chrome/browser/ui/panels/panel_strip.h
+++ b/chrome/browser/ui/panels/panel_strip.h
@@ -21,6 +21,11 @@ class PanelStrip {
IN_OVERFLOW, // panels that cannot fit in the 'docked' panels area
};
+ enum AutoResizeState {
+ AUTORESIZE_ENABLED,
+ AUTORESIZE_DISABLED,
+ };
+
Type type() const { return type_; }
// Sets the bounds of the panel strip.
@@ -48,7 +53,8 @@ class PanelStrip {
// the content area, and is in screen coordinates.
// The preferred size may be adjusted to fit layout constraints.
virtual void ResizePanelWindow(Panel* panel,
- const gfx::Size& preferred_window_size) = 0;
+ const gfx::Size& preferred_window_size,
+ AutoResizeState auto_resize_state) = 0;
// Invoked when the draw attention state of the panel has changed.
// Subclass should update the display of the panel to match the new

Powered by Google App Engine
This is Rietveld 408576698