Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 } | |
| OLD | NEW |