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

Unified Diff: ui/views/widget/desktop_aura/x11_scoped_capture.h

Issue 110223004: linux-aura: Fix some dragging behaviour. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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
Index: ui/views/widget/desktop_aura/x11_scoped_capture.h
diff --git a/ui/views/widget/desktop_aura/x11_scoped_capture.h b/ui/views/widget/desktop_aura/x11_scoped_capture.h
new file mode 100644
index 0000000000000000000000000000000000000000..cd744c86451a54b70bdf795e42343bce4031e766
--- /dev/null
+++ b/ui/views/widget/desktop_aura/x11_scoped_capture.h
@@ -0,0 +1,29 @@
+// Copyright 2013 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_SCOPED_CAPTURE_H_
+#define UI_VIEWS_WIDGET_DESKTOP_AURA_X11_SCOPED_CAPTURE_H_
+
+#include "base/basictypes.h"
+
+typedef unsigned long XID;
+
+namespace views {
+
+// Grabs X11 input on a window., i.e. all subsequent mouse events are dispatched
+// to the window, while the capture is active.
+class X11ScopedCapture {
+ public:
+ explicit X11ScopedCapture(XID window);
+ virtual ~X11ScopedCapture();
+
+ private:
+ bool captured_;
+
+ DISALLOW_COPY_AND_ASSIGN(X11ScopedCapture);
+};
+
+} // namespace views
+
+#endif // UI_VIEWS_WIDGET_DESKTOP_AURA_X11_SCOPED_CAPTURE_H_
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc ('k') | ui/views/widget/desktop_aura/x11_scoped_capture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698