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

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

Issue 239313004: EF_NUMPAD_KEY flag for ui::KeyEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit_tests.EventRewriterTest.TestRewriteNumPadKeys* Created 6 years, 8 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 | « chrome/browser/chromeos/events/event_rewriter_unittest.cc ('k') | ui/events/x/events_x.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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 EF_LEFT_MOUSE_BUTTON = 1 << 4, 85 EF_LEFT_MOUSE_BUTTON = 1 << 4,
86 EF_MIDDLE_MOUSE_BUTTON = 1 << 5, 86 EF_MIDDLE_MOUSE_BUTTON = 1 << 5,
87 EF_RIGHT_MOUSE_BUTTON = 1 << 6, 87 EF_RIGHT_MOUSE_BUTTON = 1 << 6,
88 EF_COMMAND_DOWN = 1 << 7, // Only useful on OSX 88 EF_COMMAND_DOWN = 1 << 7, // Only useful on OSX
89 EF_EXTENDED = 1 << 8, // Windows extended key (see WM_KEYDOWN doc) 89 EF_EXTENDED = 1 << 8, // Windows extended key (see WM_KEYDOWN doc)
90 EF_IS_SYNTHESIZED = 1 << 9, 90 EF_IS_SYNTHESIZED = 1 << 9,
91 EF_ALTGR_DOWN = 1 << 10, 91 EF_ALTGR_DOWN = 1 << 10,
92 EF_MOD3_DOWN = 1 << 11, 92 EF_MOD3_DOWN = 1 << 11,
93 }; 93 };
94 94
95 // Flags specific to key events
96 enum KeyEventFlags {
97 EF_NUMPAD_KEY = 1 << 16, // Key originates from number pad (Xkb only)
98 };
99
95 // Flags specific to mouse events 100 // Flags specific to mouse events
96 enum MouseEventFlags { 101 enum MouseEventFlags {
97 EF_IS_DOUBLE_CLICK = 1 << 16, 102 EF_IS_DOUBLE_CLICK = 1 << 16,
98 EF_IS_TRIPLE_CLICK = 1 << 17, 103 EF_IS_TRIPLE_CLICK = 1 << 17,
99 EF_IS_NON_CLIENT = 1 << 18, 104 EF_IS_NON_CLIENT = 1 << 18,
100 EF_FROM_TOUCH = 1 << 19, // Indicates this mouse event is generated 105 EF_FROM_TOUCH = 1 << 19, // Indicates this mouse event is generated
101 // from an unconsumed touch/gesture event. 106 // from an unconsumed touch/gesture event.
102 }; 107 };
103 108
104 // Result of dispatching an event. 109 // Result of dispatching an event.
(...skipping 11 matching lines...) Expand all
116 EP_PREDISPATCH, 121 EP_PREDISPATCH,
117 EP_PRETARGET, 122 EP_PRETARGET,
118 EP_TARGET, 123 EP_TARGET,
119 EP_POSTTARGET, 124 EP_POSTTARGET,
120 EP_POSTDISPATCH 125 EP_POSTDISPATCH
121 }; 126 };
122 127
123 } // namespace ui 128 } // namespace ui
124 129
125 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ 130 #endif // UI_EVENTS_EVENT_CONSTANTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/events/event_rewriter_unittest.cc ('k') | ui/events/x/events_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698