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 { | |
Wez
2012/03/14 20:40:56
I thought that we had agreed on TextClipboardEvent
simonmorris
2012/03/14 21:20:21
We may be able to use this message as it stands in
| |
54 | |
55 // The MIME type of the data being sent. | |
56 required string mime_type = 1; | |
Sergey Ulanov
2012/03/14 20:27:07
It's usually better to mark all fields in protobuf
simonmorris
2012/03/14 21:20:21
Done.
| |
57 | |
58 // The data being sent. | |
59 required bytes data = 2; | |
60 } | |
OLD | NEW |