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

Unified Diff: ppapi/cpp/fullscreen.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: Comments 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
Index: ppapi/cpp/fullscreen.h
diff --git a/ppapi/cpp/fullscreen.h b/ppapi/cpp/fullscreen.h
index 55922dd78c5a558ae773bc835e9827e64706c2fe..c61dd80e5f591f9306060a490b3fb71a9f7e0779 100644
--- a/ppapi/cpp/fullscreen.h
+++ b/ppapi/cpp/fullscreen.h
@@ -5,13 +5,14 @@
#ifndef PPAPI_CPP_FULLSCREEN_H_
#define PPAPI_CPP_FULLSCREEN_H_
+#include "ppapi/cpp/instance_handle.h"
+
/// @file
/// This file defines the API for handling transitions of a module instance to
/// and from fullscreen mode.
namespace pp {
-class Instance;
class Size;
/// The Fullscreen class allowing you to check and toggle fullscreen mode.
@@ -19,9 +20,9 @@ class Fullscreen {
public:
/// A constructor for creating a <code>Fullscreen</code>.
///
- /// @param[in] instance The instance that will own the new
- /// <code>Fullscreen</code>.
- Fullscreen(Instance* instance);
+ /// @param[in] instance The instance with which this resource will be
+ /// associated.
+ Fullscreen(const InstanceHandle& instance);
dmichael (off chromium) 2012/02/22 21:38:44 explicit
/// Destructor.
virtual ~Fullscreen();
@@ -63,7 +64,7 @@ class Fullscreen {
bool GetScreenSize(Size* size);
private:
- Instance* instance_;
+ InstanceHandle instance_;
};
} // namespace pp

Powered by Google App Engine
This is Rietveld 408576698