michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: [scriptable, uuid(0d53579c-8f40-4bcf-9b87-61979c09f924)] michael@0: interface nsIBidiKeyboard : nsISupports michael@0: { michael@0: /** michael@0: * Inspects the installed keyboards and resets the bidi keyboard state michael@0: */ michael@0: void reset(); michael@0: michael@0: /** michael@0: * Determines if the current keyboard language is right-to-left michael@0: * @throws NS_ERROR_FAILURE if no right-to-left keyboards are installed michael@0: */ michael@0: boolean isLangRTL(); michael@0: michael@0: /** michael@0: * Determines whether the system has at least one keyboard of each direction michael@0: * installed. michael@0: * michael@0: * @throws NS_ERROR_NOT_IMPLEMENTED if the widget layer does not provide this michael@0: * information. michael@0: */ michael@0: readonly attribute boolean haveBidiKeyboards; michael@0: }; michael@0: