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

Side by Side 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: Move ClipboardWin to the UI thread, and tidy up. 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | remoting/host/clipboard_win.cc » ('j') | remoting/host/event_executor.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef REMOTING_HOST_CLIPBOARD_H_ 5 #ifndef REMOTING_HOST_CLIPBOARD_H_
6 #define REMOTING_HOST_CLIPBOARD_H_ 6 #define REMOTING_HOST_CLIPBOARD_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 11
12 namespace remoting { 12 namespace remoting {
13 13
14 namespace protocol { 14 namespace protocol {
15 class ClipboardEvent; 15 class ClipboardEvent;
16 } // namespace protocol 16 } // namespace protocol
17 17
18 class Clipboard { 18 class Clipboard {
19 public: 19 public:
20 virtual ~Clipboard() {}; 20 virtual ~Clipboard() {};
21 21
22 // Initialises any objects needed to read from or write to the clipboard. 22 // Initialises any objects needed to read from or write to the clipboard.
23 // This method must be called on the desktop thread. 23 // This method must be called on the UI thread.
Wez 2012/05/15 23:46:19 Perhaps move this comment and its friends to a sin
simonmorris 2012/05/16 00:41:33 Done.
24 virtual void Start() = 0; 24 virtual void Start() = 0;
25 25
26 // Destroys any objects initialised by Start(). 26 // Destroys any objects initialised by Start().
27 // This method must be called on the desktop thread. 27 // This method must be called on the UI thread.
28 virtual void Stop() = 0; 28 virtual void Stop() = 0;
29 29
30 // Writes an item to the clipboard. 30 // Writes an item to the clipboard.
31 // This method must be called on the desktop thread, after Start(). 31 // This method must be called on the UI thread, after Start().
32 virtual void InjectClipboardEvent(const protocol::ClipboardEvent& event) = 0; 32 virtual void InjectClipboardEvent(const protocol::ClipboardEvent& event) = 0;
33 33
34 static scoped_ptr<Clipboard> Create(); 34 static scoped_ptr<Clipboard> Create();
35 }; 35 };
36 36
37 } // namespace remoting 37 } // namespace remoting
38 38
39 #endif // REMOTING_HOST_CLIPBOARD_H_ 39 #endif // REMOTING_HOST_CLIPBOARD_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/clipboard_win.cc » ('j') | remoting/host/event_executor.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698