nsIBidiKeyboard.idl 967 B

123456789101112131415161718192021222324252627282930313233
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2. *
  3. * This Source Code Form is subject to the terms of the Mozilla Public
  4. * License, v. 2.0. If a copy of the MPL was not distributed with this
  5. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  6. #include "nsISupports.idl"
  7. [builtinclass, scriptable, uuid(288dae24-76e2-43a3-befe-9d9fabe8014e)]
  8. interface nsIBidiKeyboard : nsISupports
  9. {
  10. /**
  11. * Inspects the installed keyboards and resets the bidi keyboard state
  12. */
  13. void reset();
  14. /**
  15. * Determines if the current keyboard language is right-to-left
  16. * @throws NS_ERROR_FAILURE if no right-to-left keyboards are installed
  17. */
  18. boolean isLangRTL();
  19. /**
  20. * Determines whether the system has at least one keyboard of each direction
  21. * installed.
  22. *
  23. * @throws NS_ERROR_NOT_IMPLEMENTED if the widget layer does not provide this
  24. * information.
  25. */
  26. readonly attribute boolean haveBidiKeyboards;
  27. };