| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 message types that should not be seen outside the protocol | 5 // Internal message types that should not be seen outside the protocol |
| 6 // directory. | 6 // directory. |
| 7 | 7 |
| 8 syntax = "proto2"; | 8 syntax = "proto2"; |
| 9 | 9 |
| 10 import "control.proto"; | 10 import "control.proto"; |
| 11 import "event.proto"; | 11 import "event.proto"; |
| 12 | 12 |
| 13 option optimize_for = LITE_RUNTIME; | |
| 14 | |
| 15 package remoting.protocol; | 13 package remoting.protocol; |
| 16 | 14 |
| 17 // Represents a message being sent on the control channel. | 15 // Represents a message being sent on the control channel. |
| 18 message ControlMessage { | 16 message ControlMessage { |
| 19 optional ClipboardEvent clipboard_event = 1; | 17 optional ClipboardEvent clipboard_event = 1; |
| 20 optional ClientDimensions client_dimensions = 2; | 18 optional ClientDimensions client_dimensions = 2; |
| 21 optional CursorShapeInfo cursor_shape = 4; | 19 optional CursorShapeInfo cursor_shape = 4; |
| 22 optional VideoControl video_control = 3; | 20 optional VideoControl video_control = 3; |
| 23 optional AudioControl audio_control = 5; | 21 optional AudioControl audio_control = 5; |
| 24 } | 22 } |
| 25 | 23 |
| 26 // Defines an event message on the event channel. | 24 // Defines an event message on the event channel. |
| 27 message EventMessage { | 25 message EventMessage { |
| 28 optional int64 sequence_number = 1; // Client timestamp for event. | 26 optional int64 sequence_number = 1; // Client timestamp for event. |
| 29 optional bool dummy = 2; // Whether this is a dummy event. | 27 optional bool dummy = 2; // Whether this is a dummy event. |
| 30 | 28 |
| 31 optional KeyEvent key_event = 3; | 29 optional KeyEvent key_event = 3; |
| 32 optional MouseEvent mouse_event = 4; | 30 optional MouseEvent mouse_event = 4; |
| 33 } | 31 } |
| OLD | NEW |