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

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

Issue 8413021: Add functions to generate input events to PPB_Testing_Dev. These make (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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
« no previous file with comments | « ppapi/tests/test_input_event.cc ('k') | webkit/plugins/ppapi/event_conversion.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/event_conversion.h
===================================================================
--- webkit/plugins/ppapi/event_conversion.h (revision 110856)
+++ webkit/plugins/ppapi/event_conversion.h (working copy)
@@ -7,6 +7,7 @@
#include <vector>
+#include "base/memory/linked_ptr.h"
#include "ppapi/c/ppb_input_event.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
@@ -37,6 +38,14 @@
WebKit::WebInputEvent* CreateWebInputEvent(
const ::ppapi::InputEventData& event);
+// Creates an array of WebInputEvents to make the given event look like a user
+// input event on all platforms. |plugin_x| and |plugin_y| should be the
+// coordinates of a point within the plugin's area on the page.
+std::vector<linked_ptr<WebKit::WebInputEvent> > CreateSimulatedWebInputEvents(
+ const ::ppapi::InputEventData& event,
+ int plugin_x,
+ int plugin_y);
+
// 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);
« no previous file with comments | « ppapi/tests/test_input_event.cc ('k') | webkit/plugins/ppapi/event_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698