Chromium Code Reviews| 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..d7bbe6f1617b75ffff3b14254f6e0062752765b6 |
| --- /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 callback); |
|
not at google - send to devlin
2015/01/13 21:46:46
You might want to call this "factory", that's the
Sam McNally
2015/01/13 23:48:43
Done.
|
| + }; |
| + |
| +}; |