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 "mojo/services/window_manager/basic_focus_rules.h" | 5 #include "services/window_manager/basic_focus_rules.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "mojo/services/public/cpp/view_manager/view.h" | 8 #include "mojo/services/public/cpp/view_manager/view.h" |
9 | 9 |
10 namespace mojo { | 10 namespace mojo { |
11 | 11 |
12 BasicFocusRules::BasicFocusRules(mojo::View* window_container) | 12 BasicFocusRules::BasicFocusRules(mojo::View* window_container) |
13 : window_container_(window_container) { | 13 : window_container_(window_container) { |
14 } | 14 } |
15 | 15 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 const mojo::View::Children& children = activatable->parent()->children(); | 53 const mojo::View::Children& children = activatable->parent()->children(); |
54 for (mojo::View::Children::const_reverse_iterator it = children.rbegin(); | 54 for (mojo::View::Children::const_reverse_iterator it = children.rbegin(); |
55 it != children.rend(); ++it) { | 55 it != children.rend(); ++it) { |
56 if (*it != activatable) | 56 if (*it != activatable) |
57 return *it; | 57 return *it; |
58 } | 58 } |
59 return nullptr; | 59 return nullptr; |
60 } | 60 } |
61 | 61 |
62 } // namespace mojo | 62 } // namespace mojo |
OLD | NEW |