gecko-dev/intl/l10n/mozIDOMLocalization.idl
Zibi Braniecki 2ca5d37f91 Bug 1455649 - DocumentL10n, part 0 - Add eager parameter to mozDOMLocalization::AddResources to trigger I/O early. r=mossop
Reviewers: mossop

Reviewed By: mossop

Bug #: 1455649

Differential Revision: https://phabricator.services.mozilla.com/D5093

--HG--
extra : rebase_source : 82de0c5b28ddedb9f589e47f46b9eafe379a4fa1
2018-09-06 18:19:26 -07:00

28 lines
979 B
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/. */
#include "nsISupports.idl"
webidl Document;
webidl Element;
[scriptable, uuid(7c468500-541f-4fe0-98c9-92a53b63ec8d)]
interface mozIDOMLocalization : nsISupports
{
unsigned long addResourceIds(in Array<AString> resourceIds, in bool aEager);
unsigned long removeResourceIds(in Array<AString> resourceIds);
Promise formatMessages(in Array<jsval> aKeys);
Promise formatValues(in Array<jsval> aKeys);
Promise formatValue(in DOMString aId, [optional] in jsval aArgs);
Promise translateFragment(in Element aElement);
Promise translateElements(in Array<Element> aElements);
void connectRoot(in Element aElement);
Promise translateRoots();
readonly attribute Promise ready;
};