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

Unified Diff: ppapi/c/dev/ppb_testing_dev.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, 2 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
« no previous file with comments | « no previous file | ppapi/proxy/ppapi_messages.h » ('j') | ppapi/proxy/ppapi_messages.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/dev/ppb_testing_dev.h
===================================================================
--- ppapi/c/dev/ppb_testing_dev.h (revision 107150)
+++ ppapi/c/dev/ppb_testing_dev.h (working copy)
@@ -7,6 +7,7 @@
#include "ppapi/c/pp_bool.h"
#include "ppapi/c/pp_instance.h"
+#include "ppapi/c/pp_input_event.h"
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_stdint.h"
@@ -15,7 +16,8 @@
// TODO(dmichael): Delete support for 0.6.
#define PPB_TESTING_DEV_INTERFACE_0_6 "PPB_Testing(Dev);0.6"
dmichael (off chromium) 2011/10/28 16:02:22 optional: It would be nice if you could get rid of
#define PPB_TESTING_DEV_INTERFACE_0_7 "PPB_Testing(Dev);0.7"
-#define PPB_TESTING_DEV_INTERFACE PPB_TESTING_DEV_INTERFACE_0_7
+#define PPB_TESTING_DEV_INTERFACE_0_8 "PPB_Testing(Dev);0.8"
+#define PPB_TESTING_DEV_INTERFACE PPB_TESTING_DEV_INTERFACE_0_8
// This interface contains functions used for unit testing. Do not use in
// production code. They are not guaranteed to be available in normal plugin
@@ -74,6 +76,28 @@
// Returns PP_TRUE if the plugin is running out-of-process, PP_FALSE
// otherwise.
PP_Bool (*IsOutOfProcess)();
+
+ // Generates a key up / down input event.
dmichael (off chromium) 2011/10/28 16:02:22 When you say 'Generate', you mean inject one so th
+ void (*GenerateKeyEvent)(
+ PP_Instance instance,
+ PP_InputEvent_Type type,
+ const PP_InputEvent_Key& key_event);
dmichael (off chromium) 2011/10/28 16:02:22 Can you instead use 1 function that takes a PP_Res
+
+ // Generates a character input event.
+ void (*GenerateCharacterEvent)(
+ PP_Instance instance,
+ const PP_InputEvent_Character& character_event);
+
+ // Generates a mouse input event.
+ void (*GenerateMouseEvent)(
+ PP_Instance instance,
+ PP_InputEvent_Type type,
+ const PP_InputEvent_Mouse& mouse_event);
+
+ // Generates a mouse wheel input event.
+ void (*GenerateWheelEvent)(
+ PP_Instance instance,
+ const PP_InputEvent_Wheel& wheel_event);
};
#endif /* PPAPI_C_DEV_PPB_TESTING_DEV_H_ */
« no previous file with comments | « no previous file | ppapi/proxy/ppapi_messages.h » ('j') | ppapi/proxy/ppapi_messages.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698