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

Unified Diff: content/renderer/pepper/pepper_plugin_instance_impl.h

Issue 21192002: Remove more methods from PluginDelegate. Some I moved the implementationto the callers. For others,… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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
Index: content/renderer/pepper/pepper_plugin_instance_impl.h
===================================================================
--- content/renderer/pepper/pepper_plugin_instance_impl.h (revision 214249)
+++ content/renderer/pepper/pepper_plugin_instance_impl.h (working copy)
@@ -18,6 +18,7 @@
#include "cc/layers/texture_layer_client.h"
#include "content/common/content_export.h"
#include "content/public/renderer/pepper_plugin_instance.h"
+#include "content/renderer/mouse_lock_dispatcher.h"
#include "content/renderer/pepper/plugin_delegate.h"
#include "content/renderer/pepper/ppp_pdf.h"
#include "ppapi/c/dev/pp_cursor_type_dev.h"
@@ -640,6 +641,12 @@
void SetSizeAttributesForFullscreen();
void ResetSizeAttributesAfterFullscreen();
+ bool IsMouseLocked();
+ bool LockMouse();
+ MouseLockDispatcher* GetMouseLockDispatcher();
+ MouseLockDispatcher::LockTarget* GetOrCreateLockTargetAdapter();
+ void UnSetAndDeleteLockTargetAdapter();
+
PluginDelegate* delegate_;
RenderViewImpl* render_view_;
scoped_refptr<PluginModule> module_;
@@ -846,6 +853,8 @@
// Isolate in which this Instance was created when interacting with v8.
v8::Isolate* isolate_;
+ scoped_ptr<MouseLockDispatcher::LockTarget> lock_target_;
+
friend class PpapiPluginInstanceTest;
DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl);
};

Powered by Google App Engine
This is Rietveld 408576698