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

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

Issue 10780017: Merge 146513 - Don't close pending user gesture when PluginInstance receives ACKs for input events. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1180/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
===================================================================
--- webkit/plugins/ppapi/ppapi_plugin_instance.cc (revision 146820)
+++ webkit/plugins/ppapi/ppapi_plugin_instance.cc (working copy)
@@ -1682,11 +1682,9 @@
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