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 8 #include "PuppetBidiKeyboard.h" 9 10 using namespace mozilla::widget; 11 NS_IMPL_ISUPPORTS(PuppetBidiKeyboard,nsIBidiKeyboard)12NS_IMPL_ISUPPORTS(PuppetBidiKeyboard, nsIBidiKeyboard) 13 14 PuppetBidiKeyboard::PuppetBidiKeyboard() : nsIBidiKeyboard() 15 { 16 } 17 ~PuppetBidiKeyboard()18PuppetBidiKeyboard::~PuppetBidiKeyboard() 19 { 20 } 21 22 NS_IMETHODIMP Reset()23PuppetBidiKeyboard::Reset() 24 { 25 return NS_OK; 26 } 27 28 NS_IMETHODIMP IsLangRTL(bool * aIsRTL)29PuppetBidiKeyboard::IsLangRTL(bool* aIsRTL) 30 { 31 *aIsRTL = mIsLangRTL; 32 return NS_OK; 33 } 34 35 void SetBidiKeyboardInfo(bool aIsLangRTL,bool aHaveBidiKeyboards)36PuppetBidiKeyboard::SetBidiKeyboardInfo(bool aIsLangRTL, 37 bool aHaveBidiKeyboards) 38 { 39 mIsLangRTL = aIsLangRTL; 40 mHaveBidiKeyboards = aHaveBidiKeyboards; 41 } 42 43 NS_IMETHODIMP GetHaveBidiKeyboards(bool * aResult)44PuppetBidiKeyboard::GetHaveBidiKeyboards(bool* aResult) 45 { 46 *aResult = mHaveBidiKeyboards; 47 return NS_OK; 48 } 49