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.
5 // The chrome.mojoPrivate API provides access to the mojo modules.
6 namespace mojoPrivate
{
8 // |modules| is an array of the values returned by |dependencies| factories.
9 callback DefineCallback
= void (any
[] modules
);
12 // Defines a AMD module.
13 [nocompile
] static
void define
(
15 optional DOMString
[] dependencies
,
16 DefineCallback factory
);
18 // Returns a promise that will resolve to an asynchronously
20 [nocompile
] static any requireAsync
(DOMString name
);