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

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

Issue 13931009: Add latency info to input events sent to RenderWidget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
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/string16.h" 9 #include "base/string16.h"
10 #include "cc/debug/latency_info.h"
10 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
11 #include "content/common/content_param_traits.h" 12 #include "content/common/content_param_traits.h"
12 #include "content/common/edit_command.h" 13 #include "content/common/edit_command.h"
13 #include "content/port/common/input_event_ack_state.h" 14 #include "content/port/common/input_event_ack_state.h"
14 #include "content/public/common/common_param_traits.h" 15 #include "content/public/common/common_param_traits.h"
15 #include "ipc/ipc_message_macros.h" 16 #include "ipc/ipc_message_macros.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
17 #include "ui/gfx/point.h" 18 #include "ui/gfx/point.h"
18 #include "ui/gfx/rect.h" 19 #include "ui/gfx/rect.h"
19 20
20 #undef IPC_MESSAGE_EXPORT 21 #undef IPC_MESSAGE_EXPORT
21 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 22 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
22 23
23 #ifdef IPC_MESSAGE_START 24 #ifdef IPC_MESSAGE_START
24 #error IPC_MESSAGE_START 25 #error IPC_MESSAGE_START
25 #endif 26 #endif
26 27
27 #define IPC_MESSAGE_START InputMsgStart 28 #define IPC_MESSAGE_START InputMsgStart
28 29
29 IPC_ENUM_TRAITS(content::InputEventAckState) 30 IPC_ENUM_TRAITS(content::InputEventAckState)
30 31
31 IPC_STRUCT_TRAITS_BEGIN(content::EditCommand) 32 IPC_STRUCT_TRAITS_BEGIN(content::EditCommand)
32 IPC_STRUCT_TRAITS_MEMBER(name) 33 IPC_STRUCT_TRAITS_MEMBER(name)
33 IPC_STRUCT_TRAITS_MEMBER(value) 34 IPC_STRUCT_TRAITS_MEMBER(value)
34 IPC_STRUCT_TRAITS_END() 35 IPC_STRUCT_TRAITS_END()
35 36
36 // Sends an input event to the render widget. 37 // Sends an input event to the render widget.
37 IPC_MESSAGE_ROUTED2(InputMsg_HandleInputEvent, 38 IPC_MESSAGE_ROUTED3(InputMsg_HandleInputEvent,
38 IPC::WebInputEventPointer /* event */, 39 IPC::WebInputEventPointer /* event */,
40 cc::LatencyInfo /* latency_info */,
39 bool /* is_keyboard_shortcut */) 41 bool /* is_keyboard_shortcut */)
40 42
41 // Sends the cursor visibility state to the render widget. 43 // Sends the cursor visibility state to the render widget.
42 IPC_MESSAGE_ROUTED1(InputMsg_CursorVisibilityChange, 44 IPC_MESSAGE_ROUTED1(InputMsg_CursorVisibilityChange,
43 bool /* is_visible */) 45 bool /* is_visible */)
44 46
45 // This message notifies the renderer that the next key event is bound to one 47 // This message notifies the renderer that the next key event is bound to one
46 // or more pre-defined edit commands. If the next key event is not handled 48 // or more pre-defined edit commands. If the next key event is not handled
47 // by webkit, the specified edit commands shall be executed against current 49 // by webkit, the specified edit commands shall be executed against current
48 // focused frame. 50 // focused frame.
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // Acknowledges receipt of a InputMsg_HandleInputEvent message. 128 // Acknowledges receipt of a InputMsg_HandleInputEvent message.
127 IPC_MESSAGE_ROUTED2(InputHostMsg_HandleInputEvent_ACK, 129 IPC_MESSAGE_ROUTED2(InputHostMsg_HandleInputEvent_ACK,
128 WebKit::WebInputEvent::Type, 130 WebKit::WebInputEvent::Type,
129 content::InputEventAckState /* ack_result */) 131 content::InputEventAckState /* ack_result */)
130 132
131 133
132 // Adding a new message? Stick to the sort order above: first platform 134 // Adding a new message? Stick to the sort order above: first platform
133 // independent InputMsg, then ifdefs for platform specific InputMsg, then 135 // independent InputMsg, then ifdefs for platform specific InputMsg, then
134 // platform independent InputHostMsg, then ifdefs for platform specific 136 // platform independent InputHostMsg, then ifdefs for platform specific
135 // InputHostMsg. 137 // InputHostMsg.
OLDNEW
« no previous file with comments | « content/browser/renderer_host/touchscreen_tap_suppression_controller_stub.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698