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

Unified Diff: extensions/common/api/mojo_private.idl

Issue 649003003: Add a mojoPrivate API that exposes mojo to component apps/extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@serial-service
Patch Set: Created 5 years, 11 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
Index: extensions/common/api/mojo_private.idl
diff --git a/extensions/common/api/mojo_private.idl b/extensions/common/api/mojo_private.idl
new file mode 100644
index 0000000000000000000000000000000000000000..083ce638e2ca557e6332393821df9c5d0df8eac6
--- /dev/null
+++ b/extensions/common/api/mojo_private.idl
@@ -0,0 +1,19 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// The chrome.mojoPrivate API provides access to the mojo modules.
+namespace mojoPrivate {
+
+ // |modules| is an array of the values returned by |dependencies| factories.
+ callback DefineCallback = void (any[] modules);
+
+ interface Functions {
+ // Defines a AMD module.
+ [nocompile] static void define(
+ DOMString moduleName,
+ optional DOMString[] dependencies,
+ DefineCallback factory);
+ };
+
+};

Powered by Google App Engine
This is Rietveld 408576698