| 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 control messages. | 5 // Protocol for control messages. |
| 6 | 6 |
| 7 syntax = "proto2"; | 7 syntax = "proto2"; |
| 8 | 8 |
| 9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
| 10 | 10 |
| 11 package remoting; | 11 package remoting.protocol; |
| 12 | 12 |
| 13 message SuggestScreenResolutionRequest { | 13 // TODO(hclam): Isolate rectangle from these two messages. |
| 14 message SuggestResolutionRequest { |
| 14 required int32 width = 1; | 15 required int32 width = 1; |
| 15 required int32 height = 2; | 16 required int32 height = 2; |
| 16 }; | 17 }; |
| 17 | 18 |
| 18 // Represents a control message that sent from the client to the host. | 19 message NotifyResolutionRequest { |
| 19 // This message is transmitted on the control channel. | |
| 20 message ClientControlMessage { | |
| 21 optional SuggestScreenResolutionRequest suggest_screen_resolution_request = 1; | |
| 22 } | |
| 23 | |
| 24 message SetScreenResolutionRequest { | |
| 25 required int32 width = 1; | 20 required int32 width = 1; |
| 26 required int32 height = 2; | 21 required int32 height = 2; |
| 27 }; | 22 }; |
| 28 | 23 |
| 29 // Represents a control message that sent from host to the client. | 24 // Represents a message being sent on the control channel. |
| 30 // This message is transmitted on the control channel. | 25 message ControlMessage { |
| 31 message HostControlMessage { | 26 optional SuggestResolutionRequest suggest_resolution = 1; |
| 32 optional SetScreenResolutionRequest set_screen_resolution_request = 1; | 27 optional NotifyResolutionRequest notify_resolution = 2; |
| 33 } | 28 } |
| OLD | NEW |