Chromium Code Reviews| 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..380b4e6434c195c56d8955784c2bf727a4b02ef1 |
| --- /dev/null |
| +++ b/ui/views/widget/desktop_aura/x11_scoped_capture.h |
| @@ -0,0 +1,27 @@ |
| +// 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 { |
| + |
| +class X11ScopedCapture { |
|
Elliot Glaysher
2013/12/16 18:29:18
nit: document class
sadrul
2013/12/17 04:34:23
Done.
|
| + 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_ |