summaryrefslogtreecommitdiffstats
path: root/remoting/client
diff options
context:
space:
mode:
authorsimonmorris@chromium.org <simonmorris@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-04 18:13:56 +0000
committersimonmorris@chromium.org <simonmorris@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-04 18:13:56 +0000
commit392870ff5dd0d7ceb66da2f384e1556762447971 (patch)
tree8632789fd15b0f5d7f417e7d8aa5beaaaa8e16e5 /remoting/client
parentf04e9a038f4ac103db30821a5aa3bf01780dced6 (diff)
downloadchromium_src-392870ff5dd0d7ceb66da2f384e1556762447971.zip
chromium_src-392870ff5dd0d7ceb66da2f384e1556762447971.tar.gz
chromium_src-392870ff5dd0d7ceb66da2f384e1556762447971.tar.bz2
[Chromoting] Let the client plugin pass clipboard items to the host.
BUG=117473 Review URL: https://chromiumcodereview.appspot.com/9958015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130683 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/client')
-rw-r--r--remoting/client/plugin/chromoting_instance.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/remoting/client/plugin/chromoting_instance.cc b/remoting/client/plugin/chromoting_instance.cc
index aa8c331..b88761d 100644
--- a/remoting/client/plugin/chromoting_instance.cc
+++ b/remoting/client/plugin/chromoting_instance.cc
@@ -431,7 +431,13 @@ void ChromotingInstance::InjectKeyEvent(const protocol::KeyEvent& event) {
void ChromotingInstance::SendClipboardItem(const std::string& mime_type,
const std::string& item) {
- // TODO(simonmorris): Plumb this in to a ClipboardStub.
+ if (!host_connection_.get()) {
+ return;
+ }
+ protocol::ClipboardEvent event;
+ event.set_mime_type(mime_type);
+ event.set_data(item);
+ host_connection_->clipboard_stub()->InjectClipboardEvent(event);
}
ChromotingStats* ChromotingInstance::GetStats() {