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

Side by Side Diff: chrome/browser/ui/panels/detached_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_DETACHED_PANEL_COLLECTION_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_DETACHED_PANEL_COLLECTION_H_
6 #define CHROME_BROWSER_UI_PANELS_DETACHED_PANEL_COLLECTION_H_ 6 #define CHROME_BROWSER_UI_PANELS_DETACHED_PANEL_COLLECTION_H_
7 7
8 #include <list> 8 #include <list>
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "chrome/browser/ui/panels/panel.h" 10 #include "chrome/browser/ui/panels/panel.h"
11 #include "chrome/browser/ui/panels/panel_collection.h" 11 #include "chrome/browser/ui/panels/panel_collection.h"
12 #include "ui/gfx/point.h" 12 #include "ui/gfx/point.h"
13 #include "ui/gfx/rect.h" 13 #include "ui/gfx/rect.h"
14 14
15 class PanelManager; 15 class PanelManager;
16 16
17 // This class manages a group of free-floating panels. 17 // This class manages a group of free-floating panels.
18 class DetachedPanelCollection : public PanelCollection { 18 class DetachedPanelCollection : public PanelCollection {
19 public: 19 public:
20 typedef std::list<Panel*> Panels; 20 typedef std::list<Panel*> Panels;
21 typedef bool (*PanelsComparer)(Panel* panel1, Panel* panel2); 21 typedef bool (*PanelsComparer)(Panel* panel1, Panel* panel2);
22 22
23 explicit DetachedPanelCollection(PanelManager* panel_manager); 23 explicit DetachedPanelCollection(PanelManager* panel_manager);
24 virtual ~DetachedPanelCollection(); 24 virtual ~DetachedPanelCollection();
25 25
26 // PanelCollection OVERRIDES: 26 // PanelCollection OVERRIDES:
27 virtual void OnDisplayChanged() OVERRIDE; 27 virtual void OnDisplayChanged() override;
28 virtual void RefreshLayout() OVERRIDE; 28 virtual void RefreshLayout() override;
29 virtual void AddPanel(Panel* panel, 29 virtual void AddPanel(Panel* panel,
30 PositioningMask positioning_mask) OVERRIDE; 30 PositioningMask positioning_mask) override;
31 virtual void RemovePanel(Panel* panel, RemovalReason reason) OVERRIDE; 31 virtual void RemovePanel(Panel* panel, RemovalReason reason) override;
32 virtual void CloseAll() OVERRIDE; 32 virtual void CloseAll() override;
33 virtual void ResizePanelWindow( 33 virtual void ResizePanelWindow(
34 Panel* panel, 34 Panel* panel,
35 const gfx::Size& preferred_window_size) OVERRIDE; 35 const gfx::Size& preferred_window_size) override;
36 virtual panel::Resizability GetPanelResizability( 36 virtual panel::Resizability GetPanelResizability(
37 const Panel* panel) const OVERRIDE; 37 const Panel* panel) const override;
38 virtual void OnPanelResizedByMouse(Panel* panel, 38 virtual void OnPanelResizedByMouse(Panel* panel,
39 const gfx::Rect& new_bounds) OVERRIDE; 39 const gfx::Rect& new_bounds) override;
40 virtual void OnPanelAttentionStateChanged(Panel* panel) OVERRIDE; 40 virtual void OnPanelAttentionStateChanged(Panel* panel) override;
41 virtual void OnPanelTitlebarClicked(Panel* panel, 41 virtual void OnPanelTitlebarClicked(Panel* panel,
42 panel::ClickModifier modifier) OVERRIDE; 42 panel::ClickModifier modifier) override;
43 virtual void ActivatePanel(Panel* panel) OVERRIDE; 43 virtual void ActivatePanel(Panel* panel) override;
44 virtual void MinimizePanel(Panel* panel) OVERRIDE; 44 virtual void MinimizePanel(Panel* panel) override;
45 virtual void RestorePanel(Panel* panel) OVERRIDE; 45 virtual void RestorePanel(Panel* panel) override;
46 virtual void OnMinimizeButtonClicked(Panel* panel, 46 virtual void OnMinimizeButtonClicked(Panel* panel,
47 panel::ClickModifier modifier) OVERRIDE; 47 panel::ClickModifier modifier) override;
48 virtual void OnRestoreButtonClicked(Panel* panel, 48 virtual void OnRestoreButtonClicked(Panel* panel,
49 panel::ClickModifier modifier) OVERRIDE; 49 panel::ClickModifier modifier) override;
50 virtual bool CanShowMinimizeButton(const Panel* panel) const OVERRIDE; 50 virtual bool CanShowMinimizeButton(const Panel* panel) const override;
51 virtual bool CanShowRestoreButton(const Panel* panel) const OVERRIDE; 51 virtual bool CanShowRestoreButton(const Panel* panel) const override;
52 virtual bool IsPanelMinimized(const Panel* panel) const OVERRIDE; 52 virtual bool IsPanelMinimized(const Panel* panel) const override;
53 virtual bool UsesAlwaysOnTopPanels() const OVERRIDE; 53 virtual bool UsesAlwaysOnTopPanels() const override;
54 virtual void SavePanelPlacement(Panel* panel) OVERRIDE; 54 virtual void SavePanelPlacement(Panel* panel) override;
55 virtual void RestorePanelToSavedPlacement() OVERRIDE; 55 virtual void RestorePanelToSavedPlacement() override;
56 virtual void DiscardSavedPanelPlacement() OVERRIDE; 56 virtual void DiscardSavedPanelPlacement() override;
57 virtual void UpdatePanelOnCollectionChange(Panel* panel) OVERRIDE; 57 virtual void UpdatePanelOnCollectionChange(Panel* panel) override;
58 virtual void OnPanelExpansionStateChanged(Panel* panel) OVERRIDE; 58 virtual void OnPanelExpansionStateChanged(Panel* panel) override;
59 virtual void OnPanelActiveStateChanged(Panel* panel) OVERRIDE; 59 virtual void OnPanelActiveStateChanged(Panel* panel) override;
60 virtual gfx::Rect GetInitialPanelBounds( 60 virtual gfx::Rect GetInitialPanelBounds(
61 const gfx::Rect& requested_bounds) const OVERRIDE; 61 const gfx::Rect& requested_bounds) const override;
62 62
63 bool HasPanel(Panel* panel) const; 63 bool HasPanel(Panel* panel) const;
64 64
65 void SortPanels(PanelsComparer comparer); 65 void SortPanels(PanelsComparer comparer);
66 66
67 int num_panels() const { return panels_.size(); } 67 int num_panels() const { return panels_.size(); }
68 const Panels& panels() const { return panels_; } 68 const Panels& panels() const { return panels_; }
69 69
70 // Returns default top-left to use for a detached panel whose position is 70 // Returns default top-left to use for a detached panel whose position is
71 // not specified during panel creation. 71 // not specified during panel creation.
(...skipping 20 matching lines...) Expand all
92 PanelPlacement saved_panel_placement_; 92 PanelPlacement saved_panel_placement_;
93 93
94 // Default top-left position to use for next detached panel if position is 94 // Default top-left position to use for next detached panel if position is
95 // unspecified by panel creator. 95 // unspecified by panel creator.
96 gfx::Point default_panel_origin_; 96 gfx::Point default_panel_origin_;
97 97
98 DISALLOW_COPY_AND_ASSIGN(DetachedPanelCollection); 98 DISALLOW_COPY_AND_ASSIGN(DetachedPanelCollection);
99 }; 99 };
100 100
101 #endif // CHROME_BROWSER_UI_PANELS_DETACHED_PANEL_COLLECTION_H_ 101 #endif // CHROME_BROWSER_UI_PANELS_DETACHED_PANEL_COLLECTION_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/base_panel_browser_test.cc ('k') | chrome/browser/ui/panels/docked_panel_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698