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

Side by Side Diff: ash/common/wm/root_window_layout_manager.h

Issue 2035543004: Shuffles and renames ash/common/wm classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: random changes for chrome tests Created 4 years, 6 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 ASH_COMMON_WM_ROOT_WINDOW_LAYOUT_MANAGER_H_ 5 #ifndef ASH_COMMON_WM_ROOT_WINDOW_LAYOUT_MANAGER_H_
6 #define ASH_COMMON_WM_ROOT_WINDOW_LAYOUT_MANAGER_H_ 6 #define ASH_COMMON_WM_ROOT_WINDOW_LAYOUT_MANAGER_H_
7 7
8 #include "ash/common/wm/wm_layout_manager.h" 8 #include "ash/common/wm_layout_manager.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 10
11 namespace ash { 11 namespace ash {
12 namespace wm { 12 namespace wm {
13 13
14 // A layout manager for the root window. 14 // A layout manager for the root window.
15 // Resizes all of its immediate children and their descendants to fill the 15 // Resizes all of its immediate children and their descendants to fill the
16 // bounds of the associated window. 16 // bounds of the associated window.
17 class RootWindowLayoutManager : public WmLayoutManager { 17 class RootWindowLayoutManager : public WmLayoutManager {
18 public: 18 public:
19 explicit RootWindowLayoutManager(WmWindow* owner); 19 explicit RootWindowLayoutManager(WmWindow* owner);
20 ~RootWindowLayoutManager() override; 20 ~RootWindowLayoutManager() override;
21 21
22 // Overridden from aura::LayoutManager: 22 // Overridden from aura::LayoutManager:
23 void OnWindowResized() override; 23 void OnWindowResized() override;
24 void OnWindowAddedToLayout(WmWindow* child) override; 24 void OnWindowAddedToLayout(WmWindow* child) override;
25 void OnWillRemoveWindowFromLayout(WmWindow* child) override; 25 void OnWillRemoveWindowFromLayout(WmWindow* child) override;
26 void OnWindowRemovedFromLayout(WmWindow* child) override; 26 void OnWindowRemovedFromLayout(WmWindow* child) override;
27 void OnChildWindowVisibilityChanged(WmWindow* child, bool visible) override; 27 void OnChildWindowVisibilityChanged(WmWindow* child, bool visible) override;
28 void SetChildBounds(WmWindow* child, 28 void SetChildBounds(WmWindow* child,
29 const gfx::Rect& requested_bounds) override; 29 const gfx::Rect& requested_bounds) override;
30 30
31 private: 31 private:
32 wm::WmWindow* owner_; 32 WmWindow* owner_;
33 33
34 DISALLOW_COPY_AND_ASSIGN(RootWindowLayoutManager); 34 DISALLOW_COPY_AND_ASSIGN(RootWindowLayoutManager);
35 }; 35 };
36 36
37 } // namespace wm 37 } // namespace wm
38 } // namespace ash 38 } // namespace ash
39 39
40 #endif // ASH_COMMON_WM_ROOT_WINDOW_LAYOUT_MANAGER_H_ 40 #endif // ASH_COMMON_WM_ROOT_WINDOW_LAYOUT_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698