Bug 1885602 - Part 5: Implement navigating to the SUMO help topic from the menu heade...
[gecko.git] / dom / webidl / ExtensionScripting.webidl
blob0bd4ed8235a0c4c634fb8115af8e7685946bd9e7
1 /*
2  *  THIS IS AN AUTOGENERATED FILE.  DO NOT EDIT
3  *
4  *  The content of this file has been generated based on the WebExtensions API
5  *  JSONSchema using the following command:
6  *
7  *  export SCRIPT_DIR="toolkit/components/extensions/webidl-api"
8  *  mach python $SCRIPT_DIR/GenerateWebIDLBindings.py -- scripting
9  *
10  *  More info about generating webidl API bindings for WebExtensions API at:
11  *
12  *  https://firefox-source-docs.mozilla.org/toolkit/components/extensions/webextensions/webidl_bindings.html
13  *
14  *  A short summary of the special setup used by these WebIDL files (meant to aid
15  *  webidl peers reviews and sign-offs) is available in the following section:
16  *
17  *  https://firefox-source-docs.mozilla.org/toolkit/components/extensions/webextensions/webidl_bindings.html#review-process-on-changes-to-webidl-definitions
18  */
20 /* This Source Code Form is subject to the terms of the Mozilla Public
21  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
22  * You can obtain one at http://mozilla.org/MPL/2.0/.
23  *
24  * You are granted a license to use, reproduce and create derivative works of
25  * this document.
26  */
28 // WebIDL definition for the "scripting" WebExtensions API
29 [Exposed=(ServiceWorker), LegacyNoInterfaceObject]
30 interface ExtensionScripting {
31   // API methods.
33   [Throws, WebExtensionStub="NotImplementedAsync"]
34   any executeScript(any injection, optional Function callback);
36   [Throws, WebExtensionStub="Async"]
37   any insertCSS(any injection, optional Function callback);
39   [Throws, WebExtensionStub="Async"]
40   any removeCSS(any injection, optional Function callback);
42   [Throws, WebExtensionStub="Async"]
43   any registerContentScripts(any scripts, optional Function callback);
45   [Throws, WebExtensionStub="AsyncAmbiguous"]
46   any getRegisteredContentScripts(any... args);
48   [Throws, WebExtensionStub="AsyncAmbiguous"]
49   any unregisterContentScripts(any... args);
51   [Throws, WebExtensionStub="Async"]
52   any updateContentScripts(any scripts, optional Function callback);