PuppetBidiKeyboard.cpp 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2. * vim: sw=2 ts=8 et :
  3. */
  4. /* This Source Code Form is subject to the terms of the Mozilla Public
  5. * License, v. 2.0. If a copy of the MPL was not distributed with this
  6. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  7. #include "PuppetBidiKeyboard.h"
  8. using namespace mozilla::widget;
  9. NS_IMPL_ISUPPORTS(PuppetBidiKeyboard, nsIBidiKeyboard)
  10. PuppetBidiKeyboard::PuppetBidiKeyboard() : nsIBidiKeyboard()
  11. {
  12. }
  13. PuppetBidiKeyboard::~PuppetBidiKeyboard()
  14. {
  15. }
  16. NS_IMETHODIMP
  17. PuppetBidiKeyboard::Reset()
  18. {
  19. return NS_OK;
  20. }
  21. NS_IMETHODIMP
  22. PuppetBidiKeyboard::IsLangRTL(bool* aIsRTL)
  23. {
  24. *aIsRTL = mIsLangRTL;
  25. return NS_OK;
  26. }
  27. void
  28. PuppetBidiKeyboard::SetBidiKeyboardInfo(bool aIsLangRTL,
  29. bool aHaveBidiKeyboards)
  30. {
  31. mIsLangRTL = aIsLangRTL;
  32. mHaveBidiKeyboards = aHaveBidiKeyboards;
  33. }
  34. NS_IMETHODIMP
  35. PuppetBidiKeyboard::GetHaveBidiKeyboards(bool* aResult)
  36. {
  37. *aResult = mHaveBidiKeyboards;
  38. return NS_OK;
  39. }