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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 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_SCOPED_CAPTURE_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_X11_SCOPED_CAPTURE_H_
7
8 #include "base/basictypes.h"
9
10 typedef unsigned long XID;
11
12 namespace views {
13
14 // Grabs X11 input on a window., i.e. all subsequent mouse events are dispatched
15 // to the window, while the capture is active.
16 class X11ScopedCapture {
17 public:
18 explicit X11ScopedCapture(XID window);
19 virtual ~X11ScopedCapture();
20
21 private:
22 bool captured_;
23
24 DISALLOW_COPY_AND_ASSIGN(X11ScopedCapture);
25 };
26
27 } // namespace views
28
29 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_X11_SCOPED_CAPTURE_H_
OLDNEW
« 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