diff options
author | simonmorris@chromium.org <simonmorris@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-16 17:28:03 +0000 |
---|---|---|
committer | simonmorris@chromium.org <simonmorris@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-16 17:28:03 +0000 |
commit | e265ad798d7713116f2e9168eaa4913854029c20 (patch) | |
tree | 762319020e8f734beda094e7e8d0a32b8249f454 /remoting/proto | |
parent | 856ff54b27138c316bd5433a20eeb527032e1608 (diff) | |
download | chromium_src-e265ad798d7713116f2e9168eaa4913854029c20.zip chromium_src-e265ad798d7713116f2e9168eaa4913854029c20.tar.gz chromium_src-e265ad798d7713116f2e9168eaa4913854029c20.tar.bz2 |
Add the plumbing that will carry a clipboard item from a chromoting client to a host.
BUG=117473
Review URL: http://codereview.chromium.org/9646013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127195 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/proto')
-rw-r--r-- | remoting/proto/event.proto | 10 | ||||
-rw-r--r-- | remoting/proto/internal.proto | 7 |
2 files changed, 14 insertions, 3 deletions
diff --git a/remoting/proto/event.proto b/remoting/proto/event.proto index dcc2aae..e42f5d3 100644 --- a/remoting/proto/event.proto +++ b/remoting/proto/event.proto @@ -48,3 +48,13 @@ message MouseEvent { optional MouseButton button = 5; optional bool button_down = 6; } + +// Defines an event that sends clipboard data between peers. +message ClipboardEvent { + + // The MIME type of the data being sent. + optional string mime_type = 1; + + // The data being sent. + optional bytes data = 2; +} diff --git a/remoting/proto/internal.proto b/remoting/proto/internal.proto index e63982d..a65b677 100644 --- a/remoting/proto/internal.proto +++ b/remoting/proto/internal.proto @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 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. @@ -16,12 +16,13 @@ package remoting.protocol; // Represents a message being sent on the control channel. message ControlMessage { + optional ClipboardEvent clipboard_event = 1; } // Defines an event message on the event channel. message EventMessage { - required int64 sequence_number = 1; // Client timestamp for event - optional bool dummy = 2; // Is this a dummy event? + required int64 sequence_number = 1; // Client timestamp for event. + optional bool dummy = 2; // Whether this is a dummy event. optional KeyEvent key_event = 3; optional MouseEvent mouse_event = 4; |