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

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

Issue 120043008: Add a simple one shot and repeating timer API for Mojo.js. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix win build 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/module.h ('k') | mojo/apps/js/bindings/support.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/apps/js/bindings/gl/module.cc
diff --git a/mojo/apps/js/bindings/gl/module.cc b/mojo/apps/js/bindings/gl/module.cc
index adf5ac3342cb1b1ee093d55c60999df85274c979..2c67ac10c76e5fc67af2ef6f35526f03bc256123 100644
--- a/mojo/apps/js/bindings/gl/module.cc
+++ b/mojo/apps/js/bindings/gl/module.cc
@@ -31,7 +31,7 @@ gin::Handle<Context> CreateContext(const gin::Arguments& args, uint64_t encoded,
} // namespace
-v8::Local<v8::ObjectTemplate> GetModuleTemplate(v8::Isolate* isolate) {
+v8::Local<v8::Value> GetModule(v8::Isolate* isolate) {
gin::PerIsolateData* data = gin::PerIsolateData::From(isolate);
v8::Local<v8::ObjectTemplate> templ = data->GetObjectTemplate(&kWrapperInfo);
@@ -42,7 +42,7 @@ v8::Local<v8::ObjectTemplate> GetModuleTemplate(v8::Isolate* isolate) {
data->SetObjectTemplate(&kWrapperInfo, templ);
}
- return templ;
+ return templ->NewInstance();
}
} // namespace gl
« no previous file with comments | « mojo/apps/js/bindings/gl/module.h ('k') | mojo/apps/js/bindings/support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698