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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 enum Flags { | 131 enum Flags { |
132 FIRST_PACKET = 1; | 132 FIRST_PACKET = 1; |
133 LAST_PACKET = 2; | 133 LAST_PACKET = 2; |
134 } | 134 } |
135 optional int32 flags = 1 [default = 0]; | 135 optional int32 flags = 1 [default = 0]; |
136 | 136 |
137 // The sequence number of the partial data for updating a rectangle. | 137 // The sequence number of the partial data for updating a rectangle. |
138 optional int32 sequence_number = 2 [default = 0]; | 138 optional int32 sequence_number = 2 [default = 0]; |
139 | 139 |
140 // This is provided on the first packet of the rectangle data, when | 140 // This is provided on the first packet of the rectangle data, when |
141 // the sequence_number is 0. | 141 // the flags has FIRST_PACKET set. |
142 optional RectangleFormat format = 3; | 142 optional RectangleFormat format = 3; |
143 | 143 |
144 optional bytes encoded_rect = 4; | 144 optional bytes encoded_rect = 4; |
145 } | 145 } |
146 | 146 |
147 // Defines the message that is sent from the host to the client. | 147 // Defines the message that is sent from the host to the client. |
148 // Only one of these messages should be present. | 148 // Only one of these messages should be present. |
149 // NEXT ID: 5 | 149 // NEXT ID: 5 |
150 message ChromotingHostMessage { | 150 message ChromotingHostMessage { |
151 optional InitClientMessage init_client= 1; | 151 optional InitClientMessage init_client= 1; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 // Only one of the optional messages should be present. | 216 // Only one of the optional messages should be present. |
217 // NEXT ID: 7 | 217 // NEXT ID: 7 |
218 message ChromotingClientMessage { | 218 message ChromotingClientMessage { |
219 optional KeyEvent key_event = 1; | 219 optional KeyEvent key_event = 1; |
220 optional MouseSetPositionEvent mouse_set_position_event = 2; | 220 optional MouseSetPositionEvent mouse_set_position_event = 2; |
221 optional MouseMoveEvent mouse_move_event = 3; | 221 optional MouseMoveEvent mouse_move_event = 3; |
222 optional MouseWheelEvent mouse_wheel_event = 4; | 222 optional MouseWheelEvent mouse_wheel_event = 4; |
223 optional MouseDownEvent mouse_down_event = 5; | 223 optional MouseDownEvent mouse_down_event = 5; |
224 optional MouseUpEvent mouse_up_event = 6; | 224 optional MouseUpEvent mouse_up_event = 6; |
225 } | 225 } |
OLD | NEW |