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

Unified Diff: remoting/host/clipboard.h

Issue 10381115: [Chromoting] The Windows IT2Me host gets any new text items it finds on the clipboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync. Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/host/clipboard_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/clipboard.h
diff --git a/remoting/host/clipboard.h b/remoting/host/clipboard.h
index c21a8ba1bb797056fb891ab299ff33097fa0acb1..e02c09d2a64831e47a8230911b2d9f9ca2ebbbe8 100644
--- a/remoting/host/clipboard.h
+++ b/remoting/host/clipboard.h
@@ -15,20 +15,19 @@ namespace protocol {
class ClipboardEvent;
} // namespace protocol
+// All Clipboard methods should be run on the UI thread, so that the Clipboard
+// can get change notifications.
class Clipboard {
public:
virtual ~Clipboard() {};
// Initialises any objects needed to read from or write to the clipboard.
- // This method must be called on the desktop thread.
virtual void Start() = 0;
// Destroys any objects initialised by Start().
- // This method must be called on the desktop thread.
virtual void Stop() = 0;
- // Writes an item to the clipboard.
- // This method must be called on the desktop thread, after Start().
+ // Writes an item to the clipboard. It must be called after Start().
virtual void InjectClipboardEvent(const protocol::ClipboardEvent& event) = 0;
static scoped_ptr<Clipboard> Create();
« no previous file with comments | « no previous file | remoting/host/clipboard_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698