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 // Internal message types that should not be seen outside the protocol | 5 // Internal message types that should not be seen outside the protocol |
6 // directory. | 6 // directory. |
7 | 7 |
8 syntax = "proto2"; | 8 syntax = "proto2"; |
9 | 9 |
10 import "control.proto"; | 10 import "control.proto"; |
11 import "event.proto"; | 11 import "event.proto"; |
12 | 12 |
13 option optimize_for = LITE_RUNTIME; | 13 option optimize_for = LITE_RUNTIME; |
14 | 14 |
15 package remoting.protocol; | 15 package remoting.protocol; |
16 | 16 |
17 // Represents a message being sent on the control channel. | 17 // Represents a message being sent on the control channel. |
18 message ControlMessage { | 18 message ControlMessage { |
19 optional ClipboardEvent clipboard_event = 1; | 19 optional ClipboardEvent clipboard_event = 1; |
20 optional ClientResolution client_resolution = 2; | 20 optional ClientResolution client_resolution = 2; |
21 optional CursorShapeInfo cursor_shape = 4; | 21 optional CursorShapeInfo cursor_shape = 4; |
22 optional VideoControl video_control = 3; | 22 optional VideoControl video_control = 3; |
23 optional AudioControl audio_control = 5; | 23 optional AudioControl audio_control = 5; |
24 optional Capabilities capabilities = 6; | 24 optional Capabilities capabilities = 6; |
25 optional PairingRequest pairing_request = 7; | 25 optional PairingRequest pairing_request = 7; |
26 optional PairingResponse pairing_response = 8; | 26 optional PairingResponse pairing_response = 8; |
27 optional ExtensionMessage extension_message = 9; | 27 optional ExtensionMessage extension_message = 9; |
| 28 optional VideoLayout video_layout = 10; |
28 } | 29 } |
29 | 30 |
30 // Defines an event message on the event channel. | 31 // Defines an event message on the event channel. |
31 message EventMessage { | 32 message EventMessage { |
32 // Client's timestamp used to estimate roundtrip latency. | 33 // Client's timestamp used to estimate roundtrip latency. |
33 optional int64 timestamp = 1; | 34 optional int64 timestamp = 1; |
34 | 35 |
35 optional KeyEvent key_event = 3; | 36 optional KeyEvent key_event = 3; |
36 optional MouseEvent mouse_event = 4; | 37 optional MouseEvent mouse_event = 4; |
37 optional TextEvent text_event = 5; | 38 optional TextEvent text_event = 5; |
38 optional TouchEvent touch_event = 6; | 39 optional TouchEvent touch_event = 6; |
39 } | 40 } |
OLD | NEW |