NaCl: Update revision in DEPS, r12927 -> r12935
[chromium-blink-merge.git] / remoting / proto / control.proto
blob2d2baf620b9b0892759dd2633da25f29f47c09a5
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
3 // found in the LICENSE file.
4 //
5 // Protocol for control messages.
7 syntax = "proto2";
9 option optimize_for = LITE_RUNTIME;
11 package remoting.protocol;
13 message ClientResolution {
14   // Legacy width and height of the client in Density-Independent Pixels
15   optional int32 dips_width = 1;
16   optional int32 dips_height = 2;
18   // Width and height of the client in device pixels.
19   optional int32 width = 3;
20   optional int32 height = 4;
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;
28 message VideoControl {
29   // Enables the video channel if true, pauses if false.
30   optional bool enable = 1;
33 message AudioControl {
34   // Enables the audio channel if true, pauses if false.
35   optional bool enable = 1;
38 message CursorShapeInfo {
39   // Width, height (in screen pixels) of the cursor.
40   optional int32 width = 1;
41   optional int32 height = 2;
43   // X,Y coordinates (relative to upper-left corner) of the cursor hotspot.
44   optional int32 hotspot_x = 3;
45   optional int32 hotspot_y = 4;
47   // Cursor pixmap data in 32-bit BGRA format.
48   optional bytes data = 5;
51 message Capabilities {
52   // List of capabilities supported by the sender (case sensitive, capabilities
53   // are separated by spaces).
54   optional string capabilities = 1;
57 message PairingRequest {
58   // Human-readable name of the client.
59   optional string client_name = 1;
62 message PairingResponse {
63   // Unique identifier for this client.
64   optional string client_id = 1;
66   // Shared secret for this client.
67   optional string shared_secret = 2;
70 message ExtensionMessage {
71   // The message type. This is used to dispatch the message to the correct
72   // recipient.
73   optional string type = 1;
75   // String-encoded message data. The client and host must agree on the encoding
76   // for each message type; different message types need not shared the same
77   // encoding.
78   optional string data = 2;