Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: services/window_manager/basic_focus_rules.cc

Issue 765753003: Move window_manager service implementation to //services (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/window_manager/basic_focus_rules.h ('k') | services/window_manager/focus_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « services/window_manager/basic_focus_rules.h ('k') | services/window_manager/focus_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698