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 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 } |
OLD | NEW |