diff options
author | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-22 07:04:31 +0000 |
---|---|---|
committer | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-22 07:04:31 +0000 |
commit | f73feaf7fed34e62c31bf5a86436c561290ec9ed (patch) | |
tree | 5d87fb7386f76b779aff1bcb49e848db2b15411b /ppapi | |
parent | bf01714253b7e6d10c7092f0e1dbde157a733d66 (diff) | |
download | chromium_src-f73feaf7fed34e62c31bf5a86436c561290ec9ed.zip chromium_src-f73feaf7fed34e62c31bf5a86436c561290ec9ed.tar.gz chromium_src-f73feaf7fed34e62c31bf5a86436c561290ec9ed.tar.bz2 |
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
Diffstat (limited to 'ppapi')
-rw-r--r-- | ppapi/proxy/ppapi_messages.h | 4 | ||||
-rw-r--r-- | ppapi/proxy/ppb_instance_proxy.cc | 15 | ||||
-rw-r--r-- | ppapi/proxy/ppb_instance_proxy.h | 5 | ||||
-rw-r--r-- | ppapi/proxy/ppp_input_event_proxy.cc | 17 | ||||
-rw-r--r-- | ppapi/proxy/ppp_input_event_proxy.h | 3 | ||||
-rw-r--r-- | ppapi/thunk/ppb_instance_api.h | 3 |
6 files changed, 0 insertions, 47 deletions
diff --git a/ppapi/proxy/ppapi_messages.h b/ppapi/proxy/ppapi_messages.h index de7253a..71501e3 100644 --- a/ppapi/proxy/ppapi_messages.h +++ b/ppapi/proxy/ppapi_messages.h @@ -535,10 +535,6 @@ IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInputEvent_HandleFilteredInputEvent, PP_Instance /* instance */, ppapi::InputEventData /* data */, PP_Bool /* result */) -// (Message from the plugin to the browser that it handled an input event.) -IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInputEvent_HandleInputEvent_ACK, - PP_Instance /* instance */, - PP_TimeTicks /* timestamp */) // PPP_Instance. IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPInstance_DidCreate, diff --git a/ppapi/proxy/ppb_instance_proxy.cc b/ppapi/proxy/ppb_instance_proxy.cc index 61ddab4..08a744b 100644 --- a/ppapi/proxy/ppb_instance_proxy.cc +++ b/ppapi/proxy/ppb_instance_proxy.cc @@ -141,8 +141,6 @@ bool PPB_Instance_Proxy::OnMessageReceived(const IPC::Message& msg) { OnHostMsgRequestInputEvents) IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBInstance_ClearInputEvents, OnHostMsgClearInputEvents) - IPC_MESSAGE_HANDLER(PpapiMsg_PPPInputEvent_HandleInputEvent_ACK, - OnMsgHandleInputEventAck) IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBInstance_LockMouse, OnHostMsgLockMouse) IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBInstance_UnlockMouse, @@ -433,12 +431,6 @@ void PPB_Instance_Proxy::ClearInputEventRequest(PP_Instance instance, API_ID_PPB_INSTANCE, instance, event_classes)); } -void PPB_Instance_Proxy::ClosePendingUserGesture(PP_Instance instance, - PP_TimeTicks timestamp) { - // Not called on the plugin side. - NOTREACHED(); -} - void PPB_Instance_Proxy::ZoomChanged(PP_Instance instance, double factor) { // Not proxied yet. @@ -917,13 +909,6 @@ void PPB_Instance_Proxy::OnHostMsgClearInputEvents(PP_Instance instance, enter.functions()->ClearInputEventRequest(instance, event_classes); } -void PPB_Instance_Proxy::OnMsgHandleInputEventAck(PP_Instance instance, - PP_TimeTicks timestamp) { - EnterInstanceNoLock enter(instance); - if (enter.succeeded()) - enter.functions()->ClosePendingUserGesture(instance, timestamp); -} - void PPB_Instance_Proxy::OnHostMsgPostMessage( PP_Instance instance, SerializedVarReceiveInput message) { diff --git a/ppapi/proxy/ppb_instance_proxy.h b/ppapi/proxy/ppb_instance_proxy.h index dfef702..4d366d6 100644 --- a/ppapi/proxy/ppb_instance_proxy.h +++ b/ppapi/proxy/ppb_instance_proxy.h @@ -9,7 +9,6 @@ #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_completion_callback_factory.h" @@ -79,8 +78,6 @@ 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, @@ -187,8 +184,6 @@ 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); diff --git a/ppapi/proxy/ppp_input_event_proxy.cc b/ppapi/proxy/ppp_input_event_proxy.cc index 746a2ac..aad913b 100644 --- a/ppapi/proxy/ppp_input_event_proxy.cc +++ b/ppapi/proxy/ppp_input_event_proxy.cc @@ -4,12 +4,9 @@ #include "ppapi/proxy/ppp_input_event_proxy.h" -#include <algorithm> - #include "ppapi/c/ppp_input_event.h" #include "ppapi/proxy/host_dispatcher.h" #include "ppapi/proxy/plugin_dispatcher.h" -#include "ppapi/proxy/plugin_resource_tracker.h" #include "ppapi/proxy/ppapi_messages.h" #include "ppapi/shared_impl/ppb_input_event_shared.h" #include "ppapi/thunk/enter.h" @@ -106,7 +103,6 @@ void PPP_InputEvent_Proxy::OnMsgHandleInputEvent(PP_Instance instance, CallWhileUnlocked(ppp_input_event_impl_->HandleInputEvent, instance, resource->pp_resource()); - HandleInputEventAck(instance, data.event_time_stamp); } void PPP_InputEvent_Proxy::OnMsgHandleFilteredInputEvent( @@ -118,19 +114,6 @@ void PPP_InputEvent_Proxy::OnMsgHandleFilteredInputEvent( *result = CallWhileUnlocked(ppp_input_event_impl_->HandleInputEvent, instance, resource->pp_resource()); - HandleInputEventAck(instance, data.event_time_stamp); -} - -void PPP_InputEvent_Proxy::HandleInputEventAck( - PP_Instance instance, PP_TimeTicks timestamp) { - PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(instance); - if (dispatcher) { - // Note that we're sending the message to the host PPB_InstanceProxy. - dispatcher->Send(new PpapiMsg_PPPInputEvent_HandleInputEvent_ACK( - API_ID_PPB_INSTANCE, instance, timestamp)); - } else { - NOTREACHED(); - } } } // namespace proxy diff --git a/ppapi/proxy/ppp_input_event_proxy.h b/ppapi/proxy/ppp_input_event_proxy.h index e326aec..a7cc054 100644 --- a/ppapi/proxy/ppp_input_event_proxy.h +++ b/ppapi/proxy/ppp_input_event_proxy.h @@ -6,7 +6,6 @@ #define PPAPI_PROXY_PPP_INPUT_EVENT_PROXY_H_ #include "ppapi/c/pp_instance.h" -#include "ppapi/c/pp_time.h" #include "ppapi/c/ppp_input_event.h" #include "ppapi/proxy/interface_proxy.h" @@ -34,8 +33,6 @@ class PPP_InputEvent_Proxy : public InterfaceProxy { const ppapi::InputEventData& data, PP_Bool* result); - void HandleInputEventAck(PP_Instance instance, PP_TimeTicks timestamp); - // When this proxy is in the plugin side, this value caches the interface // pointer so we don't have to retrieve it from the dispatcher each time. // In the host, this value is always NULL. diff --git a/ppapi/thunk/ppb_instance_api.h b/ppapi/thunk/ppb_instance_api.h index 5dbc902..7a4ca02 100644 --- a/ppapi/thunk/ppb_instance_api.h +++ b/ppapi/thunk/ppb_instance_api.h @@ -12,7 +12,6 @@ #include "ppapi/c/pp_bool.h" #include "ppapi/c/pp_completion_callback.h" #include "ppapi/c/pp_size.h" -#include "ppapi/c/pp_time.h" #include "ppapi/c/ppb_audio_config.h" #include "ppapi/c/ppb_console.h" #include "ppapi/c/ppb_gamepad.h" @@ -107,8 +106,6 @@ class PPB_Instance_API { uint32_t event_classes) = 0; virtual void ClearInputEventRequest(PP_Instance instance, uint32_t event_classes) = 0; - virtual void ClosePendingUserGesture(PP_Instance instance, - PP_TimeTicks timestamp) = 0; // Messaging. virtual void PostMessage(PP_Instance instance, PP_Var message) = 0; |