"Fossies" - the Fresh Open Source Software Archive

Member "firefox-69.0.1/dom/chrome-webidl/DocumentL10n.webidl" (17 Sep 2019, 1041 Bytes) of package /linux/www/firefox-69.0.1.source.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    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 
    7 /**
    8  * DocumentL10n is a public interface for handling DOM localization.
    9  *
   10  * In it's current form it exposes the DOMLocalization API which
   11  * allows for localization-specific DOM operations on a defined
   12  * localization context, and retrival of formatted localization
   13  * messages out of that context.
   14  *
   15  * The context is created when `<link rel="localization"/>` elements
   16  * are added to the document, and is removed in case all links
   17  * of that type are removed from it.
   18  */
   19 [NoInterfaceObject]
   20 interface DocumentL10n : DOMLocalization {
   21   /**
   22    * A promise which gets resolved when the initial DOM localization resources
   23    * fetching is complete and the initial translation of the DOM is finished.
   24    */
   25   readonly attribute Promise<any> ready;
   26 };