summaryrefslogtreecommitdiffstats
path: root/remoting/proto/internal.proto
blob: 2e74501bce2e7bbd75f0486bfcd540bae9cb7d9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Internal messages as a unit for transmission in the wire.

syntax = "proto2";

import "control.proto";
import "event.proto";

option optimize_for = LITE_RUNTIME;

package remoting;

// Defines the message that is sent from the host to the client.
// Only one of these messages should be present.
// NEXT ID: 5
message ChromotingHostMessage {
  optional InitClientMessage init_client= 1;
  optional BeginUpdateStreamMessage begin_update_stream = 2;
  optional EndUpdateStreamMessage end_update_stream = 3;
  optional UpdateStreamPacketMessage update_stream_packet = 4;
  optional RectangleUpdatePacket rectangle_update = 5;
}

// Defines the message that is sent from the client to the host.
// Only one of the optional messages should be present.
// NEXT ID: 7
message ChromotingClientMessage {
  optional KeyEvent key_event = 1;
  optional MouseSetPositionEvent mouse_set_position_event = 2;
  optional MouseMoveEvent mouse_move_event = 3;
  optional MouseWheelEvent mouse_wheel_event = 4;
  optional MouseDownEvent mouse_down_event = 5;
  optional MouseUpEvent mouse_up_event = 6;
}