widget/nsIBidiKeyboard.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/widget/nsIBidiKeyboard.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,32 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.5 + *
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#include "nsISupports.idl"
    1.11 +
    1.12 +[scriptable, uuid(0d53579c-8f40-4bcf-9b87-61979c09f924)]
    1.13 +interface nsIBidiKeyboard : nsISupports
    1.14 +{
    1.15 +  /**
    1.16 +   * Inspects the installed keyboards and resets the bidi keyboard state
    1.17 +   */
    1.18 +  void reset();
    1.19 +
    1.20 +  /**
    1.21 +   * Determines if the current keyboard language is right-to-left
    1.22 +   * @throws NS_ERROR_FAILURE if no right-to-left keyboards are installed
    1.23 +   */
    1.24 +  boolean isLangRTL();
    1.25 +
    1.26 +  /**
    1.27 +   * Determines whether the system has at least one keyboard of each direction
    1.28 +   * installed.
    1.29 +   *
    1.30 +   * @throws NS_ERROR_NOT_IMPLEMENTED if the widget layer does not provide this
    1.31 +   * information.
    1.32 +   */
    1.33 +  readonly attribute boolean haveBidiKeyboards;
    1.34 +};
    1.35 +

mercurial