Index: webkit/plugins/ppapi/event_conversion.h |
=================================================================== |
--- webkit/plugins/ppapi/event_conversion.h (revision 90976) |
+++ webkit/plugins/ppapi/event_conversion.h (working copy) |
@@ -7,8 +7,15 @@ |
#include <vector> |
+#include "ppapi/c/ppb_input_event.h" |
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
+ |
struct PP_InputEvent; |
+namespace ppapi { |
+struct InputEventData; |
+} |
+ |
namespace WebKit { |
class WebInputEvent; |
} |
@@ -22,10 +29,19 @@ |
void CreatePPEvent(const WebKit::WebInputEvent& event, |
std::vector<PP_InputEvent>* pp_events); |
+void CreateInputEventData(const WebKit::WebInputEvent& event, |
+ std::vector< ::ppapi::InputEventData >* pp_events); |
+ |
// Creates a WebInputEvent from the given PP_InputEvent. If it fails, returns |
// NULL. The caller owns the created object on success. |
WebKit::WebInputEvent* CreateWebInputEvent(const PP_InputEvent& event); |
+WebKit::WebInputEvent* CreateWebInputEvent( |
+ const ::ppapi::InputEventData& event); |
+// Returns the PPAPI event class for the given WebKit event type. The given |
+// type should not be "Undefined" since there's no corresponding PPAPI class. |
+PP_InputEvent_Class ClassifyInputEvent(WebKit::WebInputEvent::Type type); |
+ |
} // namespace ppapi |
} // namespace webkit |