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_BASE_EVENTS_H_ | 5 #ifndef UI_BASE_EVENTS_H_ |
6 #define UI_BASE_EVENTS_H_ | 6 #define UI_BASE_EVENTS_H_ |
7 | 7 |
8 #include "base/event_types.h" | 8 #include "base/event_types.h" |
9 #include "ui/base/keycodes/keyboard_codes.h" | 9 #include "ui/base/keycodes/keyboard_codes.h" |
10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 UI_EXPORT bool IsTouchpadEvent(const base::NativeEvent& event); | 201 UI_EXPORT bool IsTouchpadEvent(const base::NativeEvent& event); |
202 | 202 |
203 // Returns true if event is noop. | 203 // Returns true if event is noop. |
204 UI_EXPORT bool IsNoopEvent(const base::NativeEvent& event); | 204 UI_EXPORT bool IsNoopEvent(const base::NativeEvent& event); |
205 | 205 |
206 // Creates and returns no-op event. | 206 // Creates and returns no-op event. |
207 UI_EXPORT base::NativeEvent CreateNoopEvent(); | 207 UI_EXPORT base::NativeEvent CreateNoopEvent(); |
208 | 208 |
209 #if defined(OS_WIN) | 209 #if defined(OS_WIN) |
210 UI_EXPORT int GetModifiersFromACCEL(const ACCEL& accel); | 210 UI_EXPORT int GetModifiersFromACCEL(const ACCEL& accel); |
| 211 UI_EXPORT int GetModifiersFromKeyState(); |
211 | 212 |
212 // Returns true if |message| identifies a mouse event that was generated as the | 213 // Returns true if |message| identifies a mouse event that was generated as the |
213 // result of a touch event. | 214 // result of a touch event. |
214 UI_EXPORT bool IsMouseEventFromTouch(UINT message); | 215 UI_EXPORT bool IsMouseEventFromTouch(UINT message); |
215 #endif | 216 #endif |
216 | 217 |
217 } // namespace ui | 218 } // namespace ui |
218 | 219 |
219 #endif // UI_BASE_EVENTS_H_ | 220 #endif // UI_BASE_EVENTS_H_ |
OLD | NEW |