Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
michael@0 | 2 | * |
michael@0 | 3 | * This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | #include "nsISupports.idl" |
michael@0 | 8 | |
michael@0 | 9 | [scriptable, uuid(0d53579c-8f40-4bcf-9b87-61979c09f924)] |
michael@0 | 10 | interface nsIBidiKeyboard : nsISupports |
michael@0 | 11 | { |
michael@0 | 12 | /** |
michael@0 | 13 | * Inspects the installed keyboards and resets the bidi keyboard state |
michael@0 | 14 | */ |
michael@0 | 15 | void reset(); |
michael@0 | 16 | |
michael@0 | 17 | /** |
michael@0 | 18 | * Determines if the current keyboard language is right-to-left |
michael@0 | 19 | * @throws NS_ERROR_FAILURE if no right-to-left keyboards are installed |
michael@0 | 20 | */ |
michael@0 | 21 | boolean isLangRTL(); |
michael@0 | 22 | |
michael@0 | 23 | /** |
michael@0 | 24 | * Determines whether the system has at least one keyboard of each direction |
michael@0 | 25 | * installed. |
michael@0 | 26 | * |
michael@0 | 27 | * @throws NS_ERROR_NOT_IMPLEMENTED if the widget layer does not provide this |
michael@0 | 28 | * information. |
michael@0 | 29 | */ |
michael@0 | 30 | readonly attribute boolean haveBidiKeyboards; |
michael@0 | 31 | }; |
michael@0 | 32 |