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

Side by Side Diff: chrome/browser/ui/views/tabs/window_finder.cc

Issue 2449103004: Refactor WindowFinder definition (Closed)
Patch Set: no ifdefs Created 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "chrome/browser/ui/views/tabs/window_finder.h" 5 #include "chrome/browser/ui/views/tabs/window_finder.h"
6 6
7 WindowFinder::WindowFinder() {} 7 #include "chrome/browser/ui/views/tabs/window_finder_mus.h"
8 WindowFinder::~WindowFinder() {} 8 #include "content/public/common/service_manager_connection.h" // nogncheck
9 #include "services/service_manager/runner/common/client_util.h" // nogncheck
10
11 gfx::NativeWindow WindowFinder::GetLocalProcessWindowAtPoint(
12 const gfx::Point& screen_point,
13 const std::set<gfx::NativeWindow>& ignore) {
14
15 content::ServiceManagerConnection* service_manager_connection =
16 content::ServiceManagerConnection::GetForProcess();
17 if (service_manager_connection && service_manager::ServiceManagerIsRemote())
18 return GetLocalProcessWindowAtPointMus(screen_point, ignore);
19
20 return GetLocalProcessWindowAtPointImpl(screen_point, ignore);
21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698