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

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

Issue 2449103004: Refactor WindowFinder definition (Closed)
Patch Set: 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 #include "content/public/common/service_manager_connection.h"
8 #include "services/service_manager/runner/common/client_util.h"
fwang 2016/10/26 07:42:58 It looks like these should be in a #if defined(USE
tonikitoo 2016/10/26 13:41:45 Done.
9
10 #if defined(USE_AURA) && !defined(OS_MACOSX)
11 gfx::NativeWindow GetLocalProcessWindowAtPointMus(
12 const gfx::Point& screen_point,
13 const std::set<gfx::NativeWindow>& ignore);
14 #endif
15
7 WindowFinder::WindowFinder() {} 16 WindowFinder::WindowFinder() {}
17
8 WindowFinder::~WindowFinder() {} 18 WindowFinder::~WindowFinder() {}
19
20 gfx::NativeWindow WindowFinder::GetLocalProcessWindowAtPoint(
21 const gfx::Point& screen_point,
22 const std::set<gfx::NativeWindow>& ignore) {
23 #if defined(USE_AURA) && !defined(OS_MACOSX)
24 content::ServiceManagerConnection* service_manager_connection =
25 content::ServiceManagerConnection::GetForProcess();
26 if (service_manager_connection && service_manager::ServiceManagerIsRemote())
27 return GetLocalProcessWindowAtPointMus(screen_point, ignore);
28 else
fwang 2016/10/26 07:42:58 The else is no longer necessary since we leave the
tonikitoo 2016/10/26 13:41:46 Done.
29 #endif
30
31 return GetLocalProcessWindowAtPointImpl(screen_point, ignore);
32 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/window_finder.h ('k') | chrome/browser/ui/views/tabs/window_finder_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698