OLD | NEW |
(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_ |
OLD | NEW |