2006-10-31 10:13:17 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
2012-05-21 11:12:37 +00: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 10:13:17 +00:00
|
|
|
|
|
|
|
#include "nsBidiKeyboard.h"
|
2009-10-16 09:12:09 +00:00
|
|
|
#include "nsCocoaUtils.h"
|
2011-05-08 10:19:15 +00:00
|
|
|
#include "TextInputHandler.h"
|
|
|
|
|
2013-01-15 12:22:03 +00:00
|
|
|
// This must be the last include:
|
|
|
|
#include "nsObjCExceptions.h"
|
|
|
|
|
2011-05-08 10:19:15 +00:00
|
|
|
using namespace mozilla::widget;
|
2007-01-18 06:34:07 +00:00
|
|
|
|
2006-10-31 10:13:17 +00:00
|
|
|
NS_IMPL_ISUPPORTS1(nsBidiKeyboard, nsIBidiKeyboard)
|
|
|
|
|
|
|
|
nsBidiKeyboard::nsBidiKeyboard() : nsIBidiKeyboard()
|
|
|
|
{
|
2013-07-10 07:57:33 +00:00
|
|
|
Reset();
|
2006-10-31 10:13:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
nsBidiKeyboard::~nsBidiKeyboard()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2013-07-10 07:57:33 +00:00
|
|
|
NS_IMETHODIMP nsBidiKeyboard::Reset()
|
|
|
|
{
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
2011-09-29 06:19:26 +00:00
|
|
|
NS_IMETHODIMP nsBidiKeyboard::IsLangRTL(bool *aIsRTL)
|
2006-10-31 10:13:17 +00:00
|
|
|
{
|
2012-10-16 01:43:50 +00:00
|
|
|
*aIsRTL = TISInputSourceWrapper::CurrentInputSource().IsForRTLLanguage();
|
2009-10-16 09:12:09 +00:00
|
|
|
return NS_OK;
|
2006-10-31 10:13:17 +00:00
|
|
|
}
|
|
|
|
|
2011-09-29 06:19:26 +00:00
|
|
|
NS_IMETHODIMP nsBidiKeyboard::GetHaveBidiKeyboards(bool* aResult)
|
2011-09-15 14:54:50 +00:00
|
|
|
{
|
|
|
|
// not implemented yet
|
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|