summaryrefslogtreecommitdiffstats
path: root/remoting/proto/event.proto
diff options
context:
space:
mode:
authorwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-11 02:27:09 +0000
committerwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-11 02:27:09 +0000
commit6387b4de56f0ac62bae8ab2c356e617db9cb9c55 (patch)
treedb0c2f91281a6bb150b32c3bee1eb436c0047585 /remoting/proto/event.proto
parent4a404e5356b27578de71b9b41de686768d2ecd42 (diff)
downloadchromium_src-6387b4de56f0ac62bae8ab2c356e617db9cb9c55.zip
chromium_src-6387b4de56f0ac62bae8ab2c356e617db9cb9c55.tar.gz
chromium_src-6387b4de56f0ac62bae8ab2c356e617db9cb9c55.tar.bz2
This CL removes the unused trace.proto definition and build target, and makes all protobuf fields "optional".
Fields marked required cause protobuf messages to be silently ignored if those fields are not present. By moving the fields to be optional we have more flexibility to remove fields in future. All of the previously-required fields were in client-to-host messages; clients will need to continue to provide those fields at least until all hosts are updated not to require them - this is primarily relevant for the KeyEvent "keycode" field. Review URL: http://codereview.chromium.org/10024003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131698 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/proto/event.proto')
-rw-r--r--remoting/proto/event.proto4
1 files changed, 2 insertions, 2 deletions
diff --git a/remoting/proto/event.proto b/remoting/proto/event.proto
index e42f5d3..e0a469d 100644
--- a/remoting/proto/event.proto
+++ b/remoting/proto/event.proto
@@ -13,8 +13,8 @@ package remoting.protocol;
// Defines a keyboard event.
message KeyEvent {
// The Windows Virtual Key code.
- required int32 keycode = 1;
- required bool pressed = 2;
+ optional int32 keycode = 1;
+ optional bool pressed = 2;
// The USB key code.
// The upper 16-bits are the USB Page (0x07 for key events).