OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "aura/window_manager.h" | 5 #include "ui/aura/window_manager.h" |
6 | 6 |
7 #include "aura/event.h" | 7 #include "ui/aura/event.h" |
8 #include "aura/focus_manager.h" | 8 #include "ui/aura/focus_manager.h" |
9 #include "aura/window.h" | 9 #include "ui/aura/window.h" |
10 #include "aura/window_delegate.h" | 10 #include "ui/aura/window_delegate.h" |
11 | 11 |
12 #if !defined(OS_WIN) | 12 #if !defined(OS_WIN) |
13 #include "aura/hit_test.h" | 13 #include "ui/aura/hit_test.h" |
14 #endif | 14 #endif |
15 | 15 |
16 namespace aura { | 16 namespace aura { |
17 | 17 |
18 WindowManager::WindowManager(Window* owner) | 18 WindowManager::WindowManager(Window* owner) |
19 : owner_(owner), | 19 : owner_(owner), |
20 window_component_(HTNOWHERE) { | 20 window_component_(HTNOWHERE) { |
21 } | 21 } |
22 | 22 |
23 WindowManager::~WindowManager() { | 23 WindowManager::~WindowManager() { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 Window* parent = owner_->parent(); | 57 Window* parent = owner_->parent(); |
58 Window* child = owner_; | 58 Window* child = owner_; |
59 while (parent) { | 59 while (parent) { |
60 parent->MoveChildToFront(child); | 60 parent->MoveChildToFront(child); |
61 parent = parent->parent(); | 61 parent = parent->parent(); |
62 child = child->parent(); | 62 child = child->parent(); |
63 } | 63 } |
64 } | 64 } |
65 | 65 |
66 } // namespace aura | 66 } // namespace aura |
OLD | NEW |