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