summaryrefslogtreecommitdiffstats
path: root/remoting/proto
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-19 21:20:01 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-19 21:20:01 +0000
commit94b2c17468b276f873a74293459553cf9bf019a4 (patch)
tree26914f93770697043704c85a159c89662b825c64 /remoting/proto
parent0d7dad6df2d9d6d9676ca7adb02e3c92beaa8a79 (diff)
downloadchromium_src-94b2c17468b276f873a74293459553cf9bf019a4.zip
chromium_src-94b2c17468b276f873a74293459553cf9bf019a4.tar.gz
chromium_src-94b2c17468b276f873a74293459553cf9bf019a4.tar.bz2
HostMessageDispatcher to dispatch messages received on a chromoting connection
Adding HostMessageDispatcher to be used by ChromotingHost. BUG=None TEST=None Review URL: http://codereview.chromium.org/3852002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63111 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/proto')
-rw-r--r--remoting/proto/control.proto22
-rw-r--r--remoting/proto/event.proto36
-rw-r--r--remoting/proto/internal.proto1
3 files changed, 57 insertions, 2 deletions
diff --git a/remoting/proto/control.proto b/remoting/proto/control.proto
index df0787c..299d8cc 100644
--- a/remoting/proto/control.proto
+++ b/remoting/proto/control.proto
@@ -10,4 +10,24 @@ option optimize_for = LITE_RUNTIME;
package remoting;
-// TODO(hclam): Define control messages. \ No newline at end of file
+message SuggestScreenResolutionRequest {
+ required int32 width = 1;
+ required int32 height = 2;
+};
+
+// Represents a control message that sent from the client to the host.
+// This message is transmitted on the control channel.
+message ClientControlMessage {
+ optional SuggestScreenResolutionRequest suggestScreenResolutionRequest = 1;
+}
+
+message SetScreenResolutionRequest {
+ required int32 width = 1;
+ required int32 height = 2;
+};
+
+// Represents a control message that sent from host to the client.
+// This message is transmitted on the control channel.
+message HostControlMessage {
+ optional SetScreenResolutionRequest setScreenResolutionRequest = 1;
+}
diff --git a/remoting/proto/event.proto b/remoting/proto/event.proto
index b961335..96c8fce 100644
--- a/remoting/proto/event.proto
+++ b/remoting/proto/event.proto
@@ -200,3 +200,39 @@ message MouseDownEvent {
message MouseUpEvent {
required MouseButton button = 1;
}
+
+// Defines a mouse event message on the event channel.
+message MouseEvent {
+ // Mouse position information.
+ optional int32 mouse_x = 1;
+ optional int32 mouse_y = 2;
+
+ // Mouse wheel information.
+ optional int32 wheel_offset_x = 3;
+ optional int32 wheel_offset_y = 4;
+
+ // Mouse button information.
+ optional MouseButton button = 5;
+ optional bool button_down = 6;
+}
+
+// Defines an event message on the event channel.
+message Event {
+ required int32 timestamp = 1; // Client timestamp for event
+ optional bool dummy = 2; // Is this a dummy event?
+
+ optional KeyEvent key = 3;
+ optional MouseEvent mouse = 4;
+}
+
+// Defines the message that is sent from client to host.
+// Only one of the optional messages should be present.
+message ClientEventMessage {
+ repeated Event events = 1;
+}
+
+// Defines the message that is sent from host to client.
+// Only one of the optional messages should be present.
+message HostEventMessage {
+ // TODO(hclam): Define the message.
+}
diff --git a/remoting/proto/internal.proto b/remoting/proto/internal.proto
index b98b696..2e74501 100644
--- a/remoting/proto/internal.proto
+++ b/remoting/proto/internal.proto
@@ -21,7 +21,6 @@ message ChromotingHostMessage {
optional BeginUpdateStreamMessage begin_update_stream = 2;
optional EndUpdateStreamMessage end_update_stream = 3;
optional UpdateStreamPacketMessage update_stream_packet = 4;
-
optional RectangleUpdatePacket rectangle_update = 5;
}