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

Unified Diff: webkit/plugins/ppapi/event_conversion.h

Issue 7285010: Implement an input event resource. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698