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_ */ |