OLD | NEW |
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 29 matching lines...) Expand all Loading... |
40 // media::VideoFrame::Format in media/base/video_frame.h. | 40 // media::VideoFrame::Format in media/base/video_frame.h. |
41 enum PixelFormat { | 41 enum PixelFormat { |
42 PixelFormatInvalid = 0; | 42 PixelFormatInvalid = 0; |
43 PixelFormatRgb555 = 1; | 43 PixelFormatRgb555 = 1; |
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 PixelFormatNv12 = 8; |
51 PixelFormatAscii = 9; | 51 PixelFormatEmpty = 9; |
| 52 PixelFormatAscii = 10; |
52 } | 53 } |
53 | 54 |
54 // A message that denotes the beginning of an updating rectangle in an update | 55 // A message that denotes the beginning of an updating rectangle in an update |
55 // stream packet. | 56 // stream packet. |
56 // NEXT ID: 6 | 57 // NEXT ID: 6 |
57 message UpdateStreamBeginRect { | 58 message UpdateStreamBeginRect { |
58 // X,Y coordinates (in screen pixels) for origin of this update. | 59 // X,Y coordinates (in screen pixels) for origin of this update. |
59 required int32 x = 1; | 60 required int32 x = 1; |
60 required int32 y = 2; | 61 required int32 y = 2; |
61 | 62 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 // Only one of these messages should be present. | 162 // Only one of these messages should be present. |
162 // NEXT ID: 7 | 163 // NEXT ID: 7 |
163 message ClientMessage { | 164 message ClientMessage { |
164 optional KeyEvent key_event = 1; | 165 optional KeyEvent key_event = 1; |
165 optional MouseSetPositionEvent mouse_set_position_event = 2; | 166 optional MouseSetPositionEvent mouse_set_position_event = 2; |
166 optional MouseMoveEvent mouse_move_event = 3; | 167 optional MouseMoveEvent mouse_move_event = 3; |
167 optional MouseWheelEvent mouse_wheel_event = 4; | 168 optional MouseWheelEvent mouse_wheel_event = 4; |
168 optional MouseDownEvent mouse_down_event = 5; | 169 optional MouseDownEvent mouse_down_event = 5; |
169 optional MouseUpEvent mouse_up_event = 6; | 170 optional MouseUpEvent mouse_up_event = 6; |
170 } | 171 } |
OLD | NEW |