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

Unified Diff: ppapi/proxy/ppb_testing_proxy.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
Index: ppapi/proxy/ppb_testing_proxy.h
===================================================================
--- ppapi/proxy/ppb_testing_proxy.h (revision 107150)
+++ ppapi/proxy/ppb_testing_proxy.h (working copy)
@@ -6,8 +6,10 @@
#define PPAPI_PROXY_PPB_TESTING_PROXY_H_
#include "base/basictypes.h"
+#include "ppapi/c/pp_input_event.h"
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_resource.h"
+#include "ppapi/c/ppb_input_event.h"
#include "ppapi/proxy/interface_proxy.h"
#include "ppapi/shared_impl/host_resource.h"
@@ -36,6 +38,21 @@
void OnMsgRunMessageLoop(PP_Instance instance);
void OnMsgQuitMessageLoop(PP_Instance instance);
void OnMsgGetLiveObjectsForInstance(PP_Instance instance, uint32_t* result);
+ void OnMsgGenerateKeyEvent(
+ PP_Instance instance,
+ PP_InputEvent_Type type,
+ const PP_InputEvent_Key& key_event);
+ void OnMsgGenerateCharacterEvent(
+ PP_Instance instance,
+ const PP_InputEvent_Modifier modifier,
+ const std::string& text);
+ void OnMsgGenerateMouseEvent(
+ PP_Instance instance,
+ PP_InputEvent_Type type,
+ const PP_InputEvent_Mouse& mouse_event);
+ void OnMsgGenerateWheelEvent(
+ PP_Instance instance,
+ const PP_InputEvent_Wheel& wheel_event);
// When this proxy is in the host side, this value caches the interface
// pointer so we don't have to retrieve it from the dispatcher each time.

Powered by Google App Engine
This is Rietveld 408576698