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

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

Issue 657603002: ash: ozone: apply transformation to events outside the root window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on ToT 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
Index: ui/ozone/platform/dri/dri_window_manager.h
diff --git a/ui/ozone/platform/dri/dri_window_manager.h b/ui/ozone/platform/dri/dri_window_manager.h
index 5a03957b8cfcba18cf7c7a0841b5c844d3e2ab45..eb82859647588f72b5461db7aaa6cbf52914af98 100644
--- a/ui/ozone/platform/dri/dri_window_manager.h
+++ b/ui/ozone/platform/dri/dri_window_manager.h
@@ -39,6 +39,17 @@ class DriWindowManager {
DriCursor* cursor() const { return cursor_.get(); }
+ // Sets a given widget as the recipient for mouse events.
+ void GrabMouseEvents(gfx::AcceleratedWidget widget);
+
+ // Unsets a given widget as the recipient for mouse events.
+ void UngrabMouseEvents(gfx::AcceleratedWidget widget);
+
+ // Gets the widget current recipient of mouse events.
+ gfx::AcceleratedWidget mouse_events_grabber() const {
+ return mouse_events_grabber_;
+ }
+
private:
// Reset the cursor location based on the list of active windows.
void ResetCursorLocation();
@@ -50,6 +61,8 @@ class DriWindowManager {
scoped_ptr<DriCursor> cursor_;
+ gfx::AcceleratedWidget mouse_events_grabber_;
+
DISALLOW_COPY_AND_ASSIGN(DriWindowManager);
};

Powered by Google App Engine
This is Rietveld 408576698