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

Side by Side Diff: ui/events/event_constants.h

Issue 1155013005: Refactoring the ownership of ui::InputMethod. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pls be green! Created 5 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef UI_EVENTS_EVENT_CONSTANTS_H_ 5 #ifndef UI_EVENTS_EVENT_CONSTANTS_H_
6 #define UI_EVENTS_EVENT_CONSTANTS_H_ 6 #define UI_EVENTS_EVENT_CONSTANTS_H_
7 7
8 namespace ui { 8 namespace ui {
9 9
10 // Event types. (prefixed because of a conflict with windows headers) 10 // Event types. (prefixed because of a conflict with windows headers)
11 enum EventType { 11 enum EventType {
12 ET_UNKNOWN = 0, 12 ET_UNKNOWN = 0,
13 ET_MOUSE_PRESSED, 13 ET_MOUSE_PRESSED,
14 ET_MOUSE_DRAGGED, 14 ET_MOUSE_DRAGGED,
15 ET_MOUSE_RELEASED, 15 ET_MOUSE_RELEASED,
16 ET_MOUSE_MOVED, 16 ET_MOUSE_MOVED,
17 ET_MOUSE_ENTERED, 17 ET_MOUSE_ENTERED,
18 ET_MOUSE_EXITED, 18 ET_MOUSE_EXITED,
19 ET_KEY_PRESSED, 19 ET_KEY_PRESSED,
20 ET_KEY_RELEASED, 20 ET_KEY_RELEASED,
21 ET_MOUSEWHEEL, 21 ET_MOUSEWHEEL,
22 ET_MOUSE_CAPTURE_CHANGED, // Event has no location. 22 ET_MOUSE_CAPTURE_CHANGED, // Event has no location.
23 ET_TOUCH_RELEASED, 23 ET_TOUCH_RELEASED,
24 ET_TOUCH_PRESSED, 24 ET_TOUCH_PRESSED,
25 ET_TOUCH_MOVED, 25 ET_TOUCH_MOVED,
26 ET_TOUCH_CANCELLED, 26 ET_TOUCH_CANCELLED,
27 ET_DROP_TARGET_EVENT, 27 ET_DROP_TARGET_EVENT,
28 ET_TRANSLATED_KEY_PRESS,
29 ET_TRANSLATED_KEY_RELEASE,
30 28
31 // GestureEvent types 29 // GestureEvent types
32 ET_GESTURE_SCROLL_BEGIN, 30 ET_GESTURE_SCROLL_BEGIN,
33 ET_GESTURE_TYPE_START = ET_GESTURE_SCROLL_BEGIN, 31 ET_GESTURE_TYPE_START = ET_GESTURE_SCROLL_BEGIN,
34 ET_GESTURE_SCROLL_END, 32 ET_GESTURE_SCROLL_END,
35 ET_GESTURE_SCROLL_UPDATE, 33 ET_GESTURE_SCROLL_UPDATE,
36 ET_GESTURE_TAP, 34 ET_GESTURE_TAP,
37 ET_GESTURE_TAP_DOWN, 35 ET_GESTURE_TAP_DOWN,
38 ET_GESTURE_TAP_CANCEL, 36 ET_GESTURE_TAP_CANCEL,
39 ET_GESTURE_TAP_UNCONFIRMED, // User tapped, but the tap delay hasn't expired. 37 ET_GESTURE_TAP_UNCONFIRMED, // User tapped, but the tap delay hasn't expired.
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 }; 142 };
145 143
146 // Device ID for Touch and Key Events. 144 // Device ID for Touch and Key Events.
147 enum EventDeviceId { 145 enum EventDeviceId {
148 ED_UNKNOWN_DEVICE = -1 146 ED_UNKNOWN_DEVICE = -1
149 }; 147 };
150 148
151 } // namespace ui 149 } // namespace ui
152 150
153 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ 151 #endif // UI_EVENTS_EVENT_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698