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

Side by Side Diff: chrome/browser/ui/panels/docked_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
« no previous file with comments | « chrome/browser/ui/panels/docked_panel_browsertest.cc ('k') | chrome/browser/ui/panels/panel.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_DOCKED_PANEL_COLLECTION_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_COLLECTION_H_
6 #define CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_COLLECTION_H_ 6 #define CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_COLLECTION_H_
7 7
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 12 matching lines...) Expand all
23 public PanelCollection, 23 public PanelCollection,
24 public PanelMouseWatcherObserver, 24 public PanelMouseWatcherObserver,
25 public DisplaySettingsProvider::DesktopBarObserver { 25 public DisplaySettingsProvider::DesktopBarObserver {
26 public: 26 public:
27 typedef std::list<Panel*> Panels; 27 typedef std::list<Panel*> Panels;
28 28
29 explicit DockedPanelCollection(PanelManager* panel_manager); 29 explicit DockedPanelCollection(PanelManager* panel_manager);
30 virtual ~DockedPanelCollection(); 30 virtual ~DockedPanelCollection();
31 31
32 // PanelCollection OVERRIDES: 32 // PanelCollection OVERRIDES:
33 virtual void OnDisplayChanged() OVERRIDE; 33 virtual void OnDisplayChanged() override;
34 34
35 // Rearranges the positions of the panels in the collection 35 // Rearranges the positions of the panels in the collection
36 // and reduces their width when there is not enough room. 36 // and reduces their width when there is not enough room.
37 // This is called when the display space has been changed, i.e. working 37 // This is called when the display space has been changed, i.e. working
38 // area being changed or a panel being closed. 38 // area being changed or a panel being closed.
39 virtual void RefreshLayout() OVERRIDE; 39 virtual void RefreshLayout() override;
40 40
41 // Adds a panel to the collection. The panel may be a newly created panel or 41 // Adds a panel to the collection. The panel may be a newly created panel or
42 // one that is transitioning from another grouping of panels. 42 // one that is transitioning from another grouping of panels.
43 virtual void AddPanel(Panel* panel, 43 virtual void AddPanel(Panel* panel,
44 PositioningMask positioning_mask) OVERRIDE; 44 PositioningMask positioning_mask) override;
45 virtual void RemovePanel(Panel* pane, RemovalReason reasonl) OVERRIDE; 45 virtual void RemovePanel(Panel* pane, RemovalReason reasonl) override;
46 virtual void CloseAll() OVERRIDE; 46 virtual void CloseAll() override;
47 virtual void ResizePanelWindow( 47 virtual void ResizePanelWindow(
48 Panel* panel, 48 Panel* panel,
49 const gfx::Size& preferred_window_size) OVERRIDE; 49 const gfx::Size& preferred_window_size) override;
50 virtual panel::Resizability GetPanelResizability( 50 virtual panel::Resizability GetPanelResizability(
51 const Panel* panel) const OVERRIDE; 51 const Panel* panel) const override;
52 virtual void OnPanelResizedByMouse(Panel* panel, 52 virtual void OnPanelResizedByMouse(Panel* panel,
53 const gfx::Rect& new_bounds) OVERRIDE; 53 const gfx::Rect& new_bounds) override;
54 virtual void OnPanelAttentionStateChanged(Panel* panel) OVERRIDE; 54 virtual void OnPanelAttentionStateChanged(Panel* panel) override;
55 virtual void OnPanelTitlebarClicked(Panel* panel, 55 virtual void OnPanelTitlebarClicked(Panel* panel,
56 panel::ClickModifier modifier) OVERRIDE; 56 panel::ClickModifier modifier) override;
57 virtual void ActivatePanel(Panel* panel) OVERRIDE; 57 virtual void ActivatePanel(Panel* panel) override;
58 virtual void MinimizePanel(Panel* panel) OVERRIDE; 58 virtual void MinimizePanel(Panel* panel) override;
59 virtual void RestorePanel(Panel* panel) OVERRIDE; 59 virtual void RestorePanel(Panel* panel) override;
60 virtual void OnMinimizeButtonClicked(Panel* panel, 60 virtual void OnMinimizeButtonClicked(Panel* panel,
61 panel::ClickModifier modifier) OVERRIDE; 61 panel::ClickModifier modifier) override;
62 virtual void OnRestoreButtonClicked(Panel* panel, 62 virtual void OnRestoreButtonClicked(Panel* panel,
63 panel::ClickModifier modifier) OVERRIDE; 63 panel::ClickModifier modifier) override;
64 virtual bool CanShowMinimizeButton(const Panel* panel) const OVERRIDE; 64 virtual bool CanShowMinimizeButton(const Panel* panel) const override;
65 virtual bool CanShowRestoreButton(const Panel* panel) const OVERRIDE; 65 virtual bool CanShowRestoreButton(const Panel* panel) const override;
66 virtual bool IsPanelMinimized(const Panel* panel) const OVERRIDE; 66 virtual bool IsPanelMinimized(const Panel* panel) const override;
67 virtual bool UsesAlwaysOnTopPanels() const OVERRIDE; 67 virtual bool UsesAlwaysOnTopPanels() const override;
68 virtual void SavePanelPlacement(Panel* panel) OVERRIDE; 68 virtual void SavePanelPlacement(Panel* panel) override;
69 virtual void RestorePanelToSavedPlacement() OVERRIDE; 69 virtual void RestorePanelToSavedPlacement() override;
70 virtual void DiscardSavedPanelPlacement() OVERRIDE; 70 virtual void DiscardSavedPanelPlacement() override;
71 virtual void UpdatePanelOnCollectionChange(Panel* panel) OVERRIDE; 71 virtual void UpdatePanelOnCollectionChange(Panel* panel) override;
72 virtual void OnPanelExpansionStateChanged(Panel* panel) OVERRIDE; 72 virtual void OnPanelExpansionStateChanged(Panel* panel) override;
73 virtual void OnPanelActiveStateChanged(Panel* panel) OVERRIDE; 73 virtual void OnPanelActiveStateChanged(Panel* panel) override;
74 virtual gfx::Rect GetInitialPanelBounds( 74 virtual gfx::Rect GetInitialPanelBounds(
75 const gfx::Rect& requested_bounds) const OVERRIDE; 75 const gfx::Rect& requested_bounds) const override;
76 76
77 // Returns true if we should bring up the titlebars, given the current mouse 77 // Returns true if we should bring up the titlebars, given the current mouse
78 // point. 78 // point.
79 bool ShouldBringUpTitlebars(int mouse_x, int mouse_y) const; 79 bool ShouldBringUpTitlebars(int mouse_x, int mouse_y) const;
80 80
81 // Brings up or down the titlebars for all minimized panels. 81 // Brings up or down the titlebars for all minimized panels.
82 void BringUpOrDownTitlebars(bool bring_up); 82 void BringUpOrDownTitlebars(bool bring_up);
83 83
84 // Returns the bottom position for the panel per its expansion state. If auto- 84 // Returns the bottom position for the panel per its expansion state. If auto-
85 // hide bottom bar is present, we want to move the minimized panel to the 85 // hide bottom bar is present, we want to move the minimized panel to the
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 struct PanelPlacement { 121 struct PanelPlacement {
122 Panel* panel; 122 Panel* panel;
123 // Used to remember the panel to the left of |panel|, if any, for use when 123 // Used to remember the panel to the left of |panel|, if any, for use when
124 // restoring the position of |panel|. 124 // restoring the position of |panel|.
125 Panel* left_panel; 125 Panel* left_panel;
126 126
127 PanelPlacement() : panel(NULL), left_panel(NULL) { } 127 PanelPlacement() : panel(NULL), left_panel(NULL) { }
128 }; 128 };
129 129
130 // Overridden from PanelMouseWatcherObserver: 130 // Overridden from PanelMouseWatcherObserver:
131 virtual void OnMouseMove(const gfx::Point& mouse_position) OVERRIDE; 131 virtual void OnMouseMove(const gfx::Point& mouse_position) override;
132 132
133 // Overridden from DisplaySettingsProvider::DesktopBarObserver: 133 // Overridden from DisplaySettingsProvider::DesktopBarObserver:
134 virtual void OnAutoHidingDesktopBarVisibilityChanged( 134 virtual void OnAutoHidingDesktopBarVisibilityChanged(
135 DisplaySettingsProvider::DesktopBarAlignment alignment, 135 DisplaySettingsProvider::DesktopBarAlignment alignment,
136 DisplaySettingsProvider::DesktopBarVisibility visibility) OVERRIDE; 136 DisplaySettingsProvider::DesktopBarVisibility visibility) override;
137 virtual void OnAutoHidingDesktopBarThicknessChanged( 137 virtual void OnAutoHidingDesktopBarThicknessChanged(
138 DisplaySettingsProvider::DesktopBarAlignment alignment, 138 DisplaySettingsProvider::DesktopBarAlignment alignment,
139 int thickness) OVERRIDE; 139 int thickness) override;
140 140
141 // Schedules a layout refresh with a short delay to avoid too much flicker. 141 // Schedules a layout refresh with a short delay to avoid too much flicker.
142 void ScheduleLayoutRefresh(); 142 void ScheduleLayoutRefresh();
143 143
144 // Keep track of the minimized panels to control mouse watching. 144 // Keep track of the minimized panels to control mouse watching.
145 void UpdateMinimizedPanelCount(); 145 void UpdateMinimizedPanelCount();
146 146
147 // Minimizes or restores all panels in the collection. 147 // Minimizes or restores all panels in the collection.
148 void MinimizeAll(); 148 void MinimizeAll();
149 void RestoreAll(); 149 void RestoreAll();
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 // Owned by MessageLoop after posting. 190 // Owned by MessageLoop after posting.
191 base::WeakPtrFactory<DockedPanelCollection> titlebar_action_factory_; 191 base::WeakPtrFactory<DockedPanelCollection> titlebar_action_factory_;
192 192
193 // Owned by MessageLoop after posting. 193 // Owned by MessageLoop after posting.
194 base::WeakPtrFactory<DockedPanelCollection> refresh_action_factory_; 194 base::WeakPtrFactory<DockedPanelCollection> refresh_action_factory_;
195 195
196 DISALLOW_COPY_AND_ASSIGN(DockedPanelCollection); 196 DISALLOW_COPY_AND_ASSIGN(DockedPanelCollection);
197 }; 197 };
198 198
199 #endif // CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_COLLECTION_H_ 199 #endif // CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_COLLECTION_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/docked_panel_browsertest.cc ('k') | chrome/browser/ui/panels/panel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698