diff options
author | bbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-09 02:08:33 +0000 |
---|---|---|
committer | bbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-09 02:08:33 +0000 |
commit | 3b98ced7c4528bca2b7bccef06f1dbb09195e924 (patch) | |
tree | 68b5ff96929940152bfbf13fbc33a82d17bd76e0 /ppapi/proxy/ppb_instance_proxy.h | |
parent | 2db72d5edd716d73a085d352219e91198f3a2ffd (diff) | |
download | chromium_src-3b98ced7c4528bca2b7bccef06f1dbb09195e924.zip chromium_src-3b98ced7c4528bca2b7bccef06f1dbb09195e924.tar.gz chromium_src-3b98ced7c4528bca2b7bccef06f1dbb09195e924.tar.bz2 |
Add HandleInputEventAck message to allow out-of-process plugins to respond to user gestures.
Modifies PluginInstance to track pending user gestures by timestamp.
Modifies ppapi/tests/test_fullscreen to not test that SetFullscreen and BindGraphics fail while fullscreen changes are pending. Because of how PluginInstance reports view changed events, these will likely fail due to race conditions.
BUG=73070
TEST=ui_tests, --gtest_filter=*PPAPITest.Fullscreen
Review URL: http://codereview.chromium.org/9558009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125768 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppb_instance_proxy.h')
-rw-r--r-- | ppapi/proxy/ppb_instance_proxy.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ppapi/proxy/ppb_instance_proxy.h b/ppapi/proxy/ppb_instance_proxy.h index edb6a95..5b17af1 100644 --- a/ppapi/proxy/ppb_instance_proxy.h +++ b/ppapi/proxy/ppb_instance_proxy.h @@ -7,6 +7,7 @@ #include "ppapi/c/pp_instance.h" #include "ppapi/c/pp_resource.h" +#include "ppapi/c/pp_time.h" #include "ppapi/c/pp_var.h" #include "ppapi/proxy/interface_proxy.h" #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" @@ -64,7 +65,7 @@ class PPB_Instance_Proxy : public InterfaceProxy, int32_t index) OVERRIDE; virtual PP_Var GetFontFamilies(PP_Instance instance) OVERRIDE; virtual PP_Bool SetFullscreen(PP_Instance instance, - PP_Bool fullscreen) OVERRIDE; + PP_Bool fullscreen) OVERRIDE; virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) OVERRIDE; virtual PP_Bool FlashIsFullscreen(PP_Instance instance) OVERRIDE; @@ -80,6 +81,8 @@ class PPB_Instance_Proxy : public InterfaceProxy, uint32_t event_classes) OVERRIDE; virtual void ClearInputEventRequest(PP_Instance instance, uint32_t event_classes) OVERRIDE; + virtual void ClosePendingUserGesture(PP_Instance instance, + PP_TimeTicks timestamp) OVERRIDE; virtual void ZoomChanged(PP_Instance instance, double factor) OVERRIDE; virtual void ZoomLimitsChanged(PP_Instance instance, double minimum_factor, @@ -140,6 +143,8 @@ class PPB_Instance_Proxy : public InterfaceProxy, uint32_t event_classes); void OnHostMsgClearInputEvents(PP_Instance instance, uint32_t event_classes); + void OnMsgHandleInputEventAck(PP_Instance instance, + PP_TimeTicks timestamp); void OnHostMsgPostMessage(PP_Instance instance, SerializedVarReceiveInput message); void OnHostMsgLockMouse(PP_Instance instance); |