Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: remoting/base/protocol/chromotocol.proto

Issue 2963003: Changing UpdateStreamPacket protobuf definition for chromoting (Closed)
Patch Set: fixed comments Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | remoting/base/protocol_decoder_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Protocol for communication between chromoting client and host. 5 // Protocol for communication between chromoting client and host.
6 6
7 syntax = "proto2"; 7 syntax = "proto2";
8 8
9 option optimize_for = LITE_RUNTIME; 9 option optimize_for = LITE_RUNTIME;
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 PixelFormatRgb565 = 2; 44 PixelFormatRgb565 = 2;
45 PixelFormatRgb24 = 3; 45 PixelFormatRgb24 = 3;
46 PixelFormatRgb32 = 4; 46 PixelFormatRgb32 = 4;
47 PixelFormatRgba = 5; 47 PixelFormatRgba = 5;
48 PixelFormatYv12 = 6; 48 PixelFormatYv12 = 6;
49 PixelFormatYv16 = 7; 49 PixelFormatYv16 = 7;
50 PixelFormatEmpty = 8; 50 PixelFormatEmpty = 8;
51 PixelFormatAscii = 9; 51 PixelFormatAscii = 9;
52 } 52 }
53 53
54 // A message with info about the update stream. 54 // A message that denotes the beginning of an updating rectangle in an update
55 // stream packet.
55 // NEXT ID: 6 56 // NEXT ID: 6
56 message UpdateStreamPacketHeader { 57 message UpdateStreamBeginRect {
57 // X,Y coordinates (in screen pixels) for origin of this update. 58 // X,Y coordinates (in screen pixels) for origin of this update.
58 required int32 x = 1; 59 required int32 x = 1;
59 required int32 y = 2; 60 required int32 y = 2;
60 61
61 // Width, height (in screen pixels) for this update. 62 // Width, height (in screen pixels) for this update.
62 required int32 width = 3; 63 required int32 width = 3;
63 required int32 height = 4; 64 required int32 height = 4;
64 65
65 // The encoding used for this image update. 66 // The encoding used for this image update.
66 optional UpdateStreamEncoding encoding = 5 [default=EncodingNone]; 67 optional UpdateStreamEncoding encoding = 5 [default=EncodingNone];
67 68
68 // The pixel format of this image. 69 // The pixel format of this image.
69 optional PixelFormat pixel_format = 6 [default=PixelFormatRgb24]; 70 optional PixelFormat pixel_format = 6 [default=PixelFormatRgb24];
70 } 71 }
71 72
73 // A message that contains partial data for updating an rectangle in an
74 // update stream packet.
75 // NEXT ID: 3
76 message UpdateStreamRectData {
77 // The sequence number of the partial data for updating a rectangle.
78 optional int32 sequence_number = 1 [default=0];
79
80 // The partial data for updating a rectangle.
81 required bytes data = 2;
82 }
83
84 // A message that denotes the end of an updating rectangle.
85 // NEXT ID: 1
86 message UpdateStreamEndRect {
87 }
88
72 // A message to denote a partial update stream. 89 // A message to denote a partial update stream.
73 // NEXT ID: 3 90 // NEXT ID: 4
74 message UpdateStreamPacketMessage { 91 message UpdateStreamPacketMessage {
75 // TODO(garykac): Make this required and fix unit tests. 92 optional UpdateStreamBeginRect begin_rect = 1;
76 optional UpdateStreamPacketHeader header = 2; 93 optional UpdateStreamRectData rect_data = 2;
77 optional bytes data = 1; 94 optional UpdateStreamEndRect end_rect = 3;
78 } 95 }
79 96
80 // Defines the message that is sent from the host to the client. 97 // Defines the message that is sent from the host to the client.
81 // Only one of these messages should be present. 98 // Only one of these messages should be present.
82 // NEXT ID: 5 99 // NEXT ID: 5
83 message HostMessage { 100 message HostMessage {
84 optional InitClientMessage init_client= 1; 101 optional InitClientMessage init_client= 1;
85 optional BeginUpdateStreamMessage begin_update_stream = 2; 102 optional BeginUpdateStreamMessage begin_update_stream = 2;
86 optional EndUpdateStreamMessage end_update_stream = 3; 103 optional EndUpdateStreamMessage end_update_stream = 3;
87 optional UpdateStreamPacketMessage update_stream_packet = 4; 104 optional UpdateStreamPacketMessage update_stream_packet = 4;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // Only one of these messages should be present. 161 // Only one of these messages should be present.
145 // NEXT ID: 7 162 // NEXT ID: 7
146 message ClientMessage { 163 message ClientMessage {
147 optional KeyEvent key_event = 1; 164 optional KeyEvent key_event = 1;
148 optional MouseSetPositionEvent mouse_set_position_event = 2; 165 optional MouseSetPositionEvent mouse_set_position_event = 2;
149 optional MouseMoveEvent mouse_move_event = 3; 166 optional MouseMoveEvent mouse_move_event = 3;
150 optional MouseWheelEvent mouse_wheel_event = 4; 167 optional MouseWheelEvent mouse_wheel_event = 4;
151 optional MouseDownEvent mouse_down_event = 5; 168 optional MouseDownEvent mouse_down_event = 5;
152 optional MouseUpEvent mouse_up_event = 6; 169 optional MouseUpEvent mouse_up_event = 6;
153 } 170 }
OLDNEW
« no previous file with comments | « no previous file | remoting/base/protocol_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698