summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-22 18:03:20 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-22 18:03:20 +0000
commit2ade1e934533ef1e16355848c58ef82cbdc46215 (patch)
tree19bcfe8cdc477d4ce158fde841d79192b7b2a956 /ppapi/proxy
parentbbb4aebd2df5bcc7a30cd807ec9096e77e005381 (diff)
downloadchromium_src-2ade1e934533ef1e16355848c58ef82cbdc46215.zip
chromium_src-2ade1e934533ef1e16355848c58ef82cbdc46215.tar.gz
chromium_src-2ade1e934533ef1e16355848c58ef82cbdc46215.tar.bz2
ppapi: Add ResourceCreationAPI::CreateTouchInputEvent for creating touch-events.
BUG=128236 TEST=none Review URL: https://chromiumcodereview.appspot.com/10634017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143642 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy')
-rw-r--r--ppapi/proxy/resource_creation_proxy.cc9
-rw-r--r--ppapi/proxy/resource_creation_proxy.h5
2 files changed, 14 insertions, 0 deletions
diff --git a/ppapi/proxy/resource_creation_proxy.cc b/ppapi/proxy/resource_creation_proxy.cc
index 2472060..98f1a45 100644
--- a/ppapi/proxy/resource_creation_proxy.cc
+++ b/ppapi/proxy/resource_creation_proxy.cc
@@ -118,6 +118,15 @@ PP_Resource ResourceCreationProxy::CreateMouseInputEvent(
mouse_button, mouse_position, click_count, mouse_movement);
}
+PP_Resource ResourceCreationProxy::CreateTouchInputEvent(
+ PP_Instance instance,
+ PP_InputEvent_Type type,
+ PP_TimeTicks time_stamp,
+ uint32_t modifiers) {
+ return PPB_InputEvent_Shared::CreateTouchInputEvent(
+ OBJECT_IS_PROXY, instance, type, time_stamp, modifiers);
+}
+
PP_Resource ResourceCreationProxy::CreateResourceArray(
PP_Instance instance,
const PP_Resource elements[],
diff --git a/ppapi/proxy/resource_creation_proxy.h b/ppapi/proxy/resource_creation_proxy.h
index e242f2d..fcc0780 100644
--- a/ppapi/proxy/resource_creation_proxy.h
+++ b/ppapi/proxy/resource_creation_proxy.h
@@ -66,6 +66,11 @@ class ResourceCreationProxy : public InterfaceProxy,
const PP_Point* mouse_position,
int32_t click_count,
const PP_Point* mouse_movement) OVERRIDE;
+ virtual PP_Resource CreateTouchInputEvent(
+ PP_Instance instance,
+ PP_InputEvent_Type type,
+ PP_TimeTicks time_stamp,
+ uint32_t modifiers) OVERRIDE;
virtual PP_Resource CreateResourceArray(PP_Instance instance,
const PP_Resource elements[],
uint32_t size) OVERRIDE;