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

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

Issue 9353002: Created new PanelStrip base class and make DockedPanelStrip and OverflowPanelStrip its subclasses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review feedback 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
« no previous file with comments | « chrome/browser/ui/panels/docked_panel_strip.cc ('k') | chrome/browser/ui/panels/overflow_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/overflow_panel_strip.h
diff --git a/chrome/browser/ui/panels/overflow_panel_strip.h b/chrome/browser/ui/panels/overflow_panel_strip.h
index 372cfa7948f538e287ed431bbd374244bcea7da9..250e8aa9425bdd25eeeaab6c0135a7a093a9be99 100644
--- a/chrome/browser/ui/panels/overflow_panel_strip.h
+++ b/chrome/browser/ui/panels/overflow_panel_strip.h
@@ -8,6 +8,7 @@
#include <vector>
#include "chrome/browser/ui/panels/panel.h"
+#include "chrome/browser/ui/panels/panel_strip.h"
#include "chrome/browser/ui/panels/panel_mouse_watcher_observer.h"
#include "ui/base/animation/animation_delegate.h"
@@ -19,7 +20,8 @@ class SlideAnimation;
}
// Manipulates all the panels that are placed on the left-most overflow area.
-class OverflowPanelStrip : public PanelMouseWatcherObserver,
+class OverflowPanelStrip : public PanelStrip,
+ public PanelMouseWatcherObserver,
public ui::AnimationDelegate {
public:
typedef std::vector<Panel*> Panels;
@@ -27,26 +29,20 @@ class OverflowPanelStrip : public PanelMouseWatcherObserver,
explicit OverflowPanelStrip(PanelManager* panel_manager);
virtual ~OverflowPanelStrip();
- // Sets the display area of the overflow strip.
- // |display_area| is in screen coordinates.
- void SetDisplayArea(const gfx::Rect& display_area);
-
- // Adds a panel to the strip.
- void AddPanel(Panel* panel);
-
- // Returns |false| if the panel is not in the strip.
- bool Remove(Panel* panel);
- void RemoveAll();
+ // PanelStrip OVERRIDES:
+ virtual void SetDisplayArea(const gfx::Rect& display_area) OVERRIDE;
+ virtual void RefreshLayout() OVERRIDE;
+ virtual void AddPanel(Panel* panel) OVERRIDE;
+ virtual bool RemovePanel(Panel* panel) OVERRIDE;
+ virtual void CloseAll() OVERRIDE;
+ virtual void ResizePanelWindow(
+ Panel* panel,
+ const gfx::Size& preferred_window_size) OVERRIDE;
+ virtual void OnPanelAttentionStateChanged(Panel* panel) OVERRIDE;
// Called when a panel's expansion state changes.
void OnPanelExpansionStateChanged(Panel* panel);
- // Called when a panel is starting/stopping drawing an attention.
- void OnPanelAttentionStateChanged(Panel* panel);
-
- // Refreshes the layouts for all panels to reflect any possible changes.
- void Refresh();
-
void OnFullScreenModeChanged(bool is_full_screen);
int num_panels() const { return static_cast<int>(panels_.size()); }
« no previous file with comments | « chrome/browser/ui/panels/docked_panel_strip.cc ('k') | chrome/browser/ui/panels/overflow_panel_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698