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

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

Issue 2871813002: Converts remaining usage of WmLayoutManager to aura::LayoutManager (Closed)
Patch Set: cleanup Created 3 years, 7 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 | « ash/wm/panels/panel_layout_manager.cc ('k') | ash/wm/root_window_layout_manager.cc » ('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 ASH_WM_ROOT_WINDOW_LAYOUT_MANAGER_H_ 5 #ifndef ASH_WM_ROOT_WINDOW_LAYOUT_MANAGER_H_
6 #define ASH_WM_ROOT_WINDOW_LAYOUT_MANAGER_H_ 6 #define ASH_WM_ROOT_WINDOW_LAYOUT_MANAGER_H_
7 7
8 #include "ash/wm_layout_manager.h"
9 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/aura/layout_manager.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 aura::LayoutManager {
18 public: 18 public:
19 explicit RootWindowLayoutManager(WmWindow* owner); 19 explicit RootWindowLayoutManager(aura::Window* 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(aura::Window* child) override;
25 void OnWillRemoveWindowFromLayout(WmWindow* child) override; 25 void OnWillRemoveWindowFromLayout(aura::Window* child) override;
26 void OnWindowRemovedFromLayout(WmWindow* child) override; 26 void OnWindowRemovedFromLayout(aura::Window* child) override;
27 void OnChildWindowVisibilityChanged(WmWindow* child, bool visible) override; 27 void OnChildWindowVisibilityChanged(aura::Window* child,
28 void SetChildBounds(WmWindow* child, 28 bool visible) override;
29 void SetChildBounds(aura::Window* child,
29 const gfx::Rect& requested_bounds) override; 30 const gfx::Rect& requested_bounds) override;
30 31
31 private: 32 private:
32 WmWindow* owner_; 33 aura::Window* owner_;
33 34
34 DISALLOW_COPY_AND_ASSIGN(RootWindowLayoutManager); 35 DISALLOW_COPY_AND_ASSIGN(RootWindowLayoutManager);
35 }; 36 };
36 37
37 } // namespace wm 38 } // namespace wm
38 } // namespace ash 39 } // namespace ash
39 40
40 #endif // ASH_WM_ROOT_WINDOW_LAYOUT_MANAGER_H_ 41 #endif // ASH_WM_ROOT_WINDOW_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/wm/panels/panel_layout_manager.cc ('k') | ash/wm/root_window_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698