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

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

Issue 1017473002: [Merge] Make mouse buttons 8 - 11 navigate forward and back in history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2311
Patch Set: Created 5 years, 9 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/event.h ('k') | ui/events/ozone/evdev/event_converter_evdev_impl.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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // to track with the UMA system. 70 // to track with the UMA system.
71 ET_UMA_DATA, 71 ET_UMA_DATA,
72 72
73 // Must always be last. User namespace starts above this value. 73 // Must always be last. User namespace starts above this value.
74 // See ui::RegisterCustomEventType(). 74 // See ui::RegisterCustomEventType().
75 ET_LAST 75 ET_LAST
76 }; 76 };
77 77
78 // Event flags currently supported 78 // Event flags currently supported
79 enum EventFlags { 79 enum EventFlags {
80 EF_NONE = 0, // Used to denote no flags explicitly 80 EF_NONE = 0, // Used to denote no flags explicitly
81 EF_CAPS_LOCK_DOWN = 1 << 0, 81 EF_CAPS_LOCK_DOWN = 1 << 0,
82 EF_SHIFT_DOWN = 1 << 1, 82 EF_SHIFT_DOWN = 1 << 1,
83 EF_CONTROL_DOWN = 1 << 2, 83 EF_CONTROL_DOWN = 1 << 2,
84 EF_ALT_DOWN = 1 << 3, 84 EF_ALT_DOWN = 1 << 3,
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, // GUI Key (e.g. Command on OS X keyboards, 88 EF_COMMAND_DOWN = 1 << 7, // GUI Key (e.g. Command on OS X
89 // Search on Chromebook keyboards, 89 // keyboards, Search on Chromebook
90 // Windows on MS-oriented keyboards) 90 // keyboards, Windows on MS-oriented
91 EF_EXTENDED = 1 << 8, // Windows extended key (see WM_KEYDOWN doc) 91 // keyboards)
92 EF_IS_SYNTHESIZED = 1 << 9, 92 EF_EXTENDED = 1 << 8, // Windows extended key (see WM_KEYDOWN
93 EF_ALTGR_DOWN = 1 << 10, 93 // doc)
94 EF_MOD3_DOWN = 1 << 11, 94 EF_IS_SYNTHESIZED = 1 << 9,
95 EF_ALTGR_DOWN = 1 << 10,
96 EF_MOD3_DOWN = 1 << 11,
97 EF_BACK_MOUSE_BUTTON = 1 << 12,
98 EF_FORWARD_MOUSE_BUTTON = 1 << 13,
95 }; 99 };
96 100
97 // Flags specific to key events 101 // Flags specific to key events
98 enum KeyEventFlags { 102 enum KeyEventFlags {
99 EF_NUMPAD_KEY = 1 << 16, // Key originates from number pad (Xkb only) 103 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 104 EF_IME_FABRICATED_KEY = 1 << 17, // Key event fabricated by the underlying
101 // IME without a user action. 105 // IME without a user action.
102 // (Linux X11 only) 106 // (Linux X11 only)
103 EF_IS_REPEAT = 1 << 18, 107 EF_IS_REPEAT = 1 << 18,
104 EF_FUNCTION_KEY = 1 << 19, // Key originates from function key row 108 EF_FUNCTION_KEY = 1 << 19, // Key originates from function key row
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 }; 146 };
143 147
144 // Device ID for Touch and Key Events. 148 // Device ID for Touch and Key Events.
145 enum EventDeviceId { 149 enum EventDeviceId {
146 ED_UNKNOWN_DEVICE = -1 150 ED_UNKNOWN_DEVICE = -1
147 }; 151 };
148 152
149 } // namespace ui 153 } // namespace ui
150 154
151 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ 155 #endif // UI_EVENTS_EVENT_CONSTANTS_H_
OLDNEW
« no previous file with comments | « ui/events/event.h ('k') | ui/events/ozone/evdev/event_converter_evdev_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698