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