OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Don't include this file from any .h files because it pulls in some X headers. | 5 // Don't include this file from any .h files because it pulls in some X headers. |
6 | 6 |
7 #ifndef REMOTING_HOST_LINUX_X_SERVER_CLIPBOARD_H_ | 7 #ifndef REMOTING_HOST_LINUX_X_SERVER_CLIPBOARD_H_ |
8 #define REMOTING_HOST_LINUX_X_SERVER_CLIPBOARD_H_ | 8 #define REMOTING_HOST_LINUX_X_SERVER_CLIPBOARD_H_ |
9 | 9 |
10 #include <X11/Xatom.h> | 10 #include <X11/Xatom.h> |
11 #include <X11/Xlib.h> | 11 #include <X11/Xlib.h> |
12 | 12 |
13 #include <set> | 13 #include <set> |
14 #include <string> | 14 #include <string> |
15 | 15 |
16 #include "base/basictypes.h" | |
17 #include "base/callback.h" | 16 #include "base/callback.h" |
| 17 #include "base/macros.h" |
18 #include "base/time/time.h" | 18 #include "base/time/time.h" |
19 | 19 |
20 namespace remoting { | 20 namespace remoting { |
21 | 21 |
22 // A class to allow manipulation of the X clipboard, using only X API calls. | 22 // A class to allow manipulation of the X clipboard, using only X API calls. |
23 // This class is not thread-safe, so all its methods must be called on the | 23 // This class is not thread-safe, so all its methods must be called on the |
24 // application's main event-processing thread. | 24 // application's main event-processing thread. |
25 class XServerClipboard { | 25 class XServerClipboard { |
26 public: | 26 public: |
27 // Called when new clipboard data has been received from the owner of the X | 27 // Called when new clipboard data has been received from the owner of the X |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 140 |
141 // |callback| argument supplied to Init(). | 141 // |callback| argument supplied to Init(). |
142 ClipboardChangedCallback callback_; | 142 ClipboardChangedCallback callback_; |
143 | 143 |
144 DISALLOW_COPY_AND_ASSIGN(XServerClipboard); | 144 DISALLOW_COPY_AND_ASSIGN(XServerClipboard); |
145 }; | 145 }; |
146 | 146 |
147 } // namespace remoting | 147 } // namespace remoting |
148 | 148 |
149 #endif // REMOTING_HOST_LINUX_X_SERVER_CLIPBOARD_H_ | 149 #endif // REMOTING_HOST_LINUX_X_SERVER_CLIPBOARD_H_ |
OLD | NEW |