diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-19 19:33:55 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-19 19:33:55 +0000 |
commit | aa0c865d8f2824f60013ace1c60b3e5fa4c2210a (patch) | |
tree | d8124920b63ea2466fb9642a19471bf0c14fe06c /ppapi/proxy/ppb_testing_proxy.cc | |
parent | afa3c18d08b411bda2975a5ae6f33a4ed939875f (diff) | |
download | chromium_src-aa0c865d8f2824f60013ace1c60b3e5fa4c2210a.zip chromium_src-aa0c865d8f2824f60013ace1c60b3e5fa4c2210a.tar.gz chromium_src-aa0c865d8f2824f60013ace1c60b3e5fa4c2210a.tar.bz2 |
Allow creation of input events. Revert changes to testing interface for
creating keyboard events.
TEST=manual
Review URL: http://codereview.chromium.org/7443005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93076 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppb_testing_proxy.cc')
-rw-r--r-- | ppapi/proxy/ppb_testing_proxy.cc | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/ppapi/proxy/ppb_testing_proxy.cc b/ppapi/proxy/ppb_testing_proxy.cc index 628fa7b..593ed7d 100644 --- a/ppapi/proxy/ppb_testing_proxy.cc +++ b/ppapi/proxy/ppb_testing_proxy.cc @@ -9,9 +9,7 @@ #include "ppapi/proxy/plugin_dispatcher.h" #include "ppapi/proxy/plugin_resource.h" #include "ppapi/proxy/plugin_resource_tracker.h" -#include "ppapi/proxy/plugin_var_tracker.h" #include "ppapi/proxy/ppapi_messages.h" -#include "ppapi/proxy/ppb_input_event_proxy.h" namespace pp { namespace proxy { @@ -72,25 +70,6 @@ uint32_t GetLiveObjectsForInstance(PP_Instance instance_id) { return result; } -PP_Resource CreateKeyboardInputEvent(PP_Instance instance, - PP_InputEvent_Type type, - PP_TimeTicks ticks, - uint32_t modifiers, - uint32_t key_code, - PP_Var char_text) { - PluginVarTracker* tracker = PluginVarTracker::GetInstance(); - - ppapi::InputEventData data; - data.event_type = type; - data.event_time_stamp = ticks; - data.event_modifiers = modifiers; - data.key_code = key_code; - if (char_text.type == PP_VARTYPE_STRING) - data.character_text = *tracker->GetExistingString(char_text); - - return PPB_InputEvent_Proxy::CreateProxyResource(instance, data); -} - const PPB_Testing_Dev testing_interface = { &ReadImageData, &RunMessageLoop, |