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

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

Issue 942133002: Adding synthetic touch/mouse drag [Part2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mousedrag
Patch Set: Fixing nit. Created 5 years, 9 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
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 "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "content/common/content_param_traits.h" 11 #include "content/common/content_param_traits.h"
12 #include "content/common/edit_command.h" 12 #include "content/common/edit_command.h"
13 #include "content/common/input/did_overscroll_params.h" 13 #include "content/common/input/did_overscroll_params.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_state.h" 15 #include "content/common/input/input_event_ack_state.h"
16 #include "content/common/input/input_param_traits.h" 16 #include "content/common/input/input_param_traits.h"
17 #include "content/common/input/synthetic_gesture_packet.h" 17 #include "content/common/input/synthetic_gesture_packet.h"
18 #include "content/common/input/synthetic_gesture_params.h" 18 #include "content/common/input/synthetic_gesture_params.h"
19 #include "content/common/input/synthetic_pinch_gesture_params.h" 19 #include "content/common/input/synthetic_pinch_gesture_params.h"
20 #include "content/common/input/synthetic_smooth_drag_gesture_params.h"
20 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h" 21 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h"
21 #include "content/common/input/synthetic_tap_gesture_params.h" 22 #include "content/common/input/synthetic_tap_gesture_params.h"
22 #include "content/common/input/touch_action.h" 23 #include "content/common/input/touch_action.h"
23 #include "content/public/common/common_param_traits.h" 24 #include "content/public/common/common_param_traits.h"
24 #include "ipc/ipc_message_macros.h" 25 #include "ipc/ipc_message_macros.h"
25 #include "third_party/WebKit/public/web/WebInputEvent.h" 26 #include "third_party/WebKit/public/web/WebInputEvent.h"
26 #include "ui/events/ipc/latency_info_param_traits.h" 27 #include "ui/events/ipc/latency_info_param_traits.h"
27 #include "ui/gfx/geometry/point.h" 28 #include "ui/gfx/geometry/point.h"
28 #include "ui/gfx/geometry/rect.h" 29 #include "ui/gfx/geometry/rect.h"
29 #include "ui/gfx/geometry/vector2d_f.h" 30 #include "ui/gfx/geometry/vector2d_f.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 IPC_STRUCT_TRAITS_BEGIN(content::InputEvent) 71 IPC_STRUCT_TRAITS_BEGIN(content::InputEvent)
71 IPC_STRUCT_TRAITS_MEMBER(web_event) 72 IPC_STRUCT_TRAITS_MEMBER(web_event)
72 IPC_STRUCT_TRAITS_MEMBER(latency_info) 73 IPC_STRUCT_TRAITS_MEMBER(latency_info)
73 IPC_STRUCT_TRAITS_MEMBER(is_keyboard_shortcut) 74 IPC_STRUCT_TRAITS_MEMBER(is_keyboard_shortcut)
74 IPC_STRUCT_TRAITS_END() 75 IPC_STRUCT_TRAITS_END()
75 76
76 IPC_STRUCT_TRAITS_BEGIN(content::SyntheticGestureParams) 77 IPC_STRUCT_TRAITS_BEGIN(content::SyntheticGestureParams)
77 IPC_STRUCT_TRAITS_MEMBER(gesture_source_type) 78 IPC_STRUCT_TRAITS_MEMBER(gesture_source_type)
78 IPC_STRUCT_TRAITS_END() 79 IPC_STRUCT_TRAITS_END()
79 80
81 IPC_STRUCT_TRAITS_BEGIN(content::SyntheticSmoothDragGestureParams)
82 IPC_STRUCT_TRAITS_PARENT(content::SyntheticGestureParams)
dcheng 2015/02/26 17:56:51 clang-format gets confused about this. Indent?
ssid 2015/02/26 20:02:34 Done.
83 IPC_STRUCT_TRAITS_MEMBER(start_point)
84 IPC_STRUCT_TRAITS_MEMBER(distances)
85 IPC_STRUCT_TRAITS_MEMBER(speed_in_pixels_s)
86 IPC_STRUCT_TRAITS_END()
87
80 IPC_STRUCT_TRAITS_BEGIN(content::SyntheticSmoothScrollGestureParams) 88 IPC_STRUCT_TRAITS_BEGIN(content::SyntheticSmoothScrollGestureParams)
81 IPC_STRUCT_TRAITS_PARENT(content::SyntheticGestureParams) 89 IPC_STRUCT_TRAITS_PARENT(content::SyntheticGestureParams)
82 IPC_STRUCT_TRAITS_MEMBER(anchor) 90 IPC_STRUCT_TRAITS_MEMBER(anchor)
83 IPC_STRUCT_TRAITS_MEMBER(distances) 91 IPC_STRUCT_TRAITS_MEMBER(distances)
84 IPC_STRUCT_TRAITS_MEMBER(prevent_fling) 92 IPC_STRUCT_TRAITS_MEMBER(prevent_fling)
85 IPC_STRUCT_TRAITS_MEMBER(speed_in_pixels_s) 93 IPC_STRUCT_TRAITS_MEMBER(speed_in_pixels_s)
86 IPC_STRUCT_TRAITS_END() 94 IPC_STRUCT_TRAITS_END()
87 95
88 IPC_STRUCT_TRAITS_BEGIN(content::SyntheticPinchGestureParams) 96 IPC_STRUCT_TRAITS_BEGIN(content::SyntheticPinchGestureParams)
89 IPC_STRUCT_TRAITS_PARENT(content::SyntheticGestureParams) 97 IPC_STRUCT_TRAITS_PARENT(content::SyntheticGestureParams)
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 // This IPC message sends the character bounds after every composition change 268 // This IPC message sends the character bounds after every composition change
261 // to always have correct bound info. 269 // to always have correct bound info.
262 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, 270 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged,
263 gfx::Range /* composition range */, 271 gfx::Range /* composition range */,
264 std::vector<gfx::Rect> /* character bounds */) 272 std::vector<gfx::Rect> /* character bounds */)
265 273
266 // Adding a new message? Stick to the sort order above: first platform 274 // Adding a new message? Stick to the sort order above: first platform
267 // independent InputMsg, then ifdefs for platform specific InputMsg, then 275 // independent InputMsg, then ifdefs for platform specific InputMsg, then
268 // platform independent InputHostMsg, then ifdefs for platform specific 276 // platform independent InputHostMsg, then ifdefs for platform specific
269 // InputHostMsg. 277 // InputHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698