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

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

Issue 2621303004: Keep track of coalesced events in main thread event queue (Closed)
Patch Set: Rebase Created 3 years, 11 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 "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 IPC_STRUCT_TRAITS_BEGIN(content::InputEventAck) 129 IPC_STRUCT_TRAITS_BEGIN(content::InputEventAck)
130 IPC_STRUCT_TRAITS_MEMBER(source) 130 IPC_STRUCT_TRAITS_MEMBER(source)
131 IPC_STRUCT_TRAITS_MEMBER(type) 131 IPC_STRUCT_TRAITS_MEMBER(type)
132 IPC_STRUCT_TRAITS_MEMBER(state) 132 IPC_STRUCT_TRAITS_MEMBER(state)
133 IPC_STRUCT_TRAITS_MEMBER(latency) 133 IPC_STRUCT_TRAITS_MEMBER(latency)
134 IPC_STRUCT_TRAITS_MEMBER(overscroll) 134 IPC_STRUCT_TRAITS_MEMBER(overscroll)
135 IPC_STRUCT_TRAITS_MEMBER(unique_touch_event_id) 135 IPC_STRUCT_TRAITS_MEMBER(unique_touch_event_id)
136 IPC_STRUCT_TRAITS_END() 136 IPC_STRUCT_TRAITS_END()
137 137
138 // Sends an input event to the render widget. 138 // Sends an input event to the render widget.
139 IPC_MESSAGE_ROUTED3(InputMsg_HandleInputEvent, 139 IPC_MESSAGE_ROUTED4(InputMsg_HandleInputEvent,
140 IPC::WebInputEventPointer /* event */, 140 IPC::WebInputEventPointer /* event */,
141 std::vector<IPC::WebInputEventPointer> /* coalesced ones*/,
dcheng 2017/01/23 19:38:58 Nit: ones => events (also one space before */) It
Navid Zolghadr 2017/01/23 21:42:04 Done.
141 ui::LatencyInfo /* latency_info */, 142 ui::LatencyInfo /* latency_info */,
142 content::InputEventDispatchType) 143 content::InputEventDispatchType)
143 144
144 // Sends the cursor visibility state to the render widget. 145 // Sends the cursor visibility state to the render widget.
145 IPC_MESSAGE_ROUTED1(InputMsg_CursorVisibilityChange, 146 IPC_MESSAGE_ROUTED1(InputMsg_CursorVisibilityChange,
146 bool /* is_visible */) 147 bool /* is_visible */)
147 148
148 // Sets the text composition to be between the given start and end offsets in 149 // Sets the text composition to be between the given start and end offsets in
149 // the currently focused editable field. 150 // the currently focused editable field.
150 IPC_MESSAGE_ROUTED3(InputMsg_SetCompositionFromExistingText, 151 IPC_MESSAGE_ROUTED3(InputMsg_SetCompositionFromExistingText,
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 // This IPC message sends the character bounds after every composition change 321 // This IPC message sends the character bounds after every composition change
321 // to always have correct bound info. 322 // to always have correct bound info.
322 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, 323 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged,
323 gfx::Range /* composition range */, 324 gfx::Range /* composition range */,
324 std::vector<gfx::Rect> /* character bounds */) 325 std::vector<gfx::Rect> /* character bounds */)
325 326
326 // Adding a new message? Stick to the sort order above: first platform 327 // Adding a new message? Stick to the sort order above: first platform
327 // independent InputMsg, then ifdefs for platform specific InputMsg, then 328 // independent InputMsg, then ifdefs for platform specific InputMsg, then
328 // platform independent InputHostMsg, then ifdefs for platform specific 329 // platform independent InputHostMsg, then ifdefs for platform specific
329 // InputHostMsg. 330 // InputHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698