| 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_location.h" | 
|   16 #include "content/common/input/input_event_ack_state.h" |   17 #include "content/common/input/input_event_ack_state.h" | 
|   17 #include "content/common/input/input_event_dispatch_type.h" |   18 #include "content/common/input/input_event_dispatch_type.h" | 
|   18 #include "content/common/input/input_param_traits.h" |   19 #include "content/common/input/input_param_traits.h" | 
|   19 #include "content/common/input/synthetic_gesture_packet.h" |   20 #include "content/common/input/synthetic_gesture_packet.h" | 
|   20 #include "content/common/input/synthetic_gesture_params.h" |   21 #include "content/common/input/synthetic_gesture_params.h" | 
|   21 #include "content/common/input/synthetic_pinch_gesture_params.h" |   22 #include "content/common/input/synthetic_pinch_gesture_params.h" | 
|   22 #include "content/common/input/synthetic_pointer_action_params.h" |   23 #include "content/common/input/synthetic_pointer_action_params.h" | 
|   23 #include "content/common/input/synthetic_smooth_drag_gesture_params.h" |   24 #include "content/common/input/synthetic_smooth_drag_gesture_params.h" | 
|   24 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h" |   25 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h" | 
|   25 #include "content/common/input/synthetic_tap_gesture_params.h" |   26 #include "content/common/input/synthetic_tap_gesture_params.h" | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
|   38 #undef IPC_MESSAGE_EXPORT |   39 #undef IPC_MESSAGE_EXPORT | 
|   39 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |   40 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 
|   40  |   41  | 
|   41 #ifdef IPC_MESSAGE_START |   42 #ifdef IPC_MESSAGE_START | 
|   42 #error IPC_MESSAGE_START |   43 #error IPC_MESSAGE_START | 
|   43 #endif |   44 #endif | 
|   44  |   45  | 
|   45 #define IPC_MESSAGE_START InputMsgStart |   46 #define IPC_MESSAGE_START InputMsgStart | 
|   46  |   47  | 
|   47 IPC_ENUM_TRAITS_MAX_VALUE( |   48 IPC_ENUM_TRAITS_MAX_VALUE( | 
 |   49     content::InputEventAckLocation, | 
 |   50     content::InputEventAckLocation::INPUT_EVENT_ACK_LOCATION_MAX) | 
 |   51 IPC_ENUM_TRAITS_MAX_VALUE( | 
|   48     content::SyntheticGestureParams::GestureSourceType, |   52     content::SyntheticGestureParams::GestureSourceType, | 
|   49     content::SyntheticGestureParams::GESTURE_SOURCE_TYPE_MAX) |   53     content::SyntheticGestureParams::GESTURE_SOURCE_TYPE_MAX) | 
|   50 IPC_ENUM_TRAITS_MAX_VALUE( |   54 IPC_ENUM_TRAITS_MAX_VALUE( | 
|   51     content::SyntheticGestureParams::GestureType, |   55     content::SyntheticGestureParams::GestureType, | 
|   52     content::SyntheticGestureParams::SYNTHETIC_GESTURE_TYPE_MAX) |   56     content::SyntheticGestureParams::SYNTHETIC_GESTURE_TYPE_MAX) | 
|   53 IPC_ENUM_TRAITS_MAX_VALUE( |   57 IPC_ENUM_TRAITS_MAX_VALUE( | 
|   54     content::SyntheticPointerActionParams::PointerActionType, |   58     content::SyntheticPointerActionParams::PointerActionType, | 
|   55     content::SyntheticPointerActionParams::PointerActionType:: |   59     content::SyntheticPointerActionParams::PointerActionType:: | 
|   56         POINTER_ACTION_TYPE_MAX) |   60         POINTER_ACTION_TYPE_MAX) | 
|   57 IPC_ENUM_TRAITS_MAX_VALUE(content::InputEventDispatchType, |   61 IPC_ENUM_TRAITS_MAX_VALUE(content::InputEventDispatchType, | 
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  108 IPC_STRUCT_TRAITS_END() |  112 IPC_STRUCT_TRAITS_END() | 
|  109  |  113  | 
|  110 IPC_STRUCT_TRAITS_BEGIN(content::SyntheticPointerActionParams) |  114 IPC_STRUCT_TRAITS_BEGIN(content::SyntheticPointerActionParams) | 
|  111   IPC_STRUCT_TRAITS_PARENT(content::SyntheticGestureParams) |  115   IPC_STRUCT_TRAITS_PARENT(content::SyntheticGestureParams) | 
|  112   IPC_STRUCT_TRAITS_MEMBER(pointer_action_type_) |  116   IPC_STRUCT_TRAITS_MEMBER(pointer_action_type_) | 
|  113   IPC_STRUCT_TRAITS_MEMBER(index_) |  117   IPC_STRUCT_TRAITS_MEMBER(index_) | 
|  114   IPC_STRUCT_TRAITS_MEMBER(position_) |  118   IPC_STRUCT_TRAITS_MEMBER(position_) | 
|  115 IPC_STRUCT_TRAITS_END() |  119 IPC_STRUCT_TRAITS_END() | 
|  116  |  120  | 
|  117 IPC_STRUCT_TRAITS_BEGIN(content::InputEventAck) |  121 IPC_STRUCT_TRAITS_BEGIN(content::InputEventAck) | 
 |  122   IPC_STRUCT_TRAITS_MEMBER(location) | 
|  118   IPC_STRUCT_TRAITS_MEMBER(type) |  123   IPC_STRUCT_TRAITS_MEMBER(type) | 
|  119   IPC_STRUCT_TRAITS_MEMBER(state) |  124   IPC_STRUCT_TRAITS_MEMBER(state) | 
|  120   IPC_STRUCT_TRAITS_MEMBER(latency) |  125   IPC_STRUCT_TRAITS_MEMBER(latency) | 
|  121   IPC_STRUCT_TRAITS_MEMBER(overscroll) |  126   IPC_STRUCT_TRAITS_MEMBER(overscroll) | 
|  122   IPC_STRUCT_TRAITS_MEMBER(unique_touch_event_id) |  127   IPC_STRUCT_TRAITS_MEMBER(unique_touch_event_id) | 
|  123 IPC_STRUCT_TRAITS_END() |  128 IPC_STRUCT_TRAITS_END() | 
|  124  |  129  | 
|  125 // Sends an input event to the render widget. |  130 // Sends an input event to the render widget. | 
|  126 IPC_MESSAGE_ROUTED3(InputMsg_HandleInputEvent, |  131 IPC_MESSAGE_ROUTED3(InputMsg_HandleInputEvent, | 
|  127                     IPC::WebInputEventPointer /* event */, |  132                     IPC::WebInputEventPointer /* event */, | 
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  310 // This IPC message sends the character bounds after every composition change |  315 // This IPC message sends the character bounds after every composition change | 
|  311 // to always have correct bound info. |  316 // to always have correct bound info. | 
|  312 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, |  317 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, | 
|  313                     gfx::Range /* composition range */, |  318                     gfx::Range /* composition range */, | 
|  314                     std::vector<gfx::Rect> /* character bounds */) |  319                     std::vector<gfx::Rect> /* character bounds */) | 
|  315  |  320  | 
|  316 // Adding a new message? Stick to the sort order above: first platform |  321 // Adding a new message? Stick to the sort order above: first platform | 
|  317 // independent InputMsg, then ifdefs for platform specific InputMsg, then |  322 // independent InputMsg, then ifdefs for platform specific InputMsg, then | 
|  318 // platform independent InputHostMsg, then ifdefs for platform specific |  323 // platform independent InputHostMsg, then ifdefs for platform specific | 
|  319 // InputHostMsg. |  324 // InputHostMsg. | 
| OLD | NEW |