OLD | NEW |
| (Empty) |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "blimp/engine/app/ui/blimp_layout_manager.h" | |
6 | |
7 #include "ui/aura/window.h" | |
8 | |
9 namespace blimp { | |
10 namespace engine { | |
11 | |
12 BlimpLayoutManager::BlimpLayoutManager(aura::Window* root_window) | |
13 : root_window_(root_window) {} | |
14 | |
15 BlimpLayoutManager::~BlimpLayoutManager() {} | |
16 | |
17 void BlimpLayoutManager::OnWindowResized() {} | |
18 | |
19 void BlimpLayoutManager::OnWindowAddedToLayout(aura::Window* child) { | |
20 child->SetBounds(root_window_->bounds()); | |
21 } | |
22 | |
23 void BlimpLayoutManager::OnWillRemoveWindowFromLayout(aura::Window* child) {} | |
24 | |
25 void BlimpLayoutManager::OnWindowRemovedFromLayout(aura::Window* child) {} | |
26 | |
27 void BlimpLayoutManager::OnChildWindowVisibilityChanged(aura::Window* child, | |
28 bool visible) {} | |
29 | |
30 void BlimpLayoutManager::SetChildBounds(aura::Window* child, | |
31 const gfx::Rect& requested_bounds) { | |
32 SetChildBoundsDirect(child, root_window_->bounds()); | |
33 } | |
34 | |
35 } // namespace engine | |
36 } // namespace blimp | |
OLD | NEW |