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

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

Issue 1631963002: Plumb firing passive event listeners. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_wheel_passive_listeners_2a
Patch Set: Fix creis's comments Created 4 years, 10 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/web_input_event_queue.h ('k') | content/content_common.gypi » ('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 "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/did_overscroll_params.h" 14 #include "content/common/input/did_overscroll_params.h"
15 #include "content/common/input/input_event.h" 15 #include "content/common/input/input_event.h"
16 #include "content/common/input/input_event_ack.h" 16 #include "content/common/input/input_event_ack.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_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_smooth_drag_gesture_params.h" 23 #include "content/common/input/synthetic_smooth_drag_gesture_params.h"
23 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h" 24 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h"
24 #include "content/common/input/synthetic_tap_gesture_params.h" 25 #include "content/common/input/synthetic_tap_gesture_params.h"
25 #include "content/common/input/touch_action.h" 26 #include "content/common/input/touch_action.h"
26 #include "content/public/common/common_param_traits.h" 27 #include "content/public/common/common_param_traits.h"
27 #include "ipc/ipc_message_macros.h" 28 #include "ipc/ipc_message_macros.h"
(...skipping 13 matching lines...) Expand all
41 #endif 42 #endif
42 43
43 #define IPC_MESSAGE_START InputMsgStart 44 #define IPC_MESSAGE_START InputMsgStart
44 45
45 IPC_ENUM_TRAITS_MAX_VALUE( 46 IPC_ENUM_TRAITS_MAX_VALUE(
46 content::SyntheticGestureParams::GestureSourceType, 47 content::SyntheticGestureParams::GestureSourceType,
47 content::SyntheticGestureParams::GESTURE_SOURCE_TYPE_MAX) 48 content::SyntheticGestureParams::GESTURE_SOURCE_TYPE_MAX)
48 IPC_ENUM_TRAITS_MAX_VALUE( 49 IPC_ENUM_TRAITS_MAX_VALUE(
49 content::SyntheticGestureParams::GestureType, 50 content::SyntheticGestureParams::GestureType,
50 content::SyntheticGestureParams::SYNTHETIC_GESTURE_TYPE_MAX) 51 content::SyntheticGestureParams::SYNTHETIC_GESTURE_TYPE_MAX)
52 IPC_ENUM_TRAITS_MAX_VALUE(content::InputEventDispatchType,
53 content::InputEventDispatchType::DISPATCH_TYPE_MAX)
51 IPC_ENUM_TRAITS_VALIDATE(content::TouchAction, ( 54 IPC_ENUM_TRAITS_VALIDATE(content::TouchAction, (
52 value >= 0 && 55 value >= 0 &&
53 value <= content::TOUCH_ACTION_MAX && 56 value <= content::TOUCH_ACTION_MAX &&
54 (!(value & content::TOUCH_ACTION_NONE) || 57 (!(value & content::TOUCH_ACTION_NONE) ||
55 (value == content::TOUCH_ACTION_NONE)) && 58 (value == content::TOUCH_ACTION_NONE)) &&
56 (!(value & content::TOUCH_ACTION_PINCH_ZOOM) || 59 (!(value & content::TOUCH_ACTION_PINCH_ZOOM) ||
57 (value == content::TOUCH_ACTION_MANIPULATION)))) 60 (value == content::TOUCH_ACTION_MANIPULATION))))
58 61
59 IPC_STRUCT_TRAITS_BEGIN(content::DidOverscrollParams) 62 IPC_STRUCT_TRAITS_BEGIN(content::DidOverscrollParams)
60 IPC_STRUCT_TRAITS_MEMBER(accumulated_overscroll) 63 IPC_STRUCT_TRAITS_MEMBER(accumulated_overscroll)
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 110
108 IPC_STRUCT_TRAITS_BEGIN(content::InputEventAck) 111 IPC_STRUCT_TRAITS_BEGIN(content::InputEventAck)
109 IPC_STRUCT_TRAITS_MEMBER(type) 112 IPC_STRUCT_TRAITS_MEMBER(type)
110 IPC_STRUCT_TRAITS_MEMBER(state) 113 IPC_STRUCT_TRAITS_MEMBER(state)
111 IPC_STRUCT_TRAITS_MEMBER(latency) 114 IPC_STRUCT_TRAITS_MEMBER(latency)
112 IPC_STRUCT_TRAITS_MEMBER(overscroll) 115 IPC_STRUCT_TRAITS_MEMBER(overscroll)
113 IPC_STRUCT_TRAITS_MEMBER(unique_touch_event_id) 116 IPC_STRUCT_TRAITS_MEMBER(unique_touch_event_id)
114 IPC_STRUCT_TRAITS_END() 117 IPC_STRUCT_TRAITS_END()
115 118
116 // Sends an input event to the render widget. 119 // Sends an input event to the render widget.
117 IPC_MESSAGE_ROUTED2(InputMsg_HandleInputEvent, 120 IPC_MESSAGE_ROUTED3(InputMsg_HandleInputEvent,
118 IPC::WebInputEventPointer /* event */, 121 IPC::WebInputEventPointer /* event */,
119 ui::LatencyInfo /* latency_info */) 122 ui::LatencyInfo /* latency_info */,
123 content::InputEventDispatchType)
120 124
121 // Sends the cursor visibility state to the render widget. 125 // Sends the cursor visibility state to the render widget.
122 IPC_MESSAGE_ROUTED1(InputMsg_CursorVisibilityChange, 126 IPC_MESSAGE_ROUTED1(InputMsg_CursorVisibilityChange,
123 bool /* is_visible */) 127 bool /* is_visible */)
124 128
125 // Sets the text composition to be between the given start and end offsets in 129 // Sets the text composition to be between the given start and end offsets in
126 // the currently focused editable field. 130 // the currently focused editable field.
127 IPC_MESSAGE_ROUTED3(InputMsg_SetCompositionFromExistingText, 131 IPC_MESSAGE_ROUTED3(InputMsg_SetCompositionFromExistingText,
128 int /* start */, 132 int /* start */,
129 int /* end */, 133 int /* end */,
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 // This IPC message sends the character bounds after every composition change 288 // This IPC message sends the character bounds after every composition change
285 // to always have correct bound info. 289 // to always have correct bound info.
286 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, 290 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged,
287 gfx::Range /* composition range */, 291 gfx::Range /* composition range */,
288 std::vector<gfx::Rect> /* character bounds */) 292 std::vector<gfx::Rect> /* character bounds */)
289 293
290 // Adding a new message? Stick to the sort order above: first platform 294 // Adding a new message? Stick to the sort order above: first platform
291 // independent InputMsg, then ifdefs for platform specific InputMsg, then 295 // independent InputMsg, then ifdefs for platform specific InputMsg, then
292 // platform independent InputHostMsg, then ifdefs for platform specific 296 // platform independent InputHostMsg, then ifdefs for platform specific
293 // InputHostMsg. 297 // InputHostMsg.
OLDNEW
« no previous file with comments | « content/common/input/web_input_event_queue.h ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698