| 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_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 11 matching lines...) Expand all  Loading... | 
|   37  |   38  | 
|   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  | 
 |   48 IPC_ENUM_TRAITS_MAX_VALUE(content::InputEventAckSource, | 
 |   49                           content::InputEventAckSource::MAX) | 
|   47 IPC_ENUM_TRAITS_MAX_VALUE( |   50 IPC_ENUM_TRAITS_MAX_VALUE( | 
|   48     content::SyntheticGestureParams::GestureSourceType, |   51     content::SyntheticGestureParams::GestureSourceType, | 
|   49     content::SyntheticGestureParams::GESTURE_SOURCE_TYPE_MAX) |   52     content::SyntheticGestureParams::GESTURE_SOURCE_TYPE_MAX) | 
|   50 IPC_ENUM_TRAITS_MAX_VALUE( |   53 IPC_ENUM_TRAITS_MAX_VALUE( | 
|   51     content::SyntheticGestureParams::GestureType, |   54     content::SyntheticGestureParams::GestureType, | 
|   52     content::SyntheticGestureParams::SYNTHETIC_GESTURE_TYPE_MAX) |   55     content::SyntheticGestureParams::SYNTHETIC_GESTURE_TYPE_MAX) | 
|   53 IPC_ENUM_TRAITS_MAX_VALUE( |   56 IPC_ENUM_TRAITS_MAX_VALUE( | 
|   54     content::SyntheticPointerActionParams::PointerActionType, |   57     content::SyntheticPointerActionParams::PointerActionType, | 
|   55     content::SyntheticPointerActionParams::PointerActionType:: |   58     content::SyntheticPointerActionParams::PointerActionType:: | 
|   56         POINTER_ACTION_TYPE_MAX) |   59         POINTER_ACTION_TYPE_MAX) | 
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  108 IPC_STRUCT_TRAITS_END() |  111 IPC_STRUCT_TRAITS_END() | 
|  109  |  112  | 
|  110 IPC_STRUCT_TRAITS_BEGIN(content::SyntheticPointerActionParams) |  113 IPC_STRUCT_TRAITS_BEGIN(content::SyntheticPointerActionParams) | 
|  111   IPC_STRUCT_TRAITS_PARENT(content::SyntheticGestureParams) |  114   IPC_STRUCT_TRAITS_PARENT(content::SyntheticGestureParams) | 
|  112   IPC_STRUCT_TRAITS_MEMBER(pointer_action_type_) |  115   IPC_STRUCT_TRAITS_MEMBER(pointer_action_type_) | 
|  113   IPC_STRUCT_TRAITS_MEMBER(index_) |  116   IPC_STRUCT_TRAITS_MEMBER(index_) | 
|  114   IPC_STRUCT_TRAITS_MEMBER(position_) |  117   IPC_STRUCT_TRAITS_MEMBER(position_) | 
|  115 IPC_STRUCT_TRAITS_END() |  118 IPC_STRUCT_TRAITS_END() | 
|  116  |  119  | 
|  117 IPC_STRUCT_TRAITS_BEGIN(content::InputEventAck) |  120 IPC_STRUCT_TRAITS_BEGIN(content::InputEventAck) | 
 |  121   IPC_STRUCT_TRAITS_MEMBER(source) | 
|  118   IPC_STRUCT_TRAITS_MEMBER(type) |  122   IPC_STRUCT_TRAITS_MEMBER(type) | 
|  119   IPC_STRUCT_TRAITS_MEMBER(state) |  123   IPC_STRUCT_TRAITS_MEMBER(state) | 
|  120   IPC_STRUCT_TRAITS_MEMBER(latency) |  124   IPC_STRUCT_TRAITS_MEMBER(latency) | 
|  121   IPC_STRUCT_TRAITS_MEMBER(overscroll) |  125   IPC_STRUCT_TRAITS_MEMBER(overscroll) | 
|  122   IPC_STRUCT_TRAITS_MEMBER(unique_touch_event_id) |  126   IPC_STRUCT_TRAITS_MEMBER(unique_touch_event_id) | 
|  123 IPC_STRUCT_TRAITS_END() |  127 IPC_STRUCT_TRAITS_END() | 
|  124  |  128  | 
|  125 // Sends an input event to the render widget. |  129 // Sends an input event to the render widget. | 
|  126 IPC_MESSAGE_ROUTED3(InputMsg_HandleInputEvent, |  130 IPC_MESSAGE_ROUTED3(InputMsg_HandleInputEvent, | 
|  127                     IPC::WebInputEventPointer /* event */, |  131                     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 |  314 // This IPC message sends the character bounds after every composition change | 
|  311 // to always have correct bound info. |  315 // to always have correct bound info. | 
|  312 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, |  316 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, | 
|  313                     gfx::Range /* composition range */, |  317                     gfx::Range /* composition range */, | 
|  314                     std::vector<gfx::Rect> /* character bounds */) |  318                     std::vector<gfx::Rect> /* character bounds */) | 
|  315  |  319  | 
|  316 // Adding a new message? Stick to the sort order above: first platform |  320 // Adding a new message? Stick to the sort order above: first platform | 
|  317 // independent InputMsg, then ifdefs for platform specific InputMsg, then |  321 // independent InputMsg, then ifdefs for platform specific InputMsg, then | 
|  318 // platform independent InputHostMsg, then ifdefs for platform specific |  322 // platform independent InputHostMsg, then ifdefs for platform specific | 
|  319 // InputHostMsg. |  323 // InputHostMsg. | 
| OLD | NEW |