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

Unified Diff: mojo/apps/js/bindings/gl/opaque.h

Issue 113893005: [gin] Introduce Wrappable::GetObjectTemplate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates 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: mojo/apps/js/bindings/gl/opaque.h
diff --git a/mojo/apps/js/bindings/gl/opaque.h b/mojo/apps/js/bindings/gl/opaque.h
index 10df1348da42b5c1f9b868f5179ec6e0d589eda5..12e932ce3ab0bd8d3da0b134491e5fcc6775ae39 100644
--- a/mojo/apps/js/bindings/gl/opaque.h
+++ b/mojo/apps/js/bindings/gl/opaque.h
@@ -23,12 +23,14 @@ class Opaque : public gin::Wrappable<Opaque> {
static gin::WrapperInfo kWrapperInfo;
static gin::Handle<Opaque> Create(v8::Isolate* isolate, GLuint value);
- static v8::Handle<v8::ObjectTemplate> GetObjectTemplate(v8::Isolate* isolate);
GLuint value() const { return value_; }
void set_value(GLuint val) { value_ = val; }
private:
+ friend class gin::Wrappable<Opaque>;
+ static v8::Local<v8::ObjectTemplate> GetObjectTemplate(v8::Isolate* isolate);
+
Opaque(GLuint value);
GLuint value_;

Powered by Google App Engine
This is Rietveld 408576698