Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / extensions / common / api / mojo_private.idl
blob7a8ddd0621d7827e5b20f7a0d27482c512be4ce8
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);
11 interface Functions {
12 // Defines a AMD module.
13 [nocompile] static void define(
14 DOMString moduleName,
15 optional DOMString[] dependencies,
16 DefineCallback factory);
18 // Returns a promise that will resolve to an asynchronously
19 // loaded module.
20 [nocompile] static any requireAsync(DOMString name);