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

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

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/root_window_layout_manager.h ('k') | ash/wm/system_modal_container_layout_manager.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 #include "ash/wm/root_window_layout_manager.h" 5 #include "ash/wm/root_window_layout_manager.h"
6 6
7 #include "ash/wm_window.h"
8 #include "ui/aura/window.h" 7 #include "ui/aura/window.h"
9 #include "ui/aura/window_tracker.h" 8 #include "ui/aura/window_tracker.h"
10 9
11 namespace ash { 10 namespace ash {
12 11
13 namespace { 12 namespace {
14 13
15 // Resize all container windows that RootWindowLayoutManager is responsible for. 14 // Resize all container windows that RootWindowLayoutManager is responsible for.
16 // That includes all container windows up to three depth except that top level 15 // That includes all container windows up to three depth except that top level
17 // window which has a delegate. We cannot simply check top level window, because 16 // window which has a delegate. We cannot simply check top level window, because
(...skipping 17 matching lines...) Expand all
35 } 34 }
36 } 35 }
37 36
38 } // namespace 37 } // namespace
39 38
40 namespace wm { 39 namespace wm {
41 40
42 //////////////////////////////////////////////////////////////////////////////// 41 ////////////////////////////////////////////////////////////////////////////////
43 // RootWindowLayoutManager, public: 42 // RootWindowLayoutManager, public:
44 43
45 RootWindowLayoutManager::RootWindowLayoutManager(WmWindow* owner) 44 RootWindowLayoutManager::RootWindowLayoutManager(aura::Window* owner)
46 : owner_(owner) {} 45 : owner_(owner) {}
47 46
48 RootWindowLayoutManager::~RootWindowLayoutManager() {} 47 RootWindowLayoutManager::~RootWindowLayoutManager() {}
49 48
50 //////////////////////////////////////////////////////////////////////////////// 49 ////////////////////////////////////////////////////////////////////////////////
51 // RootWindowLayoutManager, aura::LayoutManager implementation: 50 // RootWindowLayoutManager, aura::LayoutManager implementation:
52 51
53 void RootWindowLayoutManager::OnWindowResized() { 52 void RootWindowLayoutManager::OnWindowResized() {
54 ResizeWindow(owner_->aura_window()->children(), 53 ResizeWindow(owner_->children(), gfx::Rect(owner_->bounds().size()), 0);
55 gfx::Rect(owner_->GetBounds().size()), 0);
56 } 54 }
57 55
58 void RootWindowLayoutManager::OnWindowAddedToLayout(WmWindow* child) {} 56 void RootWindowLayoutManager::OnWindowAddedToLayout(aura::Window* child) {}
59 57
60 void RootWindowLayoutManager::OnWillRemoveWindowFromLayout(WmWindow* child) {} 58 void RootWindowLayoutManager::OnWillRemoveWindowFromLayout(
59 aura::Window* child) {}
61 60
62 void RootWindowLayoutManager::OnWindowRemovedFromLayout(WmWindow* child) {} 61 void RootWindowLayoutManager::OnWindowRemovedFromLayout(aura::Window* child) {}
63 62
64 void RootWindowLayoutManager::OnChildWindowVisibilityChanged(WmWindow* child, 63 void RootWindowLayoutManager::OnChildWindowVisibilityChanged(
65 bool visible) {} 64 aura::Window* child,
65 bool visible) {}
66 66
67 void RootWindowLayoutManager::SetChildBounds( 67 void RootWindowLayoutManager::SetChildBounds(
68 WmWindow* child, 68 aura::Window* child,
69 const gfx::Rect& requested_bounds) { 69 const gfx::Rect& requested_bounds) {
70 child->SetBoundsDirect(requested_bounds); 70 SetChildBoundsDirect(child, requested_bounds);
71 } 71 }
72 72
73 } // namespace wm 73 } // namespace wm
74 } // namespace ash 74 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/root_window_layout_manager.h ('k') | ash/wm/system_modal_container_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698