• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
6
7syntax = "proto2";
8
9option optimize_for = LITE_RUNTIME;
10
11package remoting.protocol;
12
13message 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;
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;
26}
27
28message VideoControl {
29  // Enables the video channel if true, pauses if false.
30  optional bool enable = 1;
31}
32
33message AudioControl {
34  // Enables the audio channel if true, pauses if false.
35  optional bool enable = 1;
36}
37
38message CursorShapeInfo {
39  // Width, height (in screen pixels) of the cursor.
40  optional int32 width = 1;
41  optional int32 height = 2;
42
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;
46
47  // Cursor pixmap data in 32-bit BGRA format.
48  optional bytes data = 5;
49}
50
51message Capabilities {
52  // List of capabilities supported by the sender (case sensitive, capabilities
53  // are separated by spaces).
54  optional string capabilities = 1;
55}
56
57message PairingRequest {
58  // Human-readable name of the client.
59  optional string client_name = 1;
60}
61
62message PairingResponse {
63  // Unique identifier for this client.
64  optional string client_id = 1;
65
66  // Shared secret for this client.
67  optional string shared_secret = 2;
68}
69
70message ExtensionMessage {
71  // The message type. This is used to dispatch the message to the correct
72  // recipient.
73  optional string type = 1;
74
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;
79}