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

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: Remove two tab chars. 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
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 b18df2c3d8f05c7a8d126a400978df8bc4d22047..27307fa8b1e78d9d0582167d80d5cd06fac35b98 100644
--- a/webkit/plugins/ppapi/ppapi_plugin_instance.cc
+++ b/webkit/plugins/ppapi/ppapi_plugin_instance.cc
@@ -1520,20 +1520,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) {
« webkit/plugins/ppapi/plugin_delegate.h ('K') | « webkit/plugins/ppapi/plugin_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698