| 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 16 matching lines...) Expand all Loading... |
| 27 // A message to denote the end of an update stream. | 27 // A message to denote the end of an update stream. |
| 28 // NEXT ID: 1 | 28 // NEXT ID: 1 |
| 29 message EndUpdateStreamMessage { | 29 message EndUpdateStreamMessage { |
| 30 } | 30 } |
| 31 | 31 |
| 32 // Identifies how the image was encoded. | 32 // Identifies how the image was encoded. |
| 33 enum UpdateStreamEncoding { | 33 enum UpdateStreamEncoding { |
| 34 EncodingInvalid = -1; | 34 EncodingInvalid = -1; |
| 35 EncodingNone = 0; | 35 EncodingNone = 0; |
| 36 EncodingZlib = 1; | 36 EncodingZlib = 1; |
| 37 EncodingVp8 = 2; |
| 37 } | 38 } |
| 38 | 39 |
| 39 // Identifies the pixel format. | 40 // Identifies the pixel format. |
| 40 // Note that this list should match exactly the same as | 41 // Note that this list should match exactly the same as |
| 41 // media::VideoFrame::Format in media/base/video_frame.h. | 42 // media::VideoFrame::Format in media/base/video_frame.h. |
| 42 enum PixelFormat { | 43 enum PixelFormat { |
| 43 PixelFormatInvalid = 0; | 44 PixelFormatInvalid = 0; |
| 44 PixelFormatRgb555 = 1; | 45 PixelFormatRgb555 = 1; |
| 45 PixelFormatRgb565 = 2; | 46 PixelFormatRgb565 = 2; |
| 46 PixelFormatRgb24 = 3; | 47 PixelFormatRgb24 = 3; |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 // Only one of the optional messages should be present. | 167 // Only one of the optional messages should be present. |
| 167 // NEXT ID: 7 | 168 // NEXT ID: 7 |
| 168 message ChromotingClientMessage { | 169 message ChromotingClientMessage { |
| 169 optional KeyEvent key_event = 1; | 170 optional KeyEvent key_event = 1; |
| 170 optional MouseSetPositionEvent mouse_set_position_event = 2; | 171 optional MouseSetPositionEvent mouse_set_position_event = 2; |
| 171 optional MouseMoveEvent mouse_move_event = 3; | 172 optional MouseMoveEvent mouse_move_event = 3; |
| 172 optional MouseWheelEvent mouse_wheel_event = 4; | 173 optional MouseWheelEvent mouse_wheel_event = 4; |
| 173 optional MouseDownEvent mouse_down_event = 5; | 174 optional MouseDownEvent mouse_down_event = 5; |
| 174 optional MouseUpEvent mouse_up_event = 6; | 175 optional MouseUpEvent mouse_up_event = 6; |
| 175 } | 176 } |
| OLD | NEW |