OLD | NEW |
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 // Protocol for event messages. | 5 // Protocol for event messages. |
6 | 6 |
7 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
10 | 10 |
11 package remoting.protocol; | 11 package remoting.protocol; |
12 | 12 |
13 // Defines a keyboard event. | 13 // Defines a keyboard event. |
14 message KeyEvent { | 14 message KeyEvent { |
15 // The Windows Virtual Key code. | 15 // The Windows Virtual Key code. |
16 optional int32 keycode = 1; | 16 //optional int32 keycode = 1; |
17 optional bool pressed = 2; | 17 optional bool pressed = 2; |
18 | 18 |
19 // The USB key code. | 19 // The USB key code. |
20 // The upper 16-bits are the USB Page (0x07 for key events). | 20 // The upper 16-bits are the USB Page (0x07 for key events). |
21 // The lower 16-bits are the USB Usage ID (which identifies the actual key). | 21 // The lower 16-bits are the USB Usage ID (which identifies the actual key). |
22 optional uint32 usb_keycode = 3; | 22 optional uint32 usb_keycode = 3; |
23 } | 23 } |
24 | 24 |
25 // Defines a mouse event message on the event channel. | 25 // Defines a mouse event message on the event channel. |
26 message MouseEvent { | 26 message MouseEvent { |
(...skipping 24 matching lines...) Expand all Loading... |
51 | 51 |
52 // Defines an event that sends clipboard data between peers. | 52 // Defines an event that sends clipboard data between peers. |
53 message ClipboardEvent { | 53 message ClipboardEvent { |
54 | 54 |
55 // The MIME type of the data being sent. | 55 // The MIME type of the data being sent. |
56 optional string mime_type = 1; | 56 optional string mime_type = 1; |
57 | 57 |
58 // The data being sent. | 58 // The data being sent. |
59 optional bytes data = 2; | 59 optional bytes data = 2; |
60 } | 60 } |
OLD | NEW |