| 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 "event.proto"; | 10 import "event.proto"; |
| 10 import "video.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 // Only one of these messages should be present. | |
| 18 // NEXT ID: 5 | |
| 19 message ChromotingHostMessage { | |
| 20 optional InitClientMessage init_client= 1; | |
| 21 optional VideoPacket video_packet = 2; | |
| 22 } | |
| 23 | |
| 24 // Defines the message that is sent from the client to the host. | 17 // Defines the message that is sent from the client to the host. |
| 25 // Only one of the optional messages should be present. | 18 // Only one of the optional messages should be present. |
| 26 // NEXT ID: 7 | 19 // NEXT ID: 7 |
| 27 message ChromotingClientMessage { | 20 message ChromotingClientMessage { |
| 28 optional KeyEvent key_event = 1; | 21 optional KeyEvent key_event = 1; |
| 29 optional MouseSetPositionEvent mouse_set_position_event = 2; | 22 optional MouseSetPositionEvent mouse_set_position_event = 2; |
| 30 optional MouseMoveEvent mouse_move_event = 3; | 23 optional MouseMoveEvent mouse_move_event = 3; |
| 31 optional MouseWheelEvent mouse_wheel_event = 4; | 24 optional MouseWheelEvent mouse_wheel_event = 4; |
| 32 optional MouseDownEvent mouse_down_event = 5; | 25 optional MouseDownEvent mouse_down_event = 5; |
| 33 optional MouseUpEvent mouse_up_event = 6; | 26 optional MouseUpEvent mouse_up_event = 6; |
| 34 } | 27 } |
| OLD | NEW |