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

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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
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. The input event in general
139 IPC_MESSAGE_ROUTED3(InputMsg_HandleInputEvent, 139 // contains a list of coalesced events and one event that is representative of
140 IPC::WebInputEventPointer /* event */, 140 // all those events (https://w3c.github.io/pointerevents/extension.html).
141 ui::LatencyInfo /* latency_info */, 141 IPC_MESSAGE_ROUTED4(
142 content::InputEventDispatchType) 142 InputMsg_HandleInputEvent,
143 IPC::WebInputEventPointer /* event */,
144 std::vector<IPC::WebInputEventPointer> /* coalesced events */,
145 ui::LatencyInfo /* latency_info */,
146 content::InputEventDispatchType)
143 147
144 // Sends the cursor visibility state to the render widget. 148 // Sends the cursor visibility state to the render widget.
145 IPC_MESSAGE_ROUTED1(InputMsg_CursorVisibilityChange, 149 IPC_MESSAGE_ROUTED1(InputMsg_CursorVisibilityChange,
146 bool /* is_visible */) 150 bool /* is_visible */)
147 151
148 // Sets the text composition to be between the given start and end offsets in 152 // Sets the text composition to be between the given start and end offsets in
149 // the currently focused editable field. 153 // the currently focused editable field.
150 IPC_MESSAGE_ROUTED3(InputMsg_SetCompositionFromExistingText, 154 IPC_MESSAGE_ROUTED3(InputMsg_SetCompositionFromExistingText,
151 int /* start */, 155 int /* start */,
152 int /* end */, 156 int /* end */,
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 // This IPC message sends the character bounds after every composition change 324 // This IPC message sends the character bounds after every composition change
321 // to always have correct bound info. 325 // to always have correct bound info.
322 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, 326 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged,
323 gfx::Range /* composition range */, 327 gfx::Range /* composition range */,
324 std::vector<gfx::Rect> /* character bounds */) 328 std::vector<gfx::Rect> /* character bounds */)
325 329
326 // Adding a new message? Stick to the sort order above: first platform 330 // Adding a new message? Stick to the sort order above: first platform
327 // independent InputMsg, then ifdefs for platform specific InputMsg, then 331 // independent InputMsg, then ifdefs for platform specific InputMsg, then
328 // platform independent InputHostMsg, then ifdefs for platform specific 332 // platform independent InputHostMsg, then ifdefs for platform specific
329 // InputHostMsg. 333 // InputHostMsg.
OLDNEW
« no previous file with comments | « content/common/input/event_with_latency_info.cc ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698