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

Unified Diff: ui/base/x/x11_util.h

Issue 821803002: Use XGrabPointer instead of XChangeActivatePointerGrab() to change the cursor during a pointer grab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_capture
Patch Set: Created 6 years 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 | « no previous file | ui/base/x/x11_util.cc » ('j') | ui/base/x/x11_util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/x/x11_util.h
diff --git a/ui/base/x/x11_util.h b/ui/base/x/x11_util.h
index ffcf8461c75613fe43ba39aeec23b08db6c298ed..aafbf65aa322319297c10ef541c66124239b7ff2 100644
--- a/ui/base/x/x11_util.h
+++ b/ui/base/x/x11_util.h
@@ -45,6 +45,13 @@ namespace ui {
// Returns true if the system supports XINPUT2.
UI_BASE_EXPORT bool IsXInput2Available();
+// Grabs the pointer. It is unnecessary to ungrab the pointer prior to grabbing
+// it.
+UI_BASE_EXPORT int GrabPointer(XID window, bool owner_events, ::Cursor cursor);
+
+// Ungrabs the pointer.
+UI_BASE_EXPORT void UngrabPointer();
+
// X shared memory comes in three flavors:
// 1) No SHM support,
// 2) SHM putimage,
« no previous file with comments | « no previous file | ui/base/x/x11_util.cc » ('j') | ui/base/x/x11_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698