| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 // IPC messages for input events and other messages that require processing in | 5 // IPC messages for input events and other messages that require processing in |
| 6 // order relative to input events. | 6 // order relative to input events. |
| 7 // Multiply-included message file, hence no include guard. | 7 // Multiply-included message file, hence no include guard. |
| 8 | 8 |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 12 #include "content/common/content_param_traits.h" | 12 #include "content/common/content_param_traits.h" |
| 13 #include "content/common/edit_command.h" | 13 #include "content/common/edit_command.h" |
| 14 #include "content/common/input/input_event.h" | 14 #include "content/common/input/input_event.h" |
| 15 #include "content/common/input/input_event_ack.h" | 15 #include "content/common/input/input_event_ack.h" |
| 16 #include "content/common/input/input_event_ack_source.h" | 16 #include "content/common/input/input_event_ack_source.h" |
| 17 #include "content/common/input/input_event_ack_state.h" | 17 #include "content/common/input/input_event_ack_state.h" |
| 18 #include "content/common/input/input_event_dispatch_type.h" | 18 #include "content/common/input/input_event_dispatch_type.h" |
| 19 #include "content/common/input/input_param_traits.h" | 19 #include "content/common/input/input_param_traits.h" |
| 20 #include "content/common/input/synthetic_gesture_packet.h" | 20 #include "content/common/input/synthetic_gesture_packet.h" |
| 21 #include "content/common/input/synthetic_gesture_params.h" | 21 #include "content/common/input/synthetic_gesture_params.h" |
| 22 #include "content/common/input/synthetic_pinch_gesture_params.h" | 22 #include "content/common/input/synthetic_pinch_gesture_params.h" |
| 23 #include "content/common/input/synthetic_pointer_action_list_params.h" |
| 23 #include "content/common/input/synthetic_pointer_action_params.h" | 24 #include "content/common/input/synthetic_pointer_action_params.h" |
| 24 #include "content/common/input/synthetic_smooth_drag_gesture_params.h" | 25 #include "content/common/input/synthetic_smooth_drag_gesture_params.h" |
| 25 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h" | 26 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h" |
| 26 #include "content/common/input/synthetic_tap_gesture_params.h" | 27 #include "content/common/input/synthetic_tap_gesture_params.h" |
| 27 #include "content/common/input/touch_action.h" | 28 #include "content/common/input/touch_action.h" |
| 28 #include "ipc/ipc_message_macros.h" | 29 #include "ipc/ipc_message_macros.h" |
| 29 #include "third_party/WebKit/public/platform/WebInputEvent.h" | 30 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
| 30 #include "ui/events/blink/did_overscroll_params.h" | 31 #include "ui/events/blink/did_overscroll_params.h" |
| 31 #include "ui/events/ipc/latency_info_param_traits.h" | 32 #include "ui/events/ipc/latency_info_param_traits.h" |
| 32 #include "ui/gfx/geometry/point.h" | 33 #include "ui/gfx/geometry/point.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 IPC_STRUCT_TRAITS_MEMBER(relative_pointer_speed_in_pixels_s) | 105 IPC_STRUCT_TRAITS_MEMBER(relative_pointer_speed_in_pixels_s) |
| 105 IPC_STRUCT_TRAITS_END() | 106 IPC_STRUCT_TRAITS_END() |
| 106 | 107 |
| 107 IPC_STRUCT_TRAITS_BEGIN(content::SyntheticTapGestureParams) | 108 IPC_STRUCT_TRAITS_BEGIN(content::SyntheticTapGestureParams) |
| 108 IPC_STRUCT_TRAITS_PARENT(content::SyntheticGestureParams) | 109 IPC_STRUCT_TRAITS_PARENT(content::SyntheticGestureParams) |
| 109 IPC_STRUCT_TRAITS_MEMBER(position) | 110 IPC_STRUCT_TRAITS_MEMBER(position) |
| 110 IPC_STRUCT_TRAITS_MEMBER(duration_ms) | 111 IPC_STRUCT_TRAITS_MEMBER(duration_ms) |
| 111 IPC_STRUCT_TRAITS_END() | 112 IPC_STRUCT_TRAITS_END() |
| 112 | 113 |
| 113 IPC_STRUCT_TRAITS_BEGIN(content::SyntheticPointerActionParams) | 114 IPC_STRUCT_TRAITS_BEGIN(content::SyntheticPointerActionParams) |
| 114 IPC_STRUCT_TRAITS_PARENT(content::SyntheticGestureParams) | |
| 115 IPC_STRUCT_TRAITS_MEMBER(pointer_action_type_) | 115 IPC_STRUCT_TRAITS_MEMBER(pointer_action_type_) |
| 116 IPC_STRUCT_TRAITS_MEMBER(gesture_source_type_) |
| 116 IPC_STRUCT_TRAITS_MEMBER(index_) | 117 IPC_STRUCT_TRAITS_MEMBER(index_) |
| 117 IPC_STRUCT_TRAITS_MEMBER(position_) | 118 IPC_STRUCT_TRAITS_MEMBER(position_) |
| 118 IPC_STRUCT_TRAITS_END() | 119 IPC_STRUCT_TRAITS_END() |
| 119 | 120 |
| 121 IPC_STRUCT_TRAITS_BEGIN(content::SyntheticPointerActionListParams) |
| 122 IPC_STRUCT_TRAITS_PARENT(content::SyntheticGestureParams) |
| 123 IPC_STRUCT_TRAITS_MEMBER(params) |
| 124 IPC_STRUCT_TRAITS_END() |
| 125 |
| 120 IPC_STRUCT_TRAITS_BEGIN(content::InputEventAck) | 126 IPC_STRUCT_TRAITS_BEGIN(content::InputEventAck) |
| 121 IPC_STRUCT_TRAITS_MEMBER(source) | 127 IPC_STRUCT_TRAITS_MEMBER(source) |
| 122 IPC_STRUCT_TRAITS_MEMBER(type) | 128 IPC_STRUCT_TRAITS_MEMBER(type) |
| 123 IPC_STRUCT_TRAITS_MEMBER(state) | 129 IPC_STRUCT_TRAITS_MEMBER(state) |
| 124 IPC_STRUCT_TRAITS_MEMBER(latency) | 130 IPC_STRUCT_TRAITS_MEMBER(latency) |
| 125 IPC_STRUCT_TRAITS_MEMBER(overscroll) | 131 IPC_STRUCT_TRAITS_MEMBER(overscroll) |
| 126 IPC_STRUCT_TRAITS_MEMBER(unique_touch_event_id) | 132 IPC_STRUCT_TRAITS_MEMBER(unique_touch_event_id) |
| 127 IPC_STRUCT_TRAITS_END() | 133 IPC_STRUCT_TRAITS_END() |
| 128 | 134 |
| 129 // Sends an input event to the render widget. | 135 // Sends an input event to the render widget. |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 // This IPC message sends the character bounds after every composition change | 320 // This IPC message sends the character bounds after every composition change |
| 315 // to always have correct bound info. | 321 // to always have correct bound info. |
| 316 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, | 322 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, |
| 317 gfx::Range /* composition range */, | 323 gfx::Range /* composition range */, |
| 318 std::vector<gfx::Rect> /* character bounds */) | 324 std::vector<gfx::Rect> /* character bounds */) |
| 319 | 325 |
| 320 // Adding a new message? Stick to the sort order above: first platform | 326 // Adding a new message? Stick to the sort order above: first platform |
| 321 // independent InputMsg, then ifdefs for platform specific InputMsg, then | 327 // independent InputMsg, then ifdefs for platform specific InputMsg, then |
| 322 // platform independent InputHostMsg, then ifdefs for platform specific | 328 // platform independent InputHostMsg, then ifdefs for platform specific |
| 323 // InputHostMsg. | 329 // InputHostMsg. |
| OLD | NEW |