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.protocol; | 11 package remoting.protocol; |
12 | 12 |
13 // TODO(hclam): Isolate rectangle from these two messages. | 13 // TODO(hclam): Isolate rectangle from these two messages. |
14 message SuggestResolutionRequest { | 14 message SuggestResolutionRequest { |
15 required int32 width = 1; | 15 required int32 width = 1; |
16 required int32 height = 2; | 16 required int32 height = 2; |
17 }; | 17 }; |
18 | 18 |
19 message NotifyResolutionRequest { | 19 message NotifyResolutionRequest { |
20 required int32 width = 1; | 20 required int32 width = 1; |
21 required int32 height = 2; | 21 required int32 height = 2; |
22 }; | 22 }; |
23 | |
24 // Represents a message being sent on the control channel. | |
25 message ControlMessage { | |
26 optional SuggestResolutionRequest suggest_resolution = 1; | |
27 optional NotifyResolutionRequest notify_resolution = 2; | |
28 } | |
OLD | NEW |