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

Side by Side Diff: sky/tools/debugger/focus_rules.cc

Issue 690363002: Make clicking links work in SkyDB (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/tools/debugger/focus_rules.h ('k') | sky/tools/debugger/main.cc » ('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 "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
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
OLDNEW
« no previous file with comments | « sky/tools/debugger/focus_rules.h ('k') | sky/tools/debugger/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698