OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // The chrome.mojoPrivate API provides access to the mojo modules. | |
6 namespace mojoPrivate { | |
7 | |
8 // |modules| is an array of the values returned by |dependencies| factories. | |
9 callback DefineCallback = void (any[] modules); | |
10 | |
11 interface Functions { | |
12 // Defines a AMD module. | |
13 [nocompile] static void define( | |
14 DOMString moduleName, | |
15 optional DOMString[] dependencies, | |
16 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.
| |
17 }; | |
18 | |
19 }; | |
OLD | NEW |