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; |
| 10 |
9 package remoting.protocol; | 11 package remoting.protocol; |
10 | 12 |
11 // Defines a keyboard event. | 13 // Defines a keyboard event. |
12 message KeyEvent { | 14 message KeyEvent { |
13 // The Windows Virtual Key code. | 15 // The Windows Virtual Key code. |
14 //optional int32 keycode = 1; | 16 //optional int32 keycode = 1; |
15 optional bool pressed = 2; | 17 optional bool pressed = 2; |
16 | 18 |
17 // The USB key code. | 19 // The USB key code. |
18 // 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). |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 57 |
56 // Defines an event that sends clipboard data between peers. | 58 // Defines an event that sends clipboard data between peers. |
57 message ClipboardEvent { | 59 message ClipboardEvent { |
58 | 60 |
59 // The MIME type of the data being sent. | 61 // The MIME type of the data being sent. |
60 optional string mime_type = 1; | 62 optional string mime_type = 1; |
61 | 63 |
62 // The data being sent. | 64 // The data being sent. |
63 optional bytes data = 2; | 65 optional bytes data = 2; |
64 } | 66 } |
OLD | NEW |