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

Side by Side Diff: chrome/browser/ui/panels/stacked_panel_collection.h

Issue 627043002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[a-s]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_PANELS_STACKED_PANEL_COLLECTION_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_STACKED_PANEL_COLLECTION_H_
6 #define CHROME_BROWSER_UI_PANELS_STACKED_PANEL_COLLECTION_H_ 6 #define CHROME_BROWSER_UI_PANELS_STACKED_PANEL_COLLECTION_H_
7 7
8 #include <list> 8 #include <list>
9 #include <vector> 9 #include <vector>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "chrome/browser/ui/panels/native_panel_stack_window.h" 11 #include "chrome/browser/ui/panels/native_panel_stack_window.h"
12 #include "chrome/browser/ui/panels/panel_collection.h" 12 #include "chrome/browser/ui/panels/panel_collection.h"
13 #include "chrome/browser/ui/panels/panel_constants.h" 13 #include "chrome/browser/ui/panels/panel_constants.h"
14 #include "ui/gfx/rect.h" 14 #include "ui/gfx/rect.h"
15 15
16 class PanelManager; 16 class PanelManager;
17 namespace gfx { 17 namespace gfx {
18 class Vector2d; 18 class Vector2d;
19 } 19 }
20 20
21 class StackedPanelCollection : public PanelCollection, 21 class StackedPanelCollection : public PanelCollection,
22 public NativePanelStackWindowDelegate { 22 public NativePanelStackWindowDelegate {
23 public: 23 public:
24 typedef std::list<Panel*> Panels; 24 typedef std::list<Panel*> Panels;
25 25
26 explicit StackedPanelCollection(PanelManager* panel_manager); 26 explicit StackedPanelCollection(PanelManager* panel_manager);
27 virtual ~StackedPanelCollection(); 27 virtual ~StackedPanelCollection();
28 28
29 // PanelCollection OVERRIDES: 29 // PanelCollection OVERRIDES:
30 virtual void OnDisplayChanged() OVERRIDE; 30 virtual void OnDisplayChanged() override;
31 virtual void RefreshLayout() OVERRIDE; 31 virtual void RefreshLayout() override;
32 virtual void AddPanel(Panel* panel, 32 virtual void AddPanel(Panel* panel,
33 PositioningMask positioning_mask) OVERRIDE; 33 PositioningMask positioning_mask) override;
34 virtual void RemovePanel(Panel* panel, RemovalReason reason) OVERRIDE; 34 virtual void RemovePanel(Panel* panel, RemovalReason reason) override;
35 virtual void CloseAll() OVERRIDE; 35 virtual void CloseAll() override;
36 virtual void ResizePanelWindow( 36 virtual void ResizePanelWindow(
37 Panel* panel, 37 Panel* panel,
38 const gfx::Size& preferred_window_size) OVERRIDE; 38 const gfx::Size& preferred_window_size) override;
39 virtual panel::Resizability GetPanelResizability( 39 virtual panel::Resizability GetPanelResizability(
40 const Panel* panel) const OVERRIDE; 40 const Panel* panel) const override;
41 virtual void OnPanelResizedByMouse(Panel* panel, 41 virtual void OnPanelResizedByMouse(Panel* panel,
42 const gfx::Rect& new_bounds) OVERRIDE; 42 const gfx::Rect& new_bounds) override;
43 virtual void OnPanelAttentionStateChanged(Panel* panel) OVERRIDE; 43 virtual void OnPanelAttentionStateChanged(Panel* panel) override;
44 virtual void OnPanelTitlebarClicked(Panel* panel, 44 virtual void OnPanelTitlebarClicked(Panel* panel,
45 panel::ClickModifier modifier) OVERRIDE; 45 panel::ClickModifier modifier) override;
46 virtual void ActivatePanel(Panel* panel) OVERRIDE; 46 virtual void ActivatePanel(Panel* panel) override;
47 virtual void MinimizePanel(Panel* panel) OVERRIDE; 47 virtual void MinimizePanel(Panel* panel) override;
48 virtual void RestorePanel(Panel* panel) OVERRIDE; 48 virtual void RestorePanel(Panel* panel) override;
49 virtual void OnMinimizeButtonClicked(Panel* panel, 49 virtual void OnMinimizeButtonClicked(Panel* panel,
50 panel::ClickModifier modifier) OVERRIDE; 50 panel::ClickModifier modifier) override;
51 virtual void OnRestoreButtonClicked(Panel* panel, 51 virtual void OnRestoreButtonClicked(Panel* panel,
52 panel::ClickModifier modifier) OVERRIDE; 52 panel::ClickModifier modifier) override;
53 virtual bool CanShowMinimizeButton(const Panel* panel) const OVERRIDE; 53 virtual bool CanShowMinimizeButton(const Panel* panel) const override;
54 virtual bool CanShowRestoreButton(const Panel* panel) const OVERRIDE; 54 virtual bool CanShowRestoreButton(const Panel* panel) const override;
55 virtual bool IsPanelMinimized(const Panel* panel) const OVERRIDE; 55 virtual bool IsPanelMinimized(const Panel* panel) const override;
56 virtual bool UsesAlwaysOnTopPanels() const OVERRIDE; 56 virtual bool UsesAlwaysOnTopPanels() const override;
57 virtual void SavePanelPlacement(Panel* panel) OVERRIDE; 57 virtual void SavePanelPlacement(Panel* panel) override;
58 virtual void RestorePanelToSavedPlacement() OVERRIDE; 58 virtual void RestorePanelToSavedPlacement() override;
59 virtual void DiscardSavedPanelPlacement() OVERRIDE; 59 virtual void DiscardSavedPanelPlacement() override;
60 virtual void UpdatePanelOnCollectionChange(Panel* panel) OVERRIDE; 60 virtual void UpdatePanelOnCollectionChange(Panel* panel) override;
61 virtual void OnPanelExpansionStateChanged(Panel* panel) OVERRIDE; 61 virtual void OnPanelExpansionStateChanged(Panel* panel) override;
62 virtual void OnPanelActiveStateChanged(Panel* panel) OVERRIDE; 62 virtual void OnPanelActiveStateChanged(Panel* panel) override;
63 virtual gfx::Rect GetInitialPanelBounds( 63 virtual gfx::Rect GetInitialPanelBounds(
64 const gfx::Rect& requested_bounds) const OVERRIDE; 64 const gfx::Rect& requested_bounds) const override;
65 65
66 Panel* GetPanelAbove(Panel* panel) const; 66 Panel* GetPanelAbove(Panel* panel) const;
67 Panel* GetPanelBelow(Panel* panel) const; 67 Panel* GetPanelBelow(Panel* panel) const;
68 bool HasPanel(Panel* panel) const; 68 bool HasPanel(Panel* panel) const;
69 69
70 void MoveAllDraggingPanelsInstantly(const gfx::Vector2d& delta_origin); 70 void MoveAllDraggingPanelsInstantly(const gfx::Vector2d& delta_origin);
71 71
72 bool IsMinimized() const; 72 bool IsMinimized() const;
73 bool IsAnimatingPanelBounds(Panel* panel) const; 73 bool IsAnimatingPanelBounds(Panel* panel) const;
74 74
(...skipping 22 matching lines...) Expand all
97 // restoring it. When there're only 2 panels in the stack and the bottom 97 // restoring it. When there're only 2 panels in the stack and the bottom
98 // panel is being dragged out of the stack, both panels will be moved to 98 // panel is being dragged out of the stack, both panels will be moved to
99 // the detached collection. We need to track the top panel in order to 99 // the detached collection. We need to track the top panel in order to
100 // put it back to the same stack of the dragging panel. 100 // put it back to the same stack of the dragging panel.
101 Panel* top_panel; 101 Panel* top_panel;
102 102
103 PanelPlacement() : panel(NULL), top_panel(NULL) { } 103 PanelPlacement() : panel(NULL), top_panel(NULL) { }
104 }; 104 };
105 105
106 // Overridden from PanelBoundsBatchUpdateObserver: 106 // Overridden from PanelBoundsBatchUpdateObserver:
107 virtual base::string16 GetTitle() const OVERRIDE; 107 virtual base::string16 GetTitle() const override;
108 virtual gfx::Image GetIcon() const OVERRIDE; 108 virtual gfx::Image GetIcon() const override;
109 virtual void PanelBoundsBatchUpdateCompleted() OVERRIDE; 109 virtual void PanelBoundsBatchUpdateCompleted() override;
110 110
111 // Returns the enclosing bounds that include all panels in the stack. 111 // Returns the enclosing bounds that include all panels in the stack.
112 gfx::Rect GetEnclosingBounds() const; 112 gfx::Rect GetEnclosingBounds() const;
113 113
114 // Returns the work area where the stack resides. If the stack spans across 114 // Returns the work area where the stack resides. If the stack spans across
115 // multiple displays, return the work area of the display that most closely 115 // multiple displays, return the work area of the display that most closely
116 // intersects the stack. 116 // intersects the stack.
117 gfx::Rect GetWorkArea() const; 117 gfx::Rect GetWorkArea() const;
118 118
119 // Refresh all panel layouts, with top panel poisitoned at |start_position|. 119 // Refresh all panel layouts, with top panel poisitoned at |start_position|.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 173
174 // Used to save the placement information for a panel. 174 // Used to save the placement information for a panel.
175 PanelPlacement saved_panel_placement_; 175 PanelPlacement saved_panel_placement_;
176 176
177 bool minimizing_all_; // True while minimizing all panels. 177 bool minimizing_all_; // True while minimizing all panels.
178 178
179 DISALLOW_COPY_AND_ASSIGN(StackedPanelCollection); 179 DISALLOW_COPY_AND_ASSIGN(StackedPanelCollection);
180 }; 180 };
181 181
182 #endif // CHROME_BROWSER_UI_PANELS_STACKED_PANEL_COLLECTION_H_ 182 #endif // CHROME_BROWSER_UI_PANELS_STACKED_PANEL_COLLECTION_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_resize_browsertest.cc ('k') | chrome/browser/ui/panels/test_panel_active_state_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698