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

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

Issue 2479123003: WIP Add getCoalescedEvents API using vector of WebInputEvents (Closed)
Patch Set: Created 4 years, 1 month 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 "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 IPC_STRUCT_TRAITS_BEGIN(content::InputEventAck) 117 IPC_STRUCT_TRAITS_BEGIN(content::InputEventAck)
118 IPC_STRUCT_TRAITS_MEMBER(type) 118 IPC_STRUCT_TRAITS_MEMBER(type)
119 IPC_STRUCT_TRAITS_MEMBER(state) 119 IPC_STRUCT_TRAITS_MEMBER(state)
120 IPC_STRUCT_TRAITS_MEMBER(latency) 120 IPC_STRUCT_TRAITS_MEMBER(latency)
121 IPC_STRUCT_TRAITS_MEMBER(overscroll) 121 IPC_STRUCT_TRAITS_MEMBER(overscroll)
122 IPC_STRUCT_TRAITS_MEMBER(unique_touch_event_id) 122 IPC_STRUCT_TRAITS_MEMBER(unique_touch_event_id)
123 IPC_STRUCT_TRAITS_END() 123 IPC_STRUCT_TRAITS_END()
124 124
125 // Sends an input event to the render widget. 125 // Sends an input event to the render widget.
126 IPC_MESSAGE_ROUTED3(InputMsg_HandleInputEvent, 126 IPC_MESSAGE_ROUTED4(InputMsg_HandleInputEvent,
127 IPC::WebInputEventPointer /* event */, 127 IPC::WebInputEventPointer /* event */,
128 std::vector<IPC::WebInputEventPointer> /* coalesced evts */,
128 ui::LatencyInfo /* latency_info */, 129 ui::LatencyInfo /* latency_info */,
129 content::InputEventDispatchType) 130 content::InputEventDispatchType)
130 131
131 // Sends the cursor visibility state to the render widget. 132 // Sends the cursor visibility state to the render widget.
132 IPC_MESSAGE_ROUTED1(InputMsg_CursorVisibilityChange, 133 IPC_MESSAGE_ROUTED1(InputMsg_CursorVisibilityChange,
133 bool /* is_visible */) 134 bool /* is_visible */)
134 135
135 // Sets the text composition to be between the given start and end offsets in 136 // Sets the text composition to be between the given start and end offsets in
136 // the currently focused editable field. 137 // the currently focused editable field.
137 IPC_MESSAGE_ROUTED3(InputMsg_SetCompositionFromExistingText, 138 IPC_MESSAGE_ROUTED3(InputMsg_SetCompositionFromExistingText,
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 // This IPC message sends the character bounds after every composition change 314 // This IPC message sends the character bounds after every composition change
314 // to always have correct bound info. 315 // to always have correct bound info.
315 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, 316 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged,
316 gfx::Range /* composition range */, 317 gfx::Range /* composition range */,
317 std::vector<gfx::Rect> /* character bounds */) 318 std::vector<gfx::Rect> /* character bounds */)
318 319
319 // 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
320 // independent InputMsg, then ifdefs for platform specific InputMsg, then 321 // independent InputMsg, then ifdefs for platform specific InputMsg, then
321 // platform independent InputHostMsg, then ifdefs for platform specific 322 // platform independent InputHostMsg, then ifdefs for platform specific
322 // InputHostMsg. 323 // InputHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698