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

Side by Side Diff: content/common/input/input_event_utils.h

Issue 19624005: Add InputEvent and EventPacket types for batched input delivery (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years, 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_COMMON_INPUT_INPUT_EVENT_UTILS_H_
6 #define CONTENT_COMMON_INPUT_INPUT_EVENT_UTILS_H_
7
8 #include "content/common/content_export.h"
9
10 namespace IPC {
11 class Message;
12 }
13
14 namespace ui {
15 struct LatencyInfo;
16 }
17
18 namespace WebKit {
19 class WebInputEvent;
20 }
21
22 namespace content {
23
24 class EventPacket;
25
26 // True of message is of type InputMsg_HandleInputEvent.
27 CONTENT_EXPORT bool IsWebInputEventMessage(const IPC::Message& message);
28 // |optional_output_is_keyboard_shortcut| may be NULL.
29 CONTENT_EXPORT bool CrackWebInputEventMessage(
30 const IPC::Message& message,
31 const WebKit::WebInputEvent** output_event,
32 ui::LatencyInfo* output_latency_info,
33 bool* optional_output_is_keyboard_shortcut);
34
35 // True if message is of type InputMsg_HandleEventPacket or
36 // InputHostMsg_HandleEventPacket_ACK.
37 CONTENT_EXPORT bool IsEventPacketMessage(const IPC::Message& message);
38 CONTENT_EXPORT bool CrackEventPacketMessage(
39 const IPC::Message& message,
40 EventPacket* output_packet);
41
42 } // namespace content
43
44 #endif // CONTENT_COMMON_INPUT_INPUT_EVENT_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698