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

Unified Diff: ui/views/widget/desktop_aura/x11_pointer_grab.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 5 years, 11 months 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/views/widget/desktop_aura/x11_pointer_grab.h
diff --git a/ui/views/widget/desktop_aura/x11_pointer_grab.h b/ui/views/widget/desktop_aura/x11_pointer_grab.h
new file mode 100644
index 0000000000000000000000000000000000000000..3bae5665c5b5813b4651610751d7c28011fe1fac
--- /dev/null
+++ b/ui/views/widget/desktop_aura/x11_pointer_grab.h
@@ -0,0 +1,23 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_X11_POINTER_GRAB_H_
+#define UI_VIEWS_WIDGET_DESKTOP_AURA_X11_POINTER_GRAB_H_
+
+#include "ui/gfx/x/x11_types.h"
+
+typedef unsigned long Cursor;
+
+namespace views {
+
+// Grabs the pointer. It is unnecessary to ungrab the pointer prior to grabbing
+// it.
+int GrabPointer(XID window, bool owner_events, ::Cursor cursor);
+
+// Ungrabs the pointer.
+void UngrabPointer();
+
+} // namespace views
+
+#endif // UI_VIEWS_WIDGET_DESKTOP_AURA_X11_POINTER_GRAB_H_

Powered by Google App Engine
This is Rietveld 408576698