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"; | |
12 | 11 |
13 option optimize_for = LITE_RUNTIME; | 12 option optimize_for = LITE_RUNTIME; |
14 | 13 |
15 package remoting; | 14 package remoting; |
16 | 15 |
17 // Defines the message that is sent from the host to the client. | 16 // Defines the message that is sent from the host to the client. |
18 // Only one of these messages should be present. | 17 // Only one of these messages should be present. |
19 // NEXT ID: 5 | 18 // NEXT ID: 5 |
20 message ChromotingHostMessage { | 19 message ChromotingHostMessage { |
21 optional InitClientMessage init_client= 1; | 20 optional InitClientMessage init_client= 1; |
22 optional VideoPacket video_packet = 2; | 21 optional BeginUpdateStreamMessage begin_update_stream = 2; |
| 22 optional EndUpdateStreamMessage end_update_stream = 3; |
| 23 optional UpdateStreamPacketMessage update_stream_packet = 4; |
| 24 optional RectangleUpdatePacket rectangle_update = 5; |
23 } | 25 } |
24 | 26 |
25 // Defines the message that is sent from the client to the host. | 27 // Defines the message that is sent from the client to the host. |
26 // Only one of the optional messages should be present. | 28 // Only one of the optional messages should be present. |
27 // NEXT ID: 7 | 29 // NEXT ID: 7 |
28 message ChromotingClientMessage { | 30 message ChromotingClientMessage { |
29 optional KeyEvent key_event = 1; | 31 optional KeyEvent key_event = 1; |
30 optional MouseSetPositionEvent mouse_set_position_event = 2; | 32 optional MouseSetPositionEvent mouse_set_position_event = 2; |
31 optional MouseMoveEvent mouse_move_event = 3; | 33 optional MouseMoveEvent mouse_move_event = 3; |
32 optional MouseWheelEvent mouse_wheel_event = 4; | 34 optional MouseWheelEvent mouse_wheel_event = 4; |
33 optional MouseDownEvent mouse_down_event = 5; | 35 optional MouseDownEvent mouse_down_event = 5; |
34 optional MouseUpEvent mouse_up_event = 6; | 36 optional MouseUpEvent mouse_up_event = 6; |
35 } | 37 } |
OLD | NEW |