Chromium Code Reviews| 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 // 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 message ClientDimensions { | 13 message ClientResolution { |
| 14 // Width and height of the client. | 14 // Legacy width and height of the client in Density-Independent Pixels |
| 15 optional int32 width = 1; | 15 optional int32 dips_width = 1; |
| 16 optional int32 height = 2; | 16 optional int32 dips_height = 2; |
|
Jamie
2013/02/11 23:25:58
I assume the names are only important for the acce
Wez
2013/02/12 01:55:28
The numbers identify the fields at the protocol le
| |
| 17 | |
| 18 // Width and height of the client in device pixels. | |
| 19 optional int32 width = 3; | |
| 20 optional int32 height = 4; | |
| 21 | |
| 22 // Horizontal and vertical DPI of the screen. If either of these is zero or | |
| 23 // unset, the corresponding DPI should be assumed to be 96 (Windows' default) | |
| 24 optional int32 x_dpi = 5; | |
| 25 optional int32 y_dpi = 6; | |
| 17 } | 26 } |
| 18 | 27 |
| 19 message VideoControl { | 28 message VideoControl { |
| 20 // Enables the video channel if true, pauses if false. | 29 // Enables the video channel if true, pauses if false. |
| 21 optional bool enable = 1; | 30 optional bool enable = 1; |
| 22 } | 31 } |
| 23 | 32 |
| 24 message AudioControl { | 33 message AudioControl { |
| 25 // Enables the audio channel if true, pauses if false. | 34 // Enables the audio channel if true, pauses if false. |
| 26 optional bool enable = 1; | 35 optional bool enable = 1; |
| 27 } | 36 } |
| 28 | 37 |
| 29 message CursorShapeInfo { | 38 message CursorShapeInfo { |
| 30 // Width, height (in screen pixels) of the cursor. | 39 // Width, height (in screen pixels) of the cursor. |
| 31 optional int32 width = 1; | 40 optional int32 width = 1; |
| 32 optional int32 height = 2; | 41 optional int32 height = 2; |
| 33 | 42 |
| 34 // X,Y coordinates (relative to upper-left corner) of the cursor hotspot. | 43 // X,Y coordinates (relative to upper-left corner) of the cursor hotspot. |
| 35 optional int32 hotspot_x = 3; | 44 optional int32 hotspot_x = 3; |
| 36 optional int32 hotspot_y = 4; | 45 optional int32 hotspot_y = 4; |
| 37 | 46 |
| 38 // Cursor pixmap data in 32-bit BGRA format. | 47 // Cursor pixmap data in 32-bit BGRA format. |
| 39 optional bytes data = 5; | 48 optional bytes data = 5; |
| 40 } | 49 } |
| OLD | NEW |