OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 messages as a unit for transmission in the wire. | 5 // Internal messages as a unit for transmission in the wire. |
6 | 6 |
7 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
9 import "control.proto"; | 9 import "control.proto"; |
10 import "event.proto"; | 10 import "event.proto"; |
| 11 import "video.proto"; |
11 | 12 |
12 option optimize_for = LITE_RUNTIME; | 13 option optimize_for = LITE_RUNTIME; |
13 | 14 |
14 package remoting; | 15 package remoting; |
15 | 16 |
16 // Defines the message that is sent from the host to the client. | 17 // Defines the message that is sent from the host to the client. |
17 // Only one of these messages should be present. | 18 // Only one of these messages should be present. |
18 // NEXT ID: 5 | 19 // NEXT ID: 5 |
19 message ChromotingHostMessage { | 20 message ChromotingHostMessage { |
20 optional InitClientMessage init_client= 1; | 21 optional InitClientMessage init_client= 1; |
21 optional BeginUpdateStreamMessage begin_update_stream = 2; | 22 optional VideoPacket video_packet = 2; |
22 optional EndUpdateStreamMessage end_update_stream = 3; | |
23 optional UpdateStreamPacketMessage update_stream_packet = 4; | |
24 optional RectangleUpdatePacket rectangle_update = 5; | |
25 } | 23 } |
26 | 24 |
27 // Defines the message that is sent from the client to the host. | 25 // Defines the message that is sent from the client to the host. |
28 // Only one of the optional messages should be present. | 26 // Only one of the optional messages should be present. |
29 // NEXT ID: 7 | 27 // NEXT ID: 7 |
30 message ChromotingClientMessage { | 28 message ChromotingClientMessage { |
31 optional KeyEvent key_event = 1; | 29 optional KeyEvent key_event = 1; |
32 optional MouseSetPositionEvent mouse_set_position_event = 2; | 30 optional MouseSetPositionEvent mouse_set_position_event = 2; |
33 optional MouseMoveEvent mouse_move_event = 3; | 31 optional MouseMoveEvent mouse_move_event = 3; |
34 optional MouseWheelEvent mouse_wheel_event = 4; | 32 optional MouseWheelEvent mouse_wheel_event = 4; |
35 optional MouseDownEvent mouse_down_event = 5; | 33 optional MouseDownEvent mouse_down_event = 5; |
36 optional MouseUpEvent mouse_up_event = 6; | 34 optional MouseUpEvent mouse_up_event = 6; |
37 } | 35 } |
OLD | NEW |