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

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

Issue 2872343003: Remove InputMethodEventHandler. (Closed)
Patch Set: Add a unittest. Created 3 years, 7 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
« ui/events/event.h ('K') | « ui/events/event.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 EF_RIGHT_MOUSE_BUTTON = 1 << 12, 114 EF_RIGHT_MOUSE_BUTTON = 1 << 12,
115 EF_BACK_MOUSE_BUTTON = 1 << 13, 115 EF_BACK_MOUSE_BUTTON = 1 << 13,
116 EF_FORWARD_MOUSE_BUTTON = 1 << 14, 116 EF_FORWARD_MOUSE_BUTTON = 1 << 14,
117 }; 117 };
118 118
119 // Flags specific to key events 119 // Flags specific to key events
120 enum KeyEventFlags { 120 enum KeyEventFlags {
121 EF_IME_FABRICATED_KEY = 1 << 15, // Key event fabricated by the underlying 121 EF_IME_FABRICATED_KEY = 1 << 15, // Key event fabricated by the underlying
122 // IME without a user action. 122 // IME without a user action.
123 // (Linux X11 only) 123 // (Linux X11 only)
124 EF_IS_REPEAT = 1 << 16, 124 EF_IS_REPEAT = 1 << 16,
125 EF_FINAL = 1 << 17, // Do not remap; the event was created with 125 EF_FINAL = 1 << 17, // Do not remap; the event was created with
126 // the desired final values. 126 // the desired final values.
127 EF_IS_EXTENDED_KEY = 1 << 18, // Windows extended key (see WM_KEYDOWN doc) 127 EF_IS_EXTENDED_KEY = 1 << 18, // Windows extended key (see WM_KEYDOWN doc)
128 }; 128 };
129 129
130 // Flags specific to mouse events 130 // Flags specific to mouse events
131 enum MouseEventFlags { 131 enum MouseEventFlags {
132 EF_IS_DOUBLE_CLICK = 1 << 15, 132 EF_IS_DOUBLE_CLICK = 1 << 15,
133 EF_IS_TRIPLE_CLICK = 1 << 16, 133 EF_IS_TRIPLE_CLICK = 1 << 16,
134 EF_IS_NON_CLIENT = 1 << 17, 134 EF_IS_NON_CLIENT = 1 << 17,
135 EF_FROM_TOUCH = 1 << 18, // Indicates this mouse event is generated 135 EF_FROM_TOUCH = 1 << 18, // Indicates this mouse event is generated
136 // from an unconsumed touch/gesture event. 136 // from an unconsumed touch/gesture event.
137 EF_TOUCH_ACCESSIBILITY = 1 << 19, // Indicates this event was generated from 137 EF_TOUCH_ACCESSIBILITY = 1 << 19, // Indicates this event was generated from
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // Device type for gesture events. 200 // Device type for gesture events.
201 enum class GestureDeviceType : int { 201 enum class GestureDeviceType : int {
202 DEVICE_UNKNOWN = 0, 202 DEVICE_UNKNOWN = 0,
203 DEVICE_TOUCHPAD, 203 DEVICE_TOUCHPAD,
204 DEVICE_TOUCHSCREEN, 204 DEVICE_TOUCHSCREEN,
205 }; 205 };
206 206
207 } // namespace ui 207 } // namespace ui
208 208
209 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ 209 #endif // UI_EVENTS_EVENT_CONSTANTS_H_
OLDNEW
« ui/events/event.h ('K') | « ui/events/event.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698