Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(627)

Unified Diff: webkit/plugins/ppapi/ppapi_plugin_instance.cc

Issue 10736062: Don't close pending user gesture when PluginInstance receives ACKs for input events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppapi_plugin_instance.cc
diff --git a/webkit/plugins/ppapi/ppapi_plugin_instance.cc b/webkit/plugins/ppapi/ppapi_plugin_instance.cc
index 215fa73b795ee0ca6120b6f2f0143e7ce610113b..f8055b95c0b3aabba8546fd428632f6f674565cf 100644
--- a/webkit/plugins/ppapi/ppapi_plugin_instance.cc
+++ b/webkit/plugins/ppapi/ppapi_plugin_instance.cc
@@ -1696,11 +1696,9 @@ void PluginInstance::SimulateImeSetCompositionEvent(
void PluginInstance::ClosePendingUserGesture(PP_Instance instance,
PP_TimeTicks timestamp) {
- // Close the pending user gesture if the plugin had a chance to respond.
- // Don't close the pending user gesture if the timestamps are equal since
- // there may be multiple input events with the same timestamp.
- if (timestamp > pending_user_gesture_)
- pending_user_gesture_ = 0.0;
+ // 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,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698