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

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

Issue 1191783002: Support Compat mode inside of the desktop tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@commands_alt
Patch Set: Different approach. 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)
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // keyboards, Search on Chromebook 87 // keyboards, Search on Chromebook
88 // keyboards, Windows on MS-oriented 88 // keyboards, Windows on MS-oriented
89 // keyboards) 89 // keyboards)
90 EF_EXTENDED = 1 << 8, // Windows extended key (see WM_KEYDOWN 90 EF_EXTENDED = 1 << 8, // Windows extended key (see WM_KEYDOWN
91 // doc) 91 // doc)
92 EF_IS_SYNTHESIZED = 1 << 9, 92 EF_IS_SYNTHESIZED = 1 << 9,
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 EF_BACK_MOUSE_BUTTON = 1 << 12, 95 EF_BACK_MOUSE_BUTTON = 1 << 12,
96 EF_FORWARD_MOUSE_BUTTON = 1 << 13, 96 EF_FORWARD_MOUSE_BUTTON = 1 << 13,
97 EF_ALL_MODIFIERS =
98 EF_SHIFT_DOWN | EF_CONTROL_DOWN | EF_ALT_DOWN | EF_COMMAND_DOWN,
dmazzoni 2015/06/18 22:23:41 I wonder if ALTGR and MOD3 should be included? If
97 }; 99 };
98 100
99 // Flags specific to key events 101 // Flags specific to key events
100 enum KeyEventFlags { 102 enum KeyEventFlags {
101 EF_IME_FABRICATED_KEY = 1 << 16, // Key event fabricated by the underlying 103 EF_IME_FABRICATED_KEY = 1 << 16, // Key event fabricated by the underlying
102 // IME without a user action. 104 // IME without a user action.
103 // (Linux X11 only) 105 // (Linux X11 only)
104 EF_IS_REPEAT = 1 << 17, 106 EF_IS_REPEAT = 1 << 17,
105 EF_FINAL = 1 << 18, // Do not remap; the event was created with 107 EF_FINAL = 1 << 18, // Do not remap; the event was created with
106 // the desired final values. 108 // the desired final values.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 }; 144 };
143 145
144 // Device ID for Touch and Key Events. 146 // Device ID for Touch and Key Events.
145 enum EventDeviceId { 147 enum EventDeviceId {
146 ED_UNKNOWN_DEVICE = -1 148 ED_UNKNOWN_DEVICE = -1
147 }; 149 };
148 150
149 } // namespace ui 151 } // namespace ui
150 152
151 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ 153 #endif // UI_EVENTS_EVENT_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698