Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: content/common/input_messages.h

Issue 2863693003: Unify TouchAction classes (Closed)
Patch Set: add cstdlib Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/input/touch_action.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "cc/input/touch_action.h"
11 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
12 #include "content/common/content_param_traits.h" 13 #include "content/common/content_param_traits.h"
13 #include "content/common/edit_command.h" 14 #include "content/common/edit_command.h"
14 #include "content/common/input/input_event.h" 15 #include "content/common/input/input_event.h"
15 #include "content/common/input/input_event_ack.h" 16 #include "content/common/input/input_event_ack.h"
16 #include "content/common/input/input_event_ack_source.h" 17 #include "content/common/input/input_event_ack_source.h"
17 #include "content/common/input/input_event_ack_state.h" 18 #include "content/common/input/input_event_ack_state.h"
18 #include "content/common/input/input_event_dispatch_type.h" 19 #include "content/common/input/input_event_dispatch_type.h"
19 #include "content/common/input/input_param_traits.h" 20 #include "content/common/input/input_param_traits.h"
20 #include "content/common/input/synthetic_gesture_packet.h" 21 #include "content/common/input/synthetic_gesture_packet.h"
21 #include "content/common/input/synthetic_gesture_params.h" 22 #include "content/common/input/synthetic_gesture_params.h"
22 #include "content/common/input/synthetic_pinch_gesture_params.h" 23 #include "content/common/input/synthetic_pinch_gesture_params.h"
23 #include "content/common/input/synthetic_pointer_action_list_params.h" 24 #include "content/common/input/synthetic_pointer_action_list_params.h"
24 #include "content/common/input/synthetic_pointer_action_params.h" 25 #include "content/common/input/synthetic_pointer_action_params.h"
25 #include "content/common/input/synthetic_smooth_drag_gesture_params.h" 26 #include "content/common/input/synthetic_smooth_drag_gesture_params.h"
26 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h" 27 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h"
27 #include "content/common/input/synthetic_tap_gesture_params.h" 28 #include "content/common/input/synthetic_tap_gesture_params.h"
28 #include "content/common/input/touch_action.h"
29 #include "ipc/ipc_message_macros.h" 29 #include "ipc/ipc_message_macros.h"
30 #include "third_party/WebKit/public/platform/WebInputEvent.h" 30 #include "third_party/WebKit/public/platform/WebInputEvent.h"
31 #include "ui/events/blink/did_overscroll_params.h" 31 #include "ui/events/blink/did_overscroll_params.h"
32 #include "ui/gfx/geometry/point.h" 32 #include "ui/gfx/geometry/point.h"
33 #include "ui/gfx/geometry/rect.h" 33 #include "ui/gfx/geometry/rect.h"
34 #include "ui/gfx/geometry/vector2d_f.h" 34 #include "ui/gfx/geometry/vector2d_f.h"
35 #include "ui/gfx/ipc/gfx_param_traits.h" 35 #include "ui/gfx/ipc/gfx_param_traits.h"
36 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" 36 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h"
37 #include "ui/gfx/range/range.h" 37 #include "ui/gfx/range/range.h"
38 #include "ui/latency/ipc/latency_info_param_traits.h" 38 #include "ui/latency/ipc/latency_info_param_traits.h"
(...skipping 17 matching lines...) Expand all
56 content::SyntheticGestureParams::SYNTHETIC_GESTURE_TYPE_MAX) 56 content::SyntheticGestureParams::SYNTHETIC_GESTURE_TYPE_MAX)
57 IPC_ENUM_TRAITS_MAX_VALUE( 57 IPC_ENUM_TRAITS_MAX_VALUE(
58 content::SyntheticPointerActionParams::PointerActionType, 58 content::SyntheticPointerActionParams::PointerActionType,
59 content::SyntheticPointerActionParams::PointerActionType:: 59 content::SyntheticPointerActionParams::PointerActionType::
60 POINTER_ACTION_TYPE_MAX) 60 POINTER_ACTION_TYPE_MAX)
61 IPC_ENUM_TRAITS_MAX_VALUE( 61 IPC_ENUM_TRAITS_MAX_VALUE(
62 content::SyntheticPointerActionParams::Button, 62 content::SyntheticPointerActionParams::Button,
63 content::SyntheticPointerActionParams::Button::BUTTON_MAX) 63 content::SyntheticPointerActionParams::Button::BUTTON_MAX)
64 IPC_ENUM_TRAITS_MAX_VALUE(content::InputEventDispatchType, 64 IPC_ENUM_TRAITS_MAX_VALUE(content::InputEventDispatchType,
65 content::InputEventDispatchType::DISPATCH_TYPE_MAX) 65 content::InputEventDispatchType::DISPATCH_TYPE_MAX)
66 IPC_ENUM_TRAITS_MAX_VALUE(content::TouchAction, content::TOUCH_ACTION_MAX) 66 IPC_ENUM_TRAITS_MAX_VALUE(cc::TouchAction, cc::kTouchActionMax)
67 67
68 IPC_STRUCT_TRAITS_BEGIN(ui::DidOverscrollParams) 68 IPC_STRUCT_TRAITS_BEGIN(ui::DidOverscrollParams)
69 IPC_STRUCT_TRAITS_MEMBER(accumulated_overscroll) 69 IPC_STRUCT_TRAITS_MEMBER(accumulated_overscroll)
70 IPC_STRUCT_TRAITS_MEMBER(latest_overscroll_delta) 70 IPC_STRUCT_TRAITS_MEMBER(latest_overscroll_delta)
71 IPC_STRUCT_TRAITS_MEMBER(current_fling_velocity) 71 IPC_STRUCT_TRAITS_MEMBER(current_fling_velocity)
72 IPC_STRUCT_TRAITS_MEMBER(causal_event_viewport_point) 72 IPC_STRUCT_TRAITS_MEMBER(causal_event_viewport_point)
73 IPC_STRUCT_TRAITS_END() 73 IPC_STRUCT_TRAITS_END()
74 74
75 IPC_STRUCT_TRAITS_BEGIN(content::EditCommand) 75 IPC_STRUCT_TRAITS_BEGIN(content::EditCommand)
76 IPC_STRUCT_TRAITS_MEMBER(name) 76 IPC_STRUCT_TRAITS_MEMBER(name)
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 306
307 // Acknowledges receipt of a InputMsg_HandleInputEvent message. 307 // Acknowledges receipt of a InputMsg_HandleInputEvent message.
308 IPC_MESSAGE_ROUTED1(InputHostMsg_HandleInputEvent_ACK, 308 IPC_MESSAGE_ROUTED1(InputHostMsg_HandleInputEvent_ACK,
309 content::InputEventAck /* ack */) 309 content::InputEventAck /* ack */)
310 310
311 IPC_MESSAGE_ROUTED1(InputHostMsg_QueueSyntheticGesture, 311 IPC_MESSAGE_ROUTED1(InputHostMsg_QueueSyntheticGesture,
312 content::SyntheticGesturePacket) 312 content::SyntheticGesturePacket)
313 313
314 // Notifies the allowed touch actions for a new touch point. 314 // Notifies the allowed touch actions for a new touch point.
315 IPC_MESSAGE_ROUTED1(InputHostMsg_SetTouchAction, 315 IPC_MESSAGE_ROUTED1(InputHostMsg_SetTouchAction,
316 content::TouchAction /* touch_action */) 316 cc::TouchAction /* touch_action */)
317 317
318 // Sent by the compositor when input scroll events are dropped due to bounds 318 // Sent by the compositor when input scroll events are dropped due to bounds
319 // restrictions on the root scroll offset. 319 // restrictions on the root scroll offset.
320 IPC_MESSAGE_ROUTED1(InputHostMsg_DidOverscroll, 320 IPC_MESSAGE_ROUTED1(InputHostMsg_DidOverscroll,
321 ui::DidOverscrollParams /* params */) 321 ui::DidOverscrollParams /* params */)
322 322
323 // Sent by the compositor when a fling animation is stopped. 323 // Sent by the compositor when a fling animation is stopped.
324 IPC_MESSAGE_ROUTED0(InputHostMsg_DidStopFlinging) 324 IPC_MESSAGE_ROUTED0(InputHostMsg_DidStopFlinging)
325 325
326 // Acknowledges receipt of a InputMsg_MoveCaret message. 326 // Acknowledges receipt of a InputMsg_MoveCaret message.
(...skipping 11 matching lines...) Expand all
338 // This IPC message sends the character bounds after every composition change 338 // This IPC message sends the character bounds after every composition change
339 // to always have correct bound info. 339 // to always have correct bound info.
340 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, 340 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged,
341 gfx::Range /* composition range */, 341 gfx::Range /* composition range */,
342 std::vector<gfx::Rect> /* character bounds */) 342 std::vector<gfx::Rect> /* character bounds */)
343 343
344 // Adding a new message? Stick to the sort order above: first platform 344 // Adding a new message? Stick to the sort order above: first platform
345 // independent InputMsg, then ifdefs for platform specific InputMsg, then 345 // independent InputMsg, then ifdefs for platform specific InputMsg, then
346 // platform independent InputHostMsg, then ifdefs for platform specific 346 // platform independent InputHostMsg, then ifdefs for platform specific
347 // InputHostMsg. 347 // InputHostMsg.
OLDNEW
« no previous file with comments | « content/common/input/touch_action.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698