| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 [DartPackage="mojo_services"] | 5 [DartPackage="mojo_services"] |
| 6 module mojo; | 6 module mojo; |
| 7 | 7 |
| 8 enum EventType { | 8 enum EventType { |
| 9 UNKNOWN, | 9 UNKNOWN, |
| 10 KEY_PRESSED, | 10 KEY_PRESSED, |
| 11 KEY_RELEASED, | 11 KEY_RELEASED, |
| 12 POINTER_CANCEL, | 12 POINTER_CANCEL, |
| 13 POINTER_DOWN, | 13 POINTER_DOWN, |
| 14 POINTER_MOVE, | 14 POINTER_MOVE, |
| 15 POINTER_UP, | 15 POINTER_UP, |
| 16 }; | 16 }; |
| 17 | 17 |
| 18 // This mirrors ui::EventFlags | 18 // This mirrors ui::EventFlags |
| 19 // TODO(morrita): Use shift operator once it is available. | 19 // TODO(morrita): Use shift operator once it is available. |
| 20 enum EventFlags { | 20 enum EventFlags { |
| 21 NONE = 0, | 21 NONE = 0, |
| 22 CAPS_LOCK_DOWN = 1, | 22 CAPS_LOCK_DOWN = 1, |
| 23 SHIFT_DOWN = 2, | 23 SHIFT_DOWN = 2, |
| 24 CONTROL_DOWN = 4, | 24 CONTROL_DOWN = 4, |
| 25 ALT_DOWN = 8, | 25 ALT_DOWN = 8, |
| 26 LEFT_MOUSE_BUTTON = 16, | 26 LEFT_MOUSE_BUTTON = 16, |
| 27 MIDDLE_MOUSE_BUTTON = 32, | 27 MIDDLE_MOUSE_BUTTON = 32, |
| 28 RIGHT_MOUSE_BUTTON = 64, | 28 RIGHT_MOUSE_BUTTON = 64, |
| 29 COMMAND_DOWN = 128, | 29 COMMAND_DOWN = 128, |
| 30 EXTENDED = 256, | 30 EXTENDED = 256, |
| 31 IS_SYNTHESIZED = 512, | 31 IS_SYNTHESIZED = 512, |
| 32 ALTGR_DOWN = 1024, | 32 ALTGR_DOWN = 1024, |
| 33 MOD3_DOWN = 2048 | 33 MOD3_DOWN = 2048, |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 enum MouseEventFlags { | 36 enum MouseEventFlags { |
| 37 IS_DOUBLE_CLICK = 65536, | 37 IS_DOUBLE_CLICK = 65536, |
| 38 IS_TRIPLE_CLICK = 131072, | 38 IS_TRIPLE_CLICK = 131072, |
| 39 IS_NON_CLIENT = 262144, | 39 IS_NON_CLIENT = 262144, |
| 40 | 40 |
| 41 // TODO(erg): Move accessibility flags and maybe synthetic touch events here. | 41 // TODO(erg): Move accessibility flags and maybe synthetic touch events here. |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 enum PointerKind { | 44 enum PointerKind { |
| 45 TOUCH, | 45 TOUCH, |
| 46 MOUSE, | 46 MOUSE, |
| 47 }; | 47 }; |
| OLD | NEW |