Backed out changeset 2450366cf7ca (bug 1891629) for causing win msix mochitest failures
[gecko.git] / dom / chrome-webidl / L10nOverlays.webidl
blobafe96cc58b216d329f502caa67c35573b96314da
1 /* -*- Mode: C++; 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
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 dictionary L10nOverlaysError {
7   short code;
8   DOMString translatedElementName;
9   DOMString sourceElementName;
10   DOMString l10nName;
13 [ChromeOnly,
14  Exposed=Window]
15 namespace L10nOverlays {
16   const unsigned short ERROR_UNKNOWN = 1;
17   const unsigned short ERROR_FORBIDDEN_TYPE = 2;
18   const unsigned short ERROR_NAMED_ELEMENT_MISSING = 3;
19   const unsigned short ERROR_NAMED_ELEMENT_TYPE_MISMATCH = 4;
20   const unsigned short ERROR_TRANSLATED_ELEMENT_DISCONNECTED = 5;
21   const unsigned short ERROR_TRANSLATED_ELEMENT_DISALLOWED_DOM = 6;
23   sequence<L10nOverlaysError>? translateElement(Element element, optional L10nMessage translation = {});