OLD | NEW |
(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_ |
OLD | NEW |