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 24 matching lines...) Expand all Loading... | |
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 | 43 |
44 // Defines an event message on the event channel. | 44 // Defines an event message on the event channel. |
45 message Event { | 45 message EventMessage { |
awong
2011/01/20 20:06:38
Nit, I would just called his "event" or better "In
Sergey Ulanov
2011/01/20 21:55:57
I think it is better to call it EventMessage for c
| |
46 required int32 timestamp = 1; // Client timestamp for event | 46 required int32 timestamp = 1; // Client timestamp for event |
47 optional bool dummy = 2; // Is this a dummy event? | 47 optional bool dummy = 2; // Is this a dummy event? |
48 | 48 |
49 optional KeyEvent key = 3; | 49 optional KeyEvent key = 3; |
50 optional MouseEvent mouse = 4; | 50 optional MouseEvent mouse = 4; |
51 } | 51 } |
52 | |
53 // Message sent in the event channel. | |
54 message EventMessage { | |
55 repeated Event event = 1; | |
56 } | |
OLD | NEW |