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

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

Issue 308023002: Add EF_IS_REPEAT flag to KeyEvent to handle repeated accelerators correctly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use ui::EF_IS_REPEAT in test instead Created 6 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 | Annotate | Revision Log
« no previous file with comments | « ui/events/event.cc ('k') | ui/events/event_unittest.cc » ('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 EF_ALTGR_DOWN = 1 << 10, 93 EF_ALTGR_DOWN = 1 << 10,
94 EF_MOD3_DOWN = 1 << 11, 94 EF_MOD3_DOWN = 1 << 11,
95 }; 95 };
96 96
97 // Flags specific to key events 97 // Flags specific to key events
98 enum KeyEventFlags { 98 enum KeyEventFlags {
99 EF_NUMPAD_KEY = 1 << 16, // Key originates from number pad (Xkb only) 99 EF_NUMPAD_KEY = 1 << 16, // Key originates from number pad (Xkb only)
100 EF_IME_FABRICATED_KEY = 1 << 17, // Key event fabricated by the underlying 100 EF_IME_FABRICATED_KEY = 1 << 17, // Key event fabricated by the underlying
101 // IME without a user action. 101 // IME without a user action.
102 // (Linux X11 only) 102 // (Linux X11 only)
103 EF_IS_REPEAT = 1 << 18,
103 }; 104 };
104 105
105 // Flags specific to mouse events 106 // Flags specific to mouse events
106 enum MouseEventFlags { 107 enum MouseEventFlags {
107 EF_IS_DOUBLE_CLICK = 1 << 16, 108 EF_IS_DOUBLE_CLICK = 1 << 16,
108 EF_IS_TRIPLE_CLICK = 1 << 17, 109 EF_IS_TRIPLE_CLICK = 1 << 17,
109 EF_IS_NON_CLIENT = 1 << 18, 110 EF_IS_NON_CLIENT = 1 << 18,
110 EF_FROM_TOUCH = 1 << 19, // Indicates this mouse event is generated 111 EF_FROM_TOUCH = 1 << 19, // Indicates this mouse event is generated
111 // from an unconsumed touch/gesture event. 112 // from an unconsumed touch/gesture event.
112 EF_TOUCH_ACCESSIBILITY = 1 << 20, // Indicates this event was generated from 113 EF_TOUCH_ACCESSIBILITY = 1 << 20, // Indicates this event was generated from
(...skipping 15 matching lines...) Expand all
128 EP_PREDISPATCH, 129 EP_PREDISPATCH,
129 EP_PRETARGET, 130 EP_PRETARGET,
130 EP_TARGET, 131 EP_TARGET,
131 EP_POSTTARGET, 132 EP_POSTTARGET,
132 EP_POSTDISPATCH 133 EP_POSTDISPATCH
133 }; 134 };
134 135
135 } // namespace ui 136 } // namespace ui
136 137
137 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ 138 #endif // UI_EVENTS_EVENT_CONSTANTS_H_
OLDNEW
« no previous file with comments | « ui/events/event.cc ('k') | ui/events/event_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698