2006-10-31 13:13:17 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
2012-05-21 15:12:37 +04:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2006-10-31 13:13:17 +03:00
|
|
|
|
|
|
|
#include "nsBidiKeyboard.h"
|
2009-10-16 13:12:09 +04:00
|
|
|
#include "nsCocoaUtils.h"
|
2011-05-08 14:19:15 +04:00
|
|
|
#include "TextInputHandler.h"
|
|
|
|
|
2013-01-15 16:22:03 +04:00
|
|
|
// This must be the last include:
|
|
|
|
#include "nsObjCExceptions.h"
|
|
|
|
|
2011-05-08 14:19:15 +04:00
|
|
|
using namespace mozilla::widget;
|
2007-01-18 09:34:07 +03:00
|
|
|
|
2006-10-31 13:13:17 +03:00
|
|
|
NS_IMPL_ISUPPORTS1(nsBidiKeyboard, nsIBidiKeyboard)
|
|
|
|
|
|
|
|
nsBidiKeyboard::nsBidiKeyboard() : nsIBidiKeyboard()
|
|
|
|
{
|
2013-07-10 11:57:33 +04:00
|
|
|
Reset();
|
2006-10-31 13:13:17 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
nsBidiKeyboard::~nsBidiKeyboard()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2013-07-10 11:57:33 +04:00
|
|
|
NS_IMETHODIMP nsBidiKeyboard::Reset()
|
|
|
|
{
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
2011-09-29 10:19:26 +04:00
|
|
|
NS_IMETHODIMP nsBidiKeyboard::IsLangRTL(bool *aIsRTL)
|
2006-10-31 13:13:17 +03:00
|
|
|
{
|
2012-10-16 05:43:50 +04:00
|
|
|
*aIsRTL = TISInputSourceWrapper::CurrentInputSource().IsForRTLLanguage();
|
2009-10-16 13:12:09 +04:00
|
|
|
return NS_OK;
|
2006-10-31 13:13:17 +03:00
|
|
|
}
|
|
|
|
|
2011-09-29 10:19:26 +04:00
|
|
|
NS_IMETHODIMP nsBidiKeyboard::GetHaveBidiKeyboards(bool* aResult)
|
2011-09-15 18:54:50 +04:00
|
|
|
{
|
|
|
|
// not implemented yet
|
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|