OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "sky/tools/debugger/focus_rules.h" | 5 #include "sky/tools/debugger/focus_rules.h" |
6 | 6 |
7 namespace sky { | 7 namespace sky { |
| 8 namespace debugger { |
8 | 9 |
9 FocusRules::FocusRules(mojo::WindowManagerApp* window_manager_app, | 10 FocusRules::FocusRules(mojo::WindowManagerApp* window_manager_app, |
10 mojo::View* content) | 11 mojo::View* content) |
11 : content_(content), | 12 : content_(content), |
12 window_manager_app_(window_manager_app) { | 13 window_manager_app_(window_manager_app) { |
13 } | 14 } |
14 | 15 |
15 FocusRules::~FocusRules() { | 16 FocusRules::~FocusRules() { |
16 } | 17 } |
17 | 18 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 aura::Window* activatable = GetActivatableWindow(ignore); | 50 aura::Window* activatable = GetActivatableWindow(ignore); |
50 const aura::Window::Windows& children = activatable->parent()->children(); | 51 const aura::Window::Windows& children = activatable->parent()->children(); |
51 for (aura::Window::Windows::const_reverse_iterator it = children.rbegin(); | 52 for (aura::Window::Windows::const_reverse_iterator it = children.rbegin(); |
52 it != children.rend(); ++it) { | 53 it != children.rend(); ++it) { |
53 if (*it != ignore) | 54 if (*it != ignore) |
54 return *it; | 55 return *it; |
55 } | 56 } |
56 return NULL; | 57 return NULL; |
57 } | 58 } |
58 | 59 |
| 60 } // namespace debugger |
59 } // namespace sky | 61 } // namespace sky |
OLD | NEW |