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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
64 // NEXT ID: 2 | 64 // NEXT ID: 2 |
65 message MouseUpEvent { | 65 message MouseUpEvent { |
66 required MouseButton button = 1; | 66 required MouseButton button = 1; |
67 } | 67 } |
68 | 68 |
69 // Defines a mouse event message on the event channel. | 69 // Defines a mouse event message on the event channel. |
70 message MouseEvent { | 70 message MouseEvent { |
71 // Mouse position information. | 71 // Mouse position information. |
72 optional int32 mouse_x = 1; | 72 optional int32 mouse_x = 1; |
73 optional int32 mouse_y = 2; | 73 optional int32 mouse_y = 2; |
74 optional int32 mouse_width = 3; | |
Sergey Ulanov
2010/11/10 20:14:21
What is mouse width/height?
Alpha Left Google
2010/11/12 20:08:01
This is removed in the latest patch.
| |
75 optional int32 mouse_height = 4; | |
74 | 76 |
75 // Mouse wheel information. | 77 // Mouse wheel information. |
76 optional int32 wheel_offset_x = 3; | 78 optional int32 wheel_offset_x = 5; |
77 optional int32 wheel_offset_y = 4; | 79 optional int32 wheel_offset_y = 6; |
78 | 80 |
79 // Mouse button information. | 81 // Mouse button information. |
80 optional MouseButton button = 5; | 82 optional MouseButton button = 7; |
81 optional bool button_down = 6; | 83 optional bool button_down = 8; |
82 } | 84 } |
83 | 85 |
84 // Defines an event message on the event channel. | 86 // Defines an event message on the event channel. |
85 message Event { | 87 message Event { |
86 required int32 timestamp = 1; // Client timestamp for event | 88 required int32 timestamp = 1; // Client timestamp for event |
87 optional bool dummy = 2; // Is this a dummy event? | 89 optional bool dummy = 2; // Is this a dummy event? |
88 | 90 |
89 optional KeyEvent key = 3; | 91 optional KeyEvent key = 3; |
90 optional MouseEvent mouse = 4; | 92 optional MouseEvent mouse = 4; |
91 } | 93 } |
92 | 94 |
93 // Message sent in the event channel. | 95 // Message sent in the event channel. |
94 message EventMessage { | 96 message EventMessage { |
95 repeated Event event = 1; | 97 repeated Event event = 1; |
96 } | 98 } |
OLD | NEW |