tor-browser

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

L10nOverlays.webidl (930B)


      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/. */
      5 
      6 dictionary L10nOverlaysError {
      7  short code;
      8  DOMString translatedElementName;
      9  DOMString sourceElementName;
     10  DOMString l10nName;
     11 };
     12 
     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;
     22 
     23  sequence<L10nOverlaysError>? translateElement(Element element, optional L10nMessage translation = {});
     24 };