Don't relaunch app for non-auth errors.
[chromium-blink-merge.git] / remoting / proto / control.proto
blobc24343ad6f2e9ae984e72970529f50d895e6d88b
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;
32   // Controls whether lossless encode and color translation are requested.
33   optional bool lossless_encode = 2;
34   optional bool lossless_color = 3;
37 message AudioControl {
38   // Enables the audio channel if true, pauses if false.
39   optional bool enable = 1;
42 message CursorShapeInfo {
43   // Width, height (in screen pixels) of the cursor.
44   optional int32 width = 1;
45   optional int32 height = 2;
47   // X,Y coordinates (relative to upper-left corner) of the cursor hotspot.
48   optional int32 hotspot_x = 3;
49   optional int32 hotspot_y = 4;
51   // Cursor pixmap data in 32-bit BGRA format.
52   optional bytes data = 5;
55 message Capabilities {
56   // List of capabilities supported by the sender (case sensitive, capabilities
57   // are separated by spaces).
58   optional string capabilities = 1;
61 message PairingRequest {
62   // Human-readable name of the client.
63   optional string client_name = 1;
66 message PairingResponse {
67   // Unique identifier for this client.
68   optional string client_id = 1;
70   // Shared secret for this client.
71   optional string shared_secret = 2;
74 message ExtensionMessage {
75   // The message type. This is used to dispatch the message to the correct
76   // recipient.
77   optional string type = 1;
79   // String-encoded message data. The client and host must agree on the encoding
80   // for each message type; different message types need not shared the same
81   // encoding.
82   optional string data = 2;