From f73feaf7fed34e62c31bf5a86436c561290ec9ed Mon Sep 17 00:00:00 2001 From: "yzshen@chromium.org" Date: Sat, 22 Dec 2012 07:04:31 +0000 Subject: Ppapi: remove the code for closing pending user gesture. The code is a no-op currently. We set a timeout for user gesture at the renderer side, instead of relying on well-behaved plugins sending back messages to close user gesture. TEST=None BUG=None Review URL: https://chromiumcodereview.appspot.com/11664014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174501 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/plugins/ppapi/ppapi_plugin_instance.cc | 10 +--------- webkit/plugins/ppapi/ppapi_plugin_instance.h | 2 -- 2 files changed, 1 insertion(+), 11 deletions(-) (limited to 'webkit') diff --git a/webkit/plugins/ppapi/ppapi_plugin_instance.cc b/webkit/plugins/ppapi/ppapi_plugin_instance.cc index c326528..0b15838 100644 --- a/webkit/plugins/ppapi/ppapi_plugin_instance.cc +++ b/webkit/plugins/ppapi/ppapi_plugin_instance.cc @@ -1765,8 +1765,7 @@ bool PluginInstance::IsFullPagePlugin() const { bool PluginInstance::IsProcessingUserGesture() { PP_TimeTicks now = ::ppapi::TimeTicksToPPTimeTicks(base::TimeTicks::Now()); - // Give a lot of slack so tests won't be flaky. Well behaved plugins will - // close the user gesture. + // Give a lot of slack so tests won't be flaky. const PP_TimeTicks kUserGestureDurationInSeconds = 10.0; return (now - pending_user_gesture_ < kUserGestureDurationInSeconds); } @@ -1872,13 +1871,6 @@ ContentDecryptorDelegate* PluginInstance::GetContentDecryptorDelegate() { return content_decryptor_delegate_.get(); } -void PluginInstance::ClosePendingUserGesture(PP_Instance instance, - PP_TimeTicks timestamp) { - // Do nothing so that the pending user gesture will stay open for - // kUserGestureDurationInSeconds. - // TODO(yzshen): remove the code for closing pending user gesture. -} - PP_Bool PluginInstance::BindGraphics(PP_Instance instance, PP_Resource device) { TRACE_EVENT0("ppapi", "PluginInstance::BindGraphics"); diff --git a/webkit/plugins/ppapi/ppapi_plugin_instance.h b/webkit/plugins/ppapi/ppapi_plugin_instance.h index f58850e..da6d4a5 100644 --- a/webkit/plugins/ppapi/ppapi_plugin_instance.h +++ b/webkit/plugins/ppapi/ppapi_plugin_instance.h @@ -381,8 +381,6 @@ class WEBKIT_PLUGINS_EXPORT PluginInstance : 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); virtual void ZoomChanged(PP_Instance instance, double factor) OVERRIDE; virtual void ZoomLimitsChanged(PP_Instance instance, double minimum_factor, -- cgit v1.1