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

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

Issue 1085233004: Moves services implementations out of third_party/mojo_services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unnecessary changes Created 5 years, 8 months 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
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 "components/window_manager/basic_focus_rules.h" 5 #include "components/window_manager/basic_focus_rules.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "third_party/mojo_services/src/view_manager/public/cpp/view.h" 8 #include "components/view_manager/public/cpp/view.h"
9 9
10 using mojo::View; 10 using mojo::View;
11 11
12 namespace window_manager { 12 namespace window_manager {
13 13
14 BasicFocusRules::BasicFocusRules(View* window_container) 14 BasicFocusRules::BasicFocusRules(View* window_container)
15 : window_container_(window_container) { 15 : window_container_(window_container) {
16 } 16 }
17 17
18 BasicFocusRules::~BasicFocusRules() {} 18 BasicFocusRules::~BasicFocusRules() {}
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // have those. 162 // have those.
163 163
164 return CanFocusViewImpl(view->parent()); 164 return CanFocusViewImpl(view->parent());
165 } 165 }
166 166
167 bool BasicFocusRules::IsViewParentedToWindowContainer(View* view) const { 167 bool BasicFocusRules::IsViewParentedToWindowContainer(View* view) const {
168 return view->parent() == window_container_; 168 return view->parent() == window_container_;
169 } 169 }
170 170
171 } // namespace mojo 171 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698