| OLD | NEW |
| 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 "ui/views/widget/desktop_layout_manager.h" | 5 #include "ui/views/widget/desktop_aura/desktop_layout_manager.h" |
| 6 | 6 |
| 7 #include "ui/aura/root_window.h" | 7 #include "ui/aura/root_window.h" |
| 8 #include "ui/gfx/rect.h" | 8 #include "ui/gfx/rect.h" |
| 9 | 9 |
| 10 namespace views { | 10 namespace views { |
| 11 | 11 |
| 12 DesktopLayoutManager::DesktopLayoutManager(aura::RootWindow* root_window) | 12 DesktopLayoutManager::DesktopLayoutManager(aura::RootWindow* root_window) |
| 13 : root_window_(root_window), | 13 : root_window_(root_window), |
| 14 main_window_(NULL) { | 14 main_window_(NULL) { |
| 15 } | 15 } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 SetChildBoundsDirect(child, requested_bounds); | 47 SetChildBoundsDirect(child, requested_bounds); |
| 48 } | 48 } |
| 49 | 49 |
| 50 void DesktopLayoutManager::SetMainWindowSize() { | 50 void DesktopLayoutManager::SetMainWindowSize() { |
| 51 gfx::Rect bounds; | 51 gfx::Rect bounds; |
| 52 bounds.set_size(root_window_->GetHostSize()); | 52 bounds.set_size(root_window_->GetHostSize()); |
| 53 SetChildBoundsDirect(main_window_, bounds); | 53 SetChildBoundsDirect(main_window_, bounds); |
| 54 } | 54 } |
| 55 | 55 |
| 56 } // namespace views | 56 } // namespace views |
| OLD | NEW |