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

Unified Diff: ppapi/cpp/mouse_lock.h

Issue 9381010: Convert resources to take an instance key instead of an Instance*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: USELESS PATCH TITLE Created 8 years, 10 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 | « ppapi/cpp/module.cc ('k') | ppapi/cpp/mouse_lock.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/mouse_lock.h
diff --git a/ppapi/cpp/mouse_lock.h b/ppapi/cpp/mouse_lock.h
index a943074457ccc794fbef21494876df8cb1693f6d..8c70baadb613e076a53177b1cf951b673a32ee85 100644
--- a/ppapi/cpp/mouse_lock.h
+++ b/ppapi/cpp/mouse_lock.h
@@ -6,6 +6,7 @@
#define PPAPI_CPP_MOUSE_LOCK_H_
#include "ppapi/c/pp_stdint.h"
+#include "ppapi/cpp/instance_handle.h"
/// @file
/// This file defines the API for locking the target of mouse events to a
@@ -14,7 +15,6 @@
namespace pp {
class CompletionCallback;
-class Instance;
/// This class allows you to associate the <code>PPP_MouseLock</code> and
/// <code>PPB_MouseLock</code> C-based interfaces with an object. It associates
@@ -50,9 +50,9 @@ class MouseLock {
public:
/// A constructor for creating a <code>MouseLock</code>.
///
- /// @param[in] instance The instance that will own the new
- /// <code>MouseLock</code>.
- explicit MouseLock(Instance* instance);
+ /// @param[in] instance The instance with which this resource will be
+ /// associated.
+ explicit MouseLock(const InstanceHandle& instance);
/// Destructor.
virtual ~MouseLock();
@@ -90,7 +90,7 @@ class MouseLock {
void UnlockMouse();
private:
- Instance* associated_instance_;
+ InstanceHandle associated_instance_;
};
} // namespace pp
« no previous file with comments | « ppapi/cpp/module.cc ('k') | ppapi/cpp/mouse_lock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698