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

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

Issue 9560002: Cleanup to keep panel from manipulating its panel strip assignment directly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed deleted method from .h 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_manager.h
diff --git a/chrome/browser/ui/panels/panel_manager.h b/chrome/browser/ui/panels/panel_manager.h
index d02fe76d8b9d30282cdf61eed5ffd7ffea9a1d8a..61ea9a5ba2358dd6cc175d5bd4c7db0eca05a734 100644
--- a/chrome/browser/ui/panels/panel_manager.h
+++ b/chrome/browser/ui/panels/panel_manager.h
@@ -13,6 +13,7 @@
#include "base/timer.h"
#include "chrome/browser/ui/panels/auto_hiding_desktop_bar.h"
#include "chrome/browser/ui/panels/panel.h"
+#include "chrome/browser/ui/panels/panel_strip.h"
#include "ui/gfx/rect.h"
class Browser;
@@ -61,6 +62,18 @@ class PanelManager : public AutoHidingDesktopBar::Observer {
// for panels that are auto-sized.
void ResizePanel(Panel* panel, const gfx::Size& new_size);
+ // Moves the |panel| to a different type of panel strip.
+ void MovePanelToStrip(Panel* panel, PanelStrip::Type new_layout);
+
+ // Moves panels to overflow as needed so that |panel| fits in the dock strip.
+ void EnsurePanelFitsInDock(Panel* panel);
+
+ // Move all panels up to, and including, the |last_panel_to_move| to overflow.
+ void MovePanelsToOverflow(Panel* last_panel_to_move);
+
+ // Moves as many panels out of overflow as space allows.
+ void MovePanelsOutOfOverflowIfCanFit();
+
// Returns true if we should bring up the titlebars, given the current mouse
// point.
bool ShouldBringUpTitlebars(int mouse_x, int mouse_y) const;

Powered by Google App Engine
This is Rietveld 408576698