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

Unified Diff: mojo/apps/js/mojo_bridge_module.h

Issue 637373002: Mojo JS bindings: simplify mojo.connectToService() usage - Part 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed the mojo_internals module, made Connection localFactory optional Created 6 years, 2 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
« no previous file with comments | « mojo/apps/js/mojo.js ('k') | mojo/apps/js/mojo_bridge_module.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/apps/js/mojo_bridge_module.h
diff --git a/mojo/apps/js/mojo_module.h b/mojo/apps/js/mojo_bridge_module.h
similarity index 76%
rename from mojo/apps/js/mojo_module.h
rename to mojo/apps/js/mojo_bridge_module.h
index cb4a73a34bf5e7cb49c19d08256b9f2018f13339..e3d95f3071de70d4f28d4ae0158056e68e783cde 100644
--- a/mojo/apps/js/mojo_module.h
+++ b/mojo/apps/js/mojo_bridge_module.h
@@ -13,7 +13,10 @@ namespace apps {
class JSApp;
-class Mojo {
+// The JavaScript "mojo/apps/js/mojo" module depends on this built-in module.
+// It provides the bridge between the JSApp class and JavaScript.
+
+class MojoInternals {
public:
static const char kModuleName[];
static v8::Local<v8::Value> GetModule(JSApp* js_app, v8::Isolate* isolate);
« no previous file with comments | « mojo/apps/js/mojo.js ('k') | mojo/apps/js/mojo_bridge_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698