tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

ExtensionEventManager.webidl (1288B)


      1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
      4 * You can obtain one at http://mozilla.org/MPL/2.0/.
      5 *
      6 * You are granted a license to use, reproduce and create derivative works of
      7 * this document.
      8 *
      9 * This IDL file is related to the WebExtensions API object.
     10 *
     11 * More info about generating webidl API bindings for WebExtensions API at:
     12 *
     13 * https://firefox-source-docs.mozilla.org/toolkit/components/extensions/webextensions/webidl_bindings.html
     14 *
     15 * A short summary of the special setup used by these WebIDL files (meant to aid
     16 * webidl peers reviews and sign-offs) is available in the following section:
     17 *
     18 * https://firefox-source-docs.mozilla.org/toolkit/components/extensions/webextensions/webidl_bindings.html#review-process-on-changes-to-webidl-definitions
     19 */
     20 
     21 [Exposed=(ServiceWorker), LegacyNoInterfaceObject]
     22 interface ExtensionEventManager {
     23  [Throws]
     24  undefined addListener(Function callback, optional object listenerOptions);
     25 
     26  [Throws]
     27  undefined removeListener(Function callback);
     28 
     29  [Throws]
     30  boolean hasListener(Function callback);
     31 
     32  [Throws]
     33  boolean hasListeners();
     34 };