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

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

Issue 1120813002: Remove EF_FUNCTION_KEY and EF_NUMPAD_KEY. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review comments (wez@) Created 5 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
« no previous file with comments | « ui/events/blink/blink_event_util.cc ('k') | ui/events/keycodes/dom4/keycode_converter.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 // 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // doc) 93 // doc)
94 EF_IS_SYNTHESIZED = 1 << 9, 94 EF_IS_SYNTHESIZED = 1 << 9,
95 EF_ALTGR_DOWN = 1 << 10, 95 EF_ALTGR_DOWN = 1 << 10,
96 EF_MOD3_DOWN = 1 << 11, 96 EF_MOD3_DOWN = 1 << 11,
97 EF_BACK_MOUSE_BUTTON = 1 << 12, 97 EF_BACK_MOUSE_BUTTON = 1 << 12,
98 EF_FORWARD_MOUSE_BUTTON = 1 << 13, 98 EF_FORWARD_MOUSE_BUTTON = 1 << 13,
99 }; 99 };
100 100
101 // Flags specific to key events 101 // Flags specific to key events
102 enum KeyEventFlags { 102 enum KeyEventFlags {
103 EF_NUMPAD_KEY = 1 << 16, // Key originates from number pad (Xkb only) 103 EF_IME_FABRICATED_KEY = 1 << 16, // Key event fabricated by the underlying
104 EF_IME_FABRICATED_KEY = 1 << 17, // Key event fabricated by the underlying
105 // IME without a user action. 104 // IME without a user action.
106 // (Linux X11 only) 105 // (Linux X11 only)
107 EF_IS_REPEAT = 1 << 18, 106 EF_IS_REPEAT = 1 << 17,
108 EF_FUNCTION_KEY = 1 << 19, // Key originates from function key row 107 EF_FINAL = 1 << 18, // Do not remap; the event was created with
109 EF_FINAL = 1 << 20, // Do not remap; the event was created with
110 // the desired final values. 108 // the desired final values.
111 }; 109 };
112 110
113 // Flags specific to mouse events 111 // Flags specific to mouse events
114 enum MouseEventFlags { 112 enum MouseEventFlags {
115 EF_IS_DOUBLE_CLICK = 1 << 16, 113 EF_IS_DOUBLE_CLICK = 1 << 16,
116 EF_IS_TRIPLE_CLICK = 1 << 17, 114 EF_IS_TRIPLE_CLICK = 1 << 17,
117 EF_IS_NON_CLIENT = 1 << 18, 115 EF_IS_NON_CLIENT = 1 << 18,
118 EF_FROM_TOUCH = 1 << 19, // Indicates this mouse event is generated 116 EF_FROM_TOUCH = 1 << 19, // Indicates this mouse event is generated
119 // from an unconsumed touch/gesture event. 117 // from an unconsumed touch/gesture event.
(...skipping 26 matching lines...) Expand all
146 }; 144 };
147 145
148 // Device ID for Touch and Key Events. 146 // Device ID for Touch and Key Events.
149 enum EventDeviceId { 147 enum EventDeviceId {
150 ED_UNKNOWN_DEVICE = -1 148 ED_UNKNOWN_DEVICE = -1
151 }; 149 };
152 150
153 } // namespace ui 151 } // namespace ui
154 152
155 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ 153 #endif // UI_EVENTS_EVENT_CONSTANTS_H_
OLDNEW
« no previous file with comments | « ui/events/blink/blink_event_util.cc ('k') | ui/events/keycodes/dom4/keycode_converter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698