| 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_EVENT_CONSTANTS_H_ | 5 #ifndef UI_BASE_EVENTS_EVENT_CONSTANTS_H_ |
| 6 #define UI_BASE_EVENTS_EVENT_CONSTANTS_H_ | 6 #define UI_BASE_EVENTS_EVENT_CONSTANTS_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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 // The caller is responsible for ensuring that this is a mouse/touchpad event | 220 // The caller is responsible for ensuring that this is a mouse/touchpad event |
| 221 // before calling this function. | 221 // before calling this function. |
| 222 UI_EXPORT bool IsTouchpadEvent(const base::NativeEvent& event); | 222 UI_EXPORT bool IsTouchpadEvent(const base::NativeEvent& event); |
| 223 | 223 |
| 224 // Returns true if event is noop. | 224 // Returns true if event is noop. |
| 225 UI_EXPORT bool IsNoopEvent(const base::NativeEvent& event); | 225 UI_EXPORT bool IsNoopEvent(const base::NativeEvent& event); |
| 226 | 226 |
| 227 // Creates and returns no-op event. | 227 // Creates and returns no-op event. |
| 228 UI_EXPORT base::NativeEvent CreateNoopEvent(); | 228 UI_EXPORT base::NativeEvent CreateNoopEvent(); |
| 229 | 229 |
| 230 // Returns true if default post-target handling was canceled for |event| after |
| 231 // its dispatch to its target. |
| 232 UI_EXPORT bool EventCanceledDefaultHandling(const ui::Event& event); |
| 233 |
| 230 #if defined(OS_WIN) | 234 #if defined(OS_WIN) |
| 231 UI_EXPORT int GetModifiersFromACCEL(const ACCEL& accel); | 235 UI_EXPORT int GetModifiersFromACCEL(const ACCEL& accel); |
| 232 UI_EXPORT int GetModifiersFromKeyState(); | 236 UI_EXPORT int GetModifiersFromKeyState(); |
| 233 | 237 |
| 234 // Returns true if |message| identifies a mouse event that was generated as the | 238 // Returns true if |message| identifies a mouse event that was generated as the |
| 235 // result of a touch event. | 239 // result of a touch event. |
| 236 UI_EXPORT bool IsMouseEventFromTouch(UINT message); | 240 UI_EXPORT bool IsMouseEventFromTouch(UINT message); |
| 237 #endif | 241 #endif |
| 238 | 242 |
| 239 } // namespace ui | 243 } // namespace ui |
| 240 | 244 |
| 241 #endif // UI_BASE_EVENTS_EVENT_CONSTANTS_H_ | 245 #endif // UI_BASE_EVENTS_EVENT_CONSTANTS_H_ |
| OLD | NEW |