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 // Protocol for communication between chromoting client and host. | 5 // Protocol for communication between chromoting client and host. |
6 | 6 |
7 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
10 | 10 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 // NEXT ID: 4 | 92 // NEXT ID: 4 |
93 message UpdateStreamPacketMessage { | 93 message UpdateStreamPacketMessage { |
94 optional UpdateStreamBeginRect begin_rect = 1; | 94 optional UpdateStreamBeginRect begin_rect = 1; |
95 optional UpdateStreamRectData rect_data = 2; | 95 optional UpdateStreamRectData rect_data = 2; |
96 optional UpdateStreamEndRect end_rect = 3; | 96 optional UpdateStreamEndRect end_rect = 3; |
97 } | 97 } |
98 | 98 |
99 // Defines the message that is sent from the host to the client. | 99 // Defines the message that is sent from the host to the client. |
100 // Only one of these messages should be present. | 100 // Only one of these messages should be present. |
101 // NEXT ID: 5 | 101 // NEXT ID: 5 |
102 message HostMessage { | 102 message ChromotingHostMessage { |
103 optional InitClientMessage init_client= 1; | 103 optional InitClientMessage init_client= 1; |
104 optional BeginUpdateStreamMessage begin_update_stream = 2; | 104 optional BeginUpdateStreamMessage begin_update_stream = 2; |
105 optional EndUpdateStreamMessage end_update_stream = 3; | 105 optional EndUpdateStreamMessage end_update_stream = 3; |
106 optional UpdateStreamPacketMessage update_stream_packet = 4; | 106 optional UpdateStreamPacketMessage update_stream_packet = 4; |
107 } | 107 } |
108 | 108 |
109 // Defines a keyboard event. | 109 // Defines a keyboard event. |
110 // NEXT ID: 3 | 110 // NEXT ID: 3 |
111 message KeyEvent { | 111 message KeyEvent { |
112 // The POSIX key code. | 112 // The POSIX key code. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 LEFT = 0; | 155 LEFT = 0; |
156 MIDDLE = 1; | 156 MIDDLE = 1; |
157 RIGHT = 2; | 157 RIGHT = 2; |
158 } | 158 } |
159 required Button button = 1; | 159 required Button button = 1; |
160 } | 160 } |
161 | 161 |
162 // Defines the message that is sent from the client to the host. | 162 // Defines the message that is sent from the client to the host. |
163 // Only one of the optional messages should be present. | 163 // Only one of the optional messages should be present. |
164 // NEXT ID: 7 | 164 // NEXT ID: 7 |
165 message ClientMessage { | 165 message ChromotingClientMessage { |
166 optional KeyEvent key_event = 1; | 166 optional KeyEvent key_event = 1; |
167 optional MouseSetPositionEvent mouse_set_position_event = 2; | 167 optional MouseSetPositionEvent mouse_set_position_event = 2; |
168 optional MouseMoveEvent mouse_move_event = 3; | 168 optional MouseMoveEvent mouse_move_event = 3; |
169 optional MouseWheelEvent mouse_wheel_event = 4; | 169 optional MouseWheelEvent mouse_wheel_event = 4; |
170 optional MouseDownEvent mouse_down_event = 5; | 170 optional MouseDownEvent mouse_down_event = 5; |
171 optional MouseUpEvent mouse_up_event = 6; | 171 optional MouseUpEvent mouse_up_event = 6; |
172 } | 172 } |
OLD | NEW |