Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1179)

Unified Diff: components/mus/public/interfaces/input_event_constants.mojom

Issue 1559163002: Clean up event flags a bit: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comment Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/mus/public/cpp/lib/event_matcher.cc ('k') | components/mus/ws/event_dispatcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/interfaces/input_event_constants.mojom
diff --git a/components/mus/public/interfaces/input_event_constants.mojom b/components/mus/public/interfaces/input_event_constants.mojom
index 900fc241d4beba91a5f95f6c88b99b63dabf47ea..1cf3c693d23f11eaf446eaa87d3467ef1787ec5b 100644
--- a/components/mus/public/interfaces/input_event_constants.mojom
+++ b/components/mus/public/interfaces/input_event_constants.mojom
@@ -19,28 +19,27 @@ enum EventType {
// TODO(morrita): Use shift operator once it is available.
enum EventFlags {
NONE = 0,
- CAPS_LOCK_DOWN = 1,
+ IS_SYNTHESIZED = 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,
- BACK_MOUSE_BUTTON = 4096,
- FORWARD_MOUSE_BUTTON = 8192,
- NUM_LOCK_DOWN = 16384,
- SCROLL_LOCK_DOWN = 32768,
+ COMMAND_DOWN = 16,
+ ALTGR_DOWN = 32,
+ MOD3_DOWN = 64,
+ NUM_LOCK_ON = 128,
+ CAPS_LOCK_ON = 256,
+ SCROLL_LOCK_ON = 512,
+ LEFT_MOUSE_BUTTON = 1024,
+ MIDDLE_MOUSE_BUTTON = 2048,
+ RIGHT_MOUSE_BUTTON = 4096,
+ BACK_MOUSE_BUTTON = 8192,
+ FORWARD_MOUSE_BUTTON = 16384,
};
enum MouseEventFlags {
- IS_DOUBLE_CLICK = 65536,
- IS_TRIPLE_CLICK = 131072,
- IS_NON_CLIENT = 262144,
+ IS_DOUBLE_CLICK = 32768,
+ IS_TRIPLE_CLICK = 65536,
+ IS_NON_CLIENT = 131072,
// TODO(erg): Move accessibility flags and maybe synthetic touch events here.
};
« no previous file with comments | « components/mus/public/cpp/lib/event_matcher.cc ('k') | components/mus/ws/event_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698