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 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 22 matching lines...) Expand all Loading... |
33 optional int32 y = 2; | 33 optional int32 y = 2; |
34 | 34 |
35 // Mouse wheel information. | 35 // Mouse wheel information. |
36 optional int32 wheel_offset_x = 3; | 36 optional int32 wheel_offset_x = 3; |
37 optional int32 wheel_offset_y = 4; | 37 optional int32 wheel_offset_y = 4; |
38 | 38 |
39 // Mouse button event. | 39 // Mouse button event. |
40 optional MouseButton button = 5; | 40 optional MouseButton button = 5; |
41 optional bool button_down = 6; | 41 optional bool button_down = 6; |
42 } | 42 } |
43 | |
44 // Defines an event message on the event channel. | |
45 message Event { | |
46 required int32 timestamp = 1; // Client timestamp for event | |
47 optional bool dummy = 2; // Is this a dummy event? | |
48 | |
49 optional KeyEvent key = 3; | |
50 optional MouseEvent mouse = 4; | |
51 } | |
52 | |
53 // Message sent in the event channel. | |
54 message EventMessage { | |
55 repeated Event event = 1; | |
56 } | |
OLD | NEW |