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

Unified Diff: gin/wrappable.h

Issue 111083005: Beginning of JS Mojo API to GL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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: gin/wrappable.h
diff --git a/gin/wrappable.h b/gin/wrappable.h
index 3f9ebe3c19697ad9391e98bbddbdc18ae2839ffd..ffa7a33df876ab778cff091e7c08194cbdd400d4 100644
--- a/gin/wrappable.h
+++ b/gin/wrappable.h
@@ -63,13 +63,11 @@ class WrappableBase {
template<typename T>
class Wrappable : public WrappableBase {
public:
- static WrapperInfo kWrapperInfo;
-
// Retrieve (or create) the v8 wrapper object cooresponding to this object.
// To customize the wrapper created for a subclass, override GetWrapperInfo()
// instead of overriding this function.
v8::Handle<v8::Object> GetWrapper(v8::Isolate* isolate) {
- return GetWrapperImpl(isolate, &kWrapperInfo);
+ return GetWrapperImpl(isolate, &T::kWrapperInfo);
}
protected:
@@ -79,13 +77,6 @@ class Wrappable : public WrappableBase {
};
-// Subclasses of Wrappable must call this within a cc file to initialize their
-// WrapperInfo.
-#define INIT_WRAPPABLE(TYPE) \
-template<> \
-gin::WrapperInfo gin::Wrappable<TYPE>::kWrapperInfo = { kEmbedderNativeGin };
-
-
// This converter handles any subclass of Wrappable.
template<typename T>
struct Converter<T*, typename base::enable_if<
« gin/function_template.h ('K') | « gin/handle.h ('k') | mojo/apps/js/bindings/gl/context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698