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

Side by Side Diff: ash/wm/workspace/workspace_layout_manager.h

Issue 681913002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ 5 #ifndef ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_
6 #define ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ 6 #define ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 30 matching lines...) Expand all
41 // LayoutManager used on the window created for a workspace. 41 // LayoutManager used on the window created for a workspace.
42 class ASH_EXPORT WorkspaceLayoutManager 42 class ASH_EXPORT WorkspaceLayoutManager
43 : public aura::LayoutManager, 43 : public aura::LayoutManager,
44 public aura::WindowObserver, 44 public aura::WindowObserver,
45 public aura::client::ActivationChangeObserver, 45 public aura::client::ActivationChangeObserver,
46 public keyboard::KeyboardControllerObserver, 46 public keyboard::KeyboardControllerObserver,
47 public ShellObserver, 47 public ShellObserver,
48 public wm::WindowStateObserver { 48 public wm::WindowStateObserver {
49 public: 49 public:
50 explicit WorkspaceLayoutManager(aura::Window* window); 50 explicit WorkspaceLayoutManager(aura::Window* window);
51 virtual ~WorkspaceLayoutManager(); 51 ~WorkspaceLayoutManager() override;
52 52
53 void SetShelf(ShelfLayoutManager* shelf); 53 void SetShelf(ShelfLayoutManager* shelf);
54 54
55 // A delegate which can be set to add a backdrop behind the top most visible 55 // A delegate which can be set to add a backdrop behind the top most visible
56 // window. With the call the ownership of the delegate will be transferred to 56 // window. With the call the ownership of the delegate will be transferred to
57 // the WorkspaceLayoutManager. 57 // the WorkspaceLayoutManager.
58 void SetMaximizeBackdropDelegate( 58 void SetMaximizeBackdropDelegate(
59 scoped_ptr<WorkspaceLayoutManagerDelegate> delegate); 59 scoped_ptr<WorkspaceLayoutManagerDelegate> delegate);
60 60
61 // Overridden from aura::LayoutManager: 61 // Overridden from aura::LayoutManager:
62 virtual void OnWindowResized() override {} 62 void OnWindowResized() override {}
63 virtual void OnWindowAddedToLayout(aura::Window* child) override; 63 void OnWindowAddedToLayout(aura::Window* child) override;
64 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) override; 64 void OnWillRemoveWindowFromLayout(aura::Window* child) override;
65 virtual void OnWindowRemovedFromLayout(aura::Window* child) override; 65 void OnWindowRemovedFromLayout(aura::Window* child) override;
66 virtual void OnChildWindowVisibilityChanged(aura::Window* child, 66 void OnChildWindowVisibilityChanged(aura::Window* child,
67 bool visibile) override; 67 bool visibile) override;
68 virtual void SetChildBounds(aura::Window* child, 68 void SetChildBounds(aura::Window* child,
69 const gfx::Rect& requested_bounds) override; 69 const gfx::Rect& requested_bounds) override;
70 70
71 // ash::ShellObserver overrides: 71 // ash::ShellObserver overrides:
72 virtual void OnDisplayWorkAreaInsetsChanged() override; 72 void OnDisplayWorkAreaInsetsChanged() override;
73 73
74 // Overriden from WindowObserver: 74 // Overriden from WindowObserver:
75 virtual void OnWindowHierarchyChanged( 75 void OnWindowHierarchyChanged(
76 const WindowObserver::HierarchyChangeParams& params) override; 76 const WindowObserver::HierarchyChangeParams& params) override;
77 virtual void OnWindowPropertyChanged(aura::Window* window, 77 void OnWindowPropertyChanged(aura::Window* window,
78 const void* key, 78 const void* key,
79 intptr_t old) override; 79 intptr_t old) override;
80 virtual void OnWindowStackingChanged(aura::Window* window) override; 80 void OnWindowStackingChanged(aura::Window* window) override;
81 virtual void OnWindowDestroying(aura::Window* window) override; 81 void OnWindowDestroying(aura::Window* window) override;
82 virtual void OnWindowBoundsChanged(aura::Window* window, 82 void OnWindowBoundsChanged(aura::Window* window,
83 const gfx::Rect& old_bounds, 83 const gfx::Rect& old_bounds,
84 const gfx::Rect& new_bounds) override; 84 const gfx::Rect& new_bounds) override;
85 85
86 // aura::client::ActivationChangeObserver overrides: 86 // aura::client::ActivationChangeObserver overrides:
87 virtual void OnWindowActivated(aura::Window* gained_active, 87 void OnWindowActivated(aura::Window* gained_active,
88 aura::Window* lost_active) override; 88 aura::Window* lost_active) override;
89 89
90 // keyboard::KeyboardControllerObserver overrides: 90 // keyboard::KeyboardControllerObserver overrides:
91 virtual void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; 91 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override;
92 92
93 // WindowStateObserver overrides: 93 // WindowStateObserver overrides:
94 virtual void OnPostWindowStateTypeChange( 94 void OnPostWindowStateTypeChange(wm::WindowState* window_state,
95 wm::WindowState* window_state, 95 wm::WindowStateType old_type) override;
96 wm::WindowStateType old_type) override;
97 96
98 private: 97 private:
99 typedef std::set<aura::Window*> WindowSet; 98 typedef std::set<aura::Window*> WindowSet;
100 99
101 // Adjusts the bounds of all managed windows when the display area changes. 100 // Adjusts the bounds of all managed windows when the display area changes.
102 // This happens when the display size, work area insets has changed. 101 // This happens when the display size, work area insets has changed.
103 // If this is called for a display size change (i.e. |event| 102 // If this is called for a display size change (i.e. |event|
104 // is DISPLAY_RESIZED), the non-maximized/non-fullscreen 103 // is DISPLAY_RESIZED), the non-maximized/non-fullscreen
105 // windows are readjusted to make sure the window is completely within the 104 // windows are readjusted to make sure the window is completely within the
106 // display region. Otherwise, it makes sure at least some parts of the window 105 // display region. Otherwise, it makes sure at least some parts of the window
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // A window which covers the full container and which gets inserted behind the 141 // A window which covers the full container and which gets inserted behind the
143 // topmost visible window. 142 // topmost visible window.
144 scoped_ptr<WorkspaceLayoutManagerDelegate> backdrop_delegate_; 143 scoped_ptr<WorkspaceLayoutManagerDelegate> backdrop_delegate_;
145 144
146 DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager); 145 DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager);
147 }; 146 };
148 147
149 } // namespace ash 148 } // namespace ash
150 149
151 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ 150 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_event_handler_unittest.cc ('k') | ash/wm/workspace/workspace_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698