Index: mojo/services/public/interfaces/input_events/input_event_constants.mojom |
diff --git a/mojo/services/public/interfaces/input_events/input_events.mojom b/mojo/services/public/interfaces/input_events/input_event_constants.mojom |
similarity index 59% |
copy from mojo/services/public/interfaces/input_events/input_events.mojom |
copy to mojo/services/public/interfaces/input_events/input_event_constants.mojom |
index ce7df849185634e0a919d0b67172ed1aaaad0bbc..0de69aa9e8aea3a496e348518d36b26bed75243a 100644 |
--- a/mojo/services/public/interfaces/input_events/input_events.mojom |
+++ b/mojo/services/public/interfaces/input_events/input_event_constants.mojom |
@@ -2,24 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-import "mojo/services/public/interfaces/geometry/geometry.mojom" |
- |
module mojo { |
-struct KeyData { |
- int32 key_code; |
- bool is_char; |
-}; |
- |
-struct TouchData { |
- int32 pointer_id; |
-}; |
- |
-struct MouseWheelData { |
- int32 x_offset; |
- int32 y_offset; |
-}; |
- |
// This mirrors ui::EventType |
enum EventType { |
UNKNOWN , |
@@ -69,29 +53,27 @@ enum EventType { |
// This mirrors ui::EventFlags |
// TODO(morrita): Use shift operator once it is available. |
enum EventFlags { |
- NONE = 0, |
- CAPS_LOCK_DOWN = 1, |
- SHIFT_DOWN = 2, |
- CONTROL_DOWN = 4, |
- ALT_DOWN = 8, |
- LEFT_MOUSE_BUTTON = 16, |
- MIDDLE_MOUSE_BUTTON = 32, |
- RIGHT_MOUSE_BUTTON = 64, |
- COMMAND_DOWN = 128, |
- EXTENDED = 256, |
- IS_SYNTHESIZED = 512, |
- ALTGR_DOWN = 1024, |
- MOD3_DOWN = 2048 |
+ NONE = 0, |
+ CAPS_LOCK_DOWN = 1, |
+ SHIFT_DOWN = 2, |
+ CONTROL_DOWN = 4, |
+ ALT_DOWN = 8, |
+ LEFT_MOUSE_BUTTON = 16, |
+ MIDDLE_MOUSE_BUTTON = 32, |
+ RIGHT_MOUSE_BUTTON = 64, |
+ COMMAND_DOWN = 128, |
+ EXTENDED = 256, |
+ IS_SYNTHESIZED = 512, |
+ ALTGR_DOWN = 1024, |
+ MOD3_DOWN = 2048 |
}; |
-struct Event { |
- EventType action; |
- EventFlags flags; |
- int64 time_stamp; |
- Point location; |
- KeyData key_data; |
- TouchData touch_data; |
- MouseWheelData wheel_data; |
+enum MouseEventFlags { |
+ IS_DOUBLE_CLICK = 65536, |
+ IS_TRIPLE_CLICK = 131072, |
+ IS_NON_CLIENT = 262144, |
+ |
+ // TODO(erg): Move accessibility flags and maybe synthetic touch events here. |
}; |
-} |
+} // module mojo |