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 {
8 DOMString translatedElementName;
9 DOMString sourceElementName;
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 = {});