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

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

Issue 7863003: Mouse lock implementation, including the renderer side and the Windows version of the browser side. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 3 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 | « webkit/plugins/ppapi/plugin_delegate.h ('k') | 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 2e099c08992d70f6a79721ac7ab5390fb194e712..2696ab74f2e17ee0e6436e609559b0e2f45a071d 100644
--- a/webkit/plugins/ppapi/ppapi_plugin_instance.cc
+++ b/webkit/plugins/ppapi/ppapi_plugin_instance.cc
@@ -1584,20 +1584,15 @@ int32_t PluginInstance::LockMouse(PP_Instance instance,
if (lock_mouse_callback_.func)
return PP_ERROR_INPROGRESS;
- // TODO(yzshen): Uncomment the following lines after adding implementation in
- // the delegate.
- // lock_mouse_callback_ = callback;
+ lock_mouse_callback_ = callback;
// We will be notified on completion via OnLockMouseACK(), either
// synchronously or asynchronously.
- // delegate()->LockMouse(this);
- // return PP_OK_COMPLETIONPENDING;
- return PP_ERROR_FAILED;
+ delegate()->LockMouse(this);
+ return PP_OK_COMPLETIONPENDING;
}
void PluginInstance::UnlockMouse(PP_Instance instance) {
- // TODO(yzshen): Uncomment the following after adding implementation in the
- // delegate.
- // delegate()->UnlockMouse(this);
+ delegate()->UnlockMouse(this);
}
void PluginInstance::SubscribeToPolicyUpdates(PP_Instance instance) {
« no previous file with comments | « webkit/plugins/ppapi/plugin_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698