diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-18 20:09:50 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-18 20:09:50 +0000 |
commit | e976a17124ab2fc3df0947867ca1941e9245e627 (patch) | |
tree | df335eb26b1822d135964fe14a6ec6ef72692dd7 /remoting/proto/internal.proto | |
parent | 41dd4a311c4c683367201bfe876a2d6f220e5319 (diff) | |
download | chromium_src-e976a17124ab2fc3df0947867ca1941e9245e627.zip chromium_src-e976a17124ab2fc3df0947867ca1941e9245e627.tar.gz chromium_src-e976a17124ab2fc3df0947867ca1941e9245e627.tar.bz2 |
Move chromotocol.proto to remoting/protocol
Move the proto file and split it into multiple smaller proto files.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/3808002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62965 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/proto/internal.proto')
-rw-r--r-- | remoting/proto/internal.proto | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/remoting/proto/internal.proto b/remoting/proto/internal.proto new file mode 100644 index 0000000..b98b696 --- /dev/null +++ b/remoting/proto/internal.proto @@ -0,0 +1,38 @@ +// 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; +} |