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

Side by Side Diff: ui/views/widget/desktop_aura/x11_scoped_capture.h

Issue 380943003: Do not release capture when transferring capture between Chrome windows on Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 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

Powered by Google App Engine
This is Rietveld 408576698