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

Side by Side Diff: sky/engine/platform/PlatformEvent.h

Issue 874823002: Move GestureEvent to NewEventDispatcher (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Build fixes Created 5 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 unified diff | Download patch
« no previous file with comments | « sky/engine/platform/BUILD.gn ('k') | sky/engine/platform/PlatformGestureEvent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 29 matching lines...) Expand all
40 Char, 40 Char,
41 41
42 // PlatformMouseEvent 42 // PlatformMouseEvent
43 MouseMoved, 43 MouseMoved,
44 MousePressed, 44 MousePressed,
45 MouseReleased, 45 MouseReleased,
46 MouseScroll, 46 MouseScroll,
47 47
48 // PlatformWheelEvent 48 // PlatformWheelEvent
49 Wheel, 49 Wheel,
50
51 // PlatformGestureEvent
52 GestureScrollBegin,
53 GestureScrollEnd,
54 GestureScrollUpdate,
55 GestureScrollUpdateWithoutPropagation,
56 GestureTap,
57 GestureTapUnconfirmed,
58 GestureTapDown,
59 GestureShowPress,
60 GestureTapDownCancel,
61 GestureTwoFingerTap,
62 GestureLongPress,
63 GestureLongTap,
64 GesturePinchBegin,
65 GesturePinchEnd,
66 GesturePinchUpdate,
67 GestureFlingStart,
68 }; 50 };
69 51
70 enum Modifiers { 52 enum Modifiers {
71 AltKey = 1 << 0, 53 AltKey = 1 << 0,
72 CtrlKey = 1 << 1, 54 CtrlKey = 1 << 1,
73 MetaKey = 1 << 2, 55 MetaKey = 1 << 2,
74 ShiftKey = 1 << 3, 56 ShiftKey = 1 << 3,
75 }; 57 };
76 58
77 Type type() const { return static_cast<Type>(m_type); } 59 Type type() const { return static_cast<Type>(m_type); }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 } 111 }
130 112
131 unsigned m_type; 113 unsigned m_type;
132 unsigned m_modifiers; 114 unsigned m_modifiers;
133 double m_timestamp; 115 double m_timestamp;
134 }; 116 };
135 117
136 } // namespace blink 118 } // namespace blink
137 119
138 #endif // SKY_ENGINE_PLATFORM_PLATFORMEVENT_H_ 120 #endif // SKY_ENGINE_PLATFORM_PLATFORMEVENT_H_
OLDNEW
« no previous file with comments | « sky/engine/platform/BUILD.gn ('k') | sky/engine/platform/PlatformGestureEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698