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

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

Issue 8776035: Add PanelOverflowStrip to handle panel overflow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Prepare for final landing Created 9 years 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
« no previous file with comments | « chrome/browser/ui/panels/panel_overflow_strip.cc ('k') | chrome/browser/ui/panels/panel_strip.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bdf4655bb3697790e8b59e8ead0b9f0f2b132f26..992e5659e1e7e625f473c9f2b0b94edf7e1f4fd5 100644
--- a/chrome/browser/ui/panels/panel_strip.h
+++ b/chrome/browser/ui/panels/panel_strip.h
@@ -10,8 +10,8 @@
#include "base/basictypes.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/ui/panels/auto_hiding_desktop_bar.h"
-#include "chrome/browser/ui/panels/panel_mouse_watcher_observer.h"
#include "chrome/browser/ui/panels/panel.h"
+#include "chrome/browser/ui/panels/panel_mouse_watcher_observer.h"
#include "ui/gfx/rect.h"
class Browser;
@@ -29,7 +29,7 @@ class PanelStrip : public PanelMouseWatcherObserver {
virtual ~PanelStrip();
// Sets the bounds of the panel strip.
- // |bounds| is in screen coordinates.
+ // |area| is in screen coordinates.
void SetDisplayArea(const gfx::Rect& area);
// Adds a panel to the strip. The panel may be a newly created panel or one
@@ -46,8 +46,8 @@ class PanelStrip : public PanelMouseWatcherObserver {
void EndDragging(bool cancelled);
// Invoked when a panel's expansion state changes.
- void OnPanelExpansionStateChanged(Panel::ExpansionState old_state,
- Panel::ExpansionState new_state);
+ void OnPanelExpansionStateChanged(Panel* panel,
+ Panel::ExpansionState old_state);
// Invoked when the preferred window size of the given panel might need to
// get changed.
@@ -70,14 +70,12 @@ class PanelStrip : public PanelMouseWatcherObserver {
int num_panels() const { return panels_.size(); }
bool is_dragging_panel() const;
const Panels& panels() const { return panels_; }
+ gfx::Rect display_area() const { return display_area_; }
int GetMaxPanelWidth() const;
int GetMaxPanelHeight() const;
int StartingRightPosition() const;
- // Overridden from PanelMouseWatcherObserver:
- virtual void OnMouseMove(const gfx::Point& mouse_position) OVERRIDE;
-
void OnAutoHidingDesktopBarVisibilityChanged(
AutoHidingDesktopBar::Alignment alignment,
AutoHidingDesktopBar::Visibility visibility);
@@ -103,6 +101,9 @@ class PanelStrip : public PanelMouseWatcherObserver {
BRING_DOWN
};
+ // Overridden from PanelMouseWatcherObserver:
+ virtual void OnMouseMove(const gfx::Point& mouse_position) OVERRIDE;
+
// Keep track of the minimized panels to control mouse watching.
void IncrementMinimizedPanels();
void DecrementMinimizedPanels();
« no previous file with comments | « chrome/browser/ui/panels/panel_overflow_strip.cc ('k') | chrome/browser/ui/panels/panel_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698