gecko-dev/dom/chrome-webidl/DocumentL10n.webidl
Zibi Braniecki fdd3cb9cbd Bug 1552714 - Move DocumentL10n to dom/l10n. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D32957

--HG--
rename : dom/webidl/DocumentL10n.webidl => dom/chrome-webidl/DocumentL10n.webidl
rename : intl/l10n/DocumentL10n.cpp => dom/l10n/DocumentL10n.cpp
rename : intl/l10n/DocumentL10n.h => dom/l10n/DocumentL10n.h
extra : moz-landing-system : lando
2019-06-06 16:31:44 +00:00

27 lines
1.0 KiB
Plaintext

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/**
* DocumentL10n is a public interface for handling DOM localization.
*
* In it's current form it exposes the DOMLocalization API which
* allows for localization-specific DOM operations on a defined
* localization context, and retrival of formatted localization
* messages out of that context.
*
* The context is created when `<link rel="localization"/>` elements
* are added to the document, and is removed in case all links
* of that type are removed from it.
*/
[NoInterfaceObject]
interface DocumentL10n : DOMLocalization {
/**
* A promise which gets resolved when the initial DOM localization resources
* fetching is complete and the initial translation of the DOM is finished.
*/
readonly attribute Promise<any> ready;
};