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

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

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
« no previous file with comments | « mojo/apps/js/bindings/gl/opaque.h ('k') | mojo/apps/js/bindings/support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/apps/js/bindings/gl/opaque.cc
diff --git a/mojo/apps/js/bindings/gl/opaque.cc b/mojo/apps/js/bindings/gl/opaque.cc
index 8f45f48ae4c833385a7ef9caadb92a8172b27a91..91365f8d37909617f1455b2d0a5a560215e7e304 100644
--- a/mojo/apps/js/bindings/gl/opaque.cc
+++ b/mojo/apps/js/bindings/gl/opaque.cc
@@ -5,7 +5,6 @@
#include "mojo/apps/js/bindings/gl/opaque.h"
#include "gin/object_template_builder.h"
-#include "gin/per_isolate_data.h"
namespace mojo {
namespace js {
@@ -17,18 +16,6 @@ gin::Handle<Opaque> Opaque::Create(v8::Isolate* isolate, GLuint value) {
return gin::CreateHandle(isolate, new Opaque(value));
}
-v8::Handle<v8::ObjectTemplate> Opaque::GetObjectTemplate(v8::Isolate* isolate) {
- gin::PerIsolateData* data = gin::PerIsolateData::From(isolate);
- v8::Local<v8::ObjectTemplate> templ = data->GetObjectTemplate(&kWrapperInfo);
- if (templ.IsEmpty()) {
- templ = gin::ObjectTemplateBuilder(isolate)
- .Build();
- templ->SetInternalFieldCount(gin::kNumberOfInternalFields);
- data->SetObjectTemplate(&kWrapperInfo, templ);
- }
- return templ;
-}
-
Opaque::Opaque(GLuint value) : value_(value) {
}
« no previous file with comments | « mojo/apps/js/bindings/gl/opaque.h ('k') | mojo/apps/js/bindings/support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698