Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 event messages. | 5 // Protocol for event messages. |
| 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 30 matching lines...) Expand all Loading... | |
| 41 // These values encode the number of wheel 'ticks' (sometimes called | 41 // These values encode the number of wheel 'ticks' (sometimes called |
| 42 // 'clicks' although 'ticks' is the most common cross-platform term). | 42 // 'clicks' although 'ticks' is the most common cross-platform term). |
| 43 // Additional fields may be added later to support high-resolution devices. | 43 // Additional fields may be added later to support high-resolution devices. |
| 44 optional int32 wheel_offset_x = 3; | 44 optional int32 wheel_offset_x = 3; |
| 45 optional int32 wheel_offset_y = 4; | 45 optional int32 wheel_offset_y = 4; |
| 46 | 46 |
| 47 // Mouse button event. | 47 // Mouse button event. |
| 48 optional MouseButton button = 5; | 48 optional MouseButton button = 5; |
| 49 optional bool button_down = 6; | 49 optional bool button_down = 6; |
| 50 } | 50 } |
| 51 | |
| 52 // Defines an event that sends clipboard data between peers. | |
| 53 message ClipboardEvent { | |
| 54 | |
| 55 // The type of the data being sent. | |
| 56 enum DataType { | |
| 57 DATA_TYPE_TEXT_UTF8 = 0; | |
|
garykac
2012/03/09 00:51:19
Is the UTF8 suffix redundant or is the plan to sup
simonmorris
2012/03/09 00:53:24
OK - I agree that we only want UTF-8.
| |
| 58 } | |
| 59 required DataType dataType = 1; | |
| 60 | |
| 61 // The data being sent. | |
| 62 required bytes data = 2; | |
| 63 } | |
| OLD | NEW |