OLD | NEW |
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_UTILS_H_ | 5 #ifndef UI_EVENTS_EVENT_UTILS_H_ |
6 #define UI_EVENTS_EVENT_UTILS_H_ | 6 #define UI_EVENTS_EVENT_UTILS_H_ |
7 | 7 |
8 #include "base/event_types.h" | 8 #include "base/event_types.h" |
9 #include "ui/events/event_constants.h" | 9 #include "ui/events/event_constants.h" |
10 #include "ui/events/keycodes/keyboard_codes.h" | 10 #include "ui/events/keycodes/keyboard_codes.h" |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 // Returns true if |message| identifies a mouse event that was generated as the | 151 // Returns true if |message| identifies a mouse event that was generated as the |
152 // result of a touch event. | 152 // result of a touch event. |
153 EVENTS_EXPORT bool IsMouseEventFromTouch(UINT message); | 153 EVENTS_EXPORT bool IsMouseEventFromTouch(UINT message); |
154 | 154 |
155 // Converts scan code and lParam each other. The scan code | 155 // Converts scan code and lParam each other. The scan code |
156 // representing an extended key contains 0xE000 bits. | 156 // representing an extended key contains 0xE000 bits. |
157 EVENTS_EXPORT uint16 GetScanCodeFromLParam(LPARAM lParam); | 157 EVENTS_EXPORT uint16 GetScanCodeFromLParam(LPARAM lParam); |
158 EVENTS_EXPORT LPARAM GetLParamFromScanCode(uint16 scan_code); | 158 EVENTS_EXPORT LPARAM GetLParamFromScanCode(uint16 scan_code); |
159 #endif | 159 #endif |
160 | 160 |
161 // Returns true if default post-target handling was canceled for |event| after | |
162 // its dispatch to its target. | |
163 EVENTS_EXPORT bool EventCanceledDefaultHandling(const Event& event); | |
164 | |
165 // Registers a custom event type. | 161 // Registers a custom event type. |
166 EVENTS_EXPORT int RegisterCustomEventType(); | 162 EVENTS_EXPORT int RegisterCustomEventType(); |
167 | 163 |
168 } // namespace ui | 164 } // namespace ui |
169 | 165 |
170 #endif // UI_EVENTS_EVENT_UTILS_H_ | 166 #endif // UI_EVENTS_EVENT_UTILS_H_ |
OLD | NEW |