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

Unified Diff: ui/ozone/platform/dri/dri_window_manager.cc

Issue 766583002: ozone: dri: Support moving between displays in MoveCursorTo(location) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/ozone/platform/dri/dri_window_manager.h ('k') | ui/ozone/platform/egltest/ozone_platform_egltest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/dri_window_manager.cc
diff --git a/ui/ozone/platform/dri/dri_window_manager.cc b/ui/ozone/platform/dri/dri_window_manager.cc
index 029c2f5165f6e22568b104d134545e04e3707ac7..a20d115f0671eb7181dea2eab16f9c0d615e8416 100644
--- a/ui/ozone/platform/dri/dri_window_manager.cc
+++ b/ui/ozone/platform/dri/dri_window_manager.cc
@@ -62,6 +62,14 @@ DriWindow* DriWindowManager::GetWindow(gfx::AcceleratedWidget widget) {
return NULL;
}
+DriWindow* DriWindowManager::GetWindowAt(const gfx::Point& location) {
+ for (auto it = window_map_.begin(); it != window_map_.end(); ++it)
+ if (it->second->GetBounds().Contains(location))
+ return it->second;
+
+ return NULL;
+}
+
void DriWindowManager::ResetCursorLocation() {
gfx::AcceleratedWidget cursor_widget = gfx::kNullAcceleratedWidget;
gfx::PointF location;
« no previous file with comments | « ui/ozone/platform/dri/dri_window_manager.h ('k') | ui/ozone/platform/egltest/ozone_platform_egltest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698