Line data Source code
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 :
12 10 : NS_IMPL_ISUPPORTS(PuppetBidiKeyboard, nsIBidiKeyboard)
13 :
14 2 : PuppetBidiKeyboard::PuppetBidiKeyboard() : nsIBidiKeyboard()
15 : {
16 2 : }
17 :
18 0 : PuppetBidiKeyboard::~PuppetBidiKeyboard()
19 : {
20 0 : }
21 :
22 : NS_IMETHODIMP
23 0 : PuppetBidiKeyboard::Reset()
24 : {
25 0 : return NS_OK;
26 : }
27 :
28 : NS_IMETHODIMP
29 0 : PuppetBidiKeyboard::IsLangRTL(bool* aIsRTL)
30 : {
31 0 : *aIsRTL = mIsLangRTL;
32 0 : return NS_OK;
33 : }
34 :
35 : void
36 2 : PuppetBidiKeyboard::SetBidiKeyboardInfo(bool aIsLangRTL,
37 : bool aHaveBidiKeyboards)
38 : {
39 2 : mIsLangRTL = aIsLangRTL;
40 2 : mHaveBidiKeyboards = aHaveBidiKeyboards;
41 2 : }
42 :
43 : NS_IMETHODIMP
44 0 : PuppetBidiKeyboard::GetHaveBidiKeyboards(bool* aResult)
45 : {
46 0 : *aResult = mHaveBidiKeyboards;
47 0 : return NS_OK;
48 : }
|