OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ipc/ipc_message_utils.h" |
| 6 #include "ipc/param_traits_macros.h" |
| 7 #include "ui/events/event.h" |
| 8 #include "ui/events/event_constants.h" |
| 9 #include "ui/events/ipc/events_ipc_export.h" |
| 10 |
| 11 #undef IPC_MESSAGE_EXPORT |
| 12 #define IPC_MESSAGE_EXPORT EVENTS_IPC_EXPORT |
| 13 |
| 14 IPC_ENUM_TRAITS_MIN_MAX_VALUE(ui::EventType, |
| 15 ui::EventType::ET_UNKNOWN, |
| 16 ui::EventType::ET_LAST) |
| 17 |
| 18 IPC_ENUM_TRAITS_MIN_MAX_VALUE(ui::EventResult, |
| 19 ui::EventResult::ER_UNHANDLED, |
| 20 ui::EventResult::ER_DISABLE_SYNC_HANDLING) |
| 21 |
| 22 IPC_ENUM_TRAITS_MIN_MAX_VALUE(ui::EventPhase, |
| 23 ui::EventPhase::EP_PREDISPATCH, |
| 24 ui::EventPhase::EP_POSTDISPATCH) |
| 25 |
| 26 IPC_ENUM_TRAITS_MIN_MAX_VALUE(ui::EventPointerType, |
| 27 ui::EventPhase::EP_PREDISPATCH, |
| 28 ui::EventPhase::EP_POSTDISPATCH) |
| 29 |
| 30 IPC_ENUM_TRAITS_MIN_MAX_VALUE(ui::KeyboardCode, |
| 31 ui::KeyboardCode::VKEY_UNKNOWN, /* 0x00 */ |
| 32 ui::KeyboardCode::VKEY_OEM_CLEAR /* 0xFE */) |
| 33 |
| 34 IPC_ENUM_TRAITS_MIN_MAX_VALUE(ui::DomCode, 0, 0x0c028c) |
| 35 |
| 36 IPC_STRUCT_TRAITS_BEGIN(ui::PointerDetails) |
| 37 IPC_STRUCT_TRAITS_MEMBER(pointer_type) |
| 38 IPC_STRUCT_TRAITS_MEMBER(radius_x) |
| 39 IPC_STRUCT_TRAITS_MEMBER(radius_y) |
| 40 IPC_STRUCT_TRAITS_MEMBER(force) |
| 41 IPC_STRUCT_TRAITS_MEMBER(tilt_x) |
| 42 IPC_STRUCT_TRAITS_MEMBER(tilt_y) |
| 43 IPC_STRUCT_TRAITS_END() |
| 44 |
| 45 IPC_STRUCT_TRAITS_BEGIN(ui::LocatedEvent) |
| 46 IPC_STRUCT_TRAITS_MEMBER(location_) |
| 47 IPC_STRUCT_TRAITS_MEMBER(root_location_) |
| 48 IPC_STRUCT_TRAITS_END() |
| 49 |
| 50 IPC_STRUCT_TRAITS_BEGIN(ui::MouseEvent) |
| 51 IPC_STRUCT_TRAITS_PARENT(ui::LocatedEvent) |
| 52 IPC_STRUCT_TRAITS_MEMBER(changed_button_flags_) |
| 53 IPC_STRUCT_TRAITS_MEMBER(pointer_details_) |
| 54 IPC_STRUCT_TRAITS_END() |
| 55 |
| 56 IPC_STRUCT_TRAITS_BEGIN(ui::MouseWheelEvent) |
| 57 IPC_STRUCT_TRAITS_PARENT(ui::MouseEvent) |
| 58 IPC_STRUCT_TRAITS_MEMBER(offset_) |
| 59 IPC_STRUCT_TRAITS_END() |
| 60 |
| 61 IPC_STRUCT_TRAITS_BEGIN(ui::TouchEvent) |
| 62 IPC_STRUCT_TRAITS_PARENT(ui::LocatedEvent) |
| 63 IPC_STRUCT_TRAITS_MEMBER(touch_id_) |
| 64 IPC_STRUCT_TRAITS_MEMBER(unique_event_id_) |
| 65 IPC_STRUCT_TRAITS_MEMBER(rotation_angle_) |
| 66 IPC_STRUCT_TRAITS_MEMBER(may_cause_scrolling_) |
| 67 IPC_STRUCT_TRAITS_MEMBER(pointer_details_) |
| 68 IPC_STRUCT_TRAITS_END() |
| 69 |
| 70 IPC_STRUCT_TRAITS_BEGIN(ui::DomKey) |
| 71 IPC_STRUCT_TRAITS_MEMBER(value_) |
| 72 IPC_STRUCT_TRAITS_END() |
| 73 |
| 74 IPC_STRUCT_TRAITS_BEGIN(ui::KeyEvent) |
| 75 IPC_STRUCT_TRAITS_MEMBER(is_char_) |
| 76 IPC_STRUCT_TRAITS_MEMBER(key_code_) |
| 77 IPC_STRUCT_TRAITS_MEMBER(code_) |
| 78 IPC_STRUCT_TRAITS_MEMBER(key_) |
| 79 IPC_STRUCT_TRAITS_END() |
| 80 |
| 81 IPC_STRUCT_TRAITS_BEGIN(ui::ScrollEvent) |
| 82 IPC_STRUCT_TRAITS_PARENT(ui::MouseEvent) |
| 83 IPC_STRUCT_TRAITS_MEMBER(x_offset_) |
| 84 IPC_STRUCT_TRAITS_MEMBER(y_offset_) |
| 85 IPC_STRUCT_TRAITS_MEMBER(x_offset_ordinal_) |
| 86 IPC_STRUCT_TRAITS_MEMBER(y_offset_ordinal_) |
| 87 IPC_STRUCT_TRAITS_MEMBER(finger_count_) |
| 88 IPC_STRUCT_TRAITS_END() |
| 89 |
| 90 IPC_STRUCT_TRAITS_BEGIN(ui::GestureEventDetails) |
| 91 IPC_STRUCT_TRAITS_MEMBER(type_) |
| 92 IPC_STRUCT_TRAITS_MEMBER(data_) |
| 93 IPC_STRUCT_TRAITS_MEMBER(touch_points_) |
| 94 IPC_STRUCT_TRAITS_MEMBER(bounding_box_) |
| 95 IPC_STRUCT_TRAITS_END() |
| 96 |
| 97 IPC_STRUCT_TRAITS_BEGIN(ui::GestureEvent) |
| 98 IPC_STRUCT_TRAITS_PARENT(ui::LocatedEvent) |
| 99 IPC_STRUCT_TRAITS_MEMBER(details_) |
| 100 IPC_STRUCT_TRAITS_END() |
OLD | NEW |