| 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);
|
| };
|
|
|
|
|