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

Side by Side Diff: ui/mojo/events/input_event_constants.mojom

Issue 1313353010: Overhaul Mandoline event transport code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 unified diff | Download patch
OLDNEW
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 module mojo; 5 module mojo;
6 6
7 enum EventType { 7 enum EventType {
8 UNKNOWN, 8 UNKNOWN,
9 KEY_PRESSED, 9 KEY_PRESSED,
10 KEY_RELEASED, 10 KEY_RELEASED,
(...skipping 23 matching lines...) Expand all
34 34
35 enum MouseEventFlags { 35 enum MouseEventFlags {
36 IS_DOUBLE_CLICK = 65536, 36 IS_DOUBLE_CLICK = 65536,
37 IS_TRIPLE_CLICK = 131072, 37 IS_TRIPLE_CLICK = 131072,
38 IS_NON_CLIENT = 262144, 38 IS_NON_CLIENT = 262144,
39 39
40 // TODO(erg): Move accessibility flags and maybe synthetic touch events here. 40 // TODO(erg): Move accessibility flags and maybe synthetic touch events here.
41 }; 41 };
42 42
43 enum PointerKind { 43 enum PointerKind {
44 UNKNOWN,
45 MOUSE,
46 PEN,
44 TOUCH, 47 TOUCH,
45 MOUSE, 48 WHEEL,
sadrul 2015/09/09 04:19:04 Do we need 'wheel' as a separate kind? e.g. both m
rjkroege 2015/09/09 19:45:38 Based on http://www.w3.org/TR/pointerevents/#point
sadrul 2015/09/10 17:39:15 I am not sure. I feel like the event-type should b
rjkroege 2015/09/12 01:29:02 I agree. In Web spec land, Pointer encompasses tou
46 }; 49 };
50
51 enum WheelMode {
52 PIXEL,
53 LINE,
54 PAGE,
55 SCALING,
56 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698