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

Unified Diff: chrome/browser/ui/views/tabs/window_finder.cc

Issue 2449103004: Refactor WindowFinder definition (Closed)
Patch Set: no ifdefs Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/tabs/window_finder.cc
diff --git a/chrome/browser/ui/views/tabs/window_finder.cc b/chrome/browser/ui/views/tabs/window_finder.cc
index 7f95d12d1a6b89961bacfdba9ec57c6dac19b6f3..6d41765f3cc4f9ef0ea7c6376ff59025d1783d9f 100644
--- a/chrome/browser/ui/views/tabs/window_finder.cc
+++ b/chrome/browser/ui/views/tabs/window_finder.cc
@@ -4,5 +4,18 @@
#include "chrome/browser/ui/views/tabs/window_finder.h"
-WindowFinder::WindowFinder() {}
-WindowFinder::~WindowFinder() {}
+#include "chrome/browser/ui/views/tabs/window_finder_mus.h"
+#include "content/public/common/service_manager_connection.h" // nogncheck
+#include "services/service_manager/runner/common/client_util.h" // nogncheck
+
+gfx::NativeWindow WindowFinder::GetLocalProcessWindowAtPoint(
+ const gfx::Point& screen_point,
+ const std::set<gfx::NativeWindow>& ignore) {
+
+ content::ServiceManagerConnection* service_manager_connection =
+ content::ServiceManagerConnection::GetForProcess();
+ if (service_manager_connection && service_manager::ServiceManagerIsRemote())
+ return GetLocalProcessWindowAtPointMus(screen_point, ignore);
+
+ return GetLocalProcessWindowAtPointImpl(screen_point, ignore);
+}

Powered by Google App Engine
This is Rietveld 408576698