OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_X11_POINTER_GRAB_H_ |
| 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_X11_POINTER_GRAB_H_ |
| 7 |
| 8 #include "ui/gfx/x/x11_types.h" |
| 9 |
| 10 typedef unsigned long Cursor; |
| 11 |
| 12 namespace views { |
| 13 |
| 14 // Grabs the pointer. It is unnecessary to ungrab the pointer prior to grabbing |
| 15 // it. |
| 16 int GrabPointer(XID window, bool owner_events, ::Cursor cursor); |
| 17 |
| 18 // Ungrabs the pointer. |
| 19 void UngrabPointer(); |
| 20 |
| 21 } // namespace views |
| 22 |
| 23 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_X11_POINTER_GRAB_H_ |
OLD | NEW |