1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
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/. */
8 #include "PuppetBidiKeyboard.h"
11 using namespace mozilla::widget
;
13 NS_IMPL_ISUPPORTS(PuppetBidiKeyboard
, nsIBidiKeyboard
)
15 PuppetBidiKeyboard::PuppetBidiKeyboard()
16 : nsIBidiKeyboard(), mIsLangRTL(false), mHaveBidiKeyboards(false) {}
18 PuppetBidiKeyboard::~PuppetBidiKeyboard() = default;
21 PuppetBidiKeyboard::Reset() { return NS_OK
; }
24 PuppetBidiKeyboard::IsLangRTL(bool* aIsRTL
) {
29 void PuppetBidiKeyboard::SetBidiKeyboardInfo(bool aIsLangRTL
,
30 bool aHaveBidiKeyboards
) {
31 mIsLangRTL
= aIsLangRTL
;
32 mHaveBidiKeyboards
= aHaveBidiKeyboards
;
36 PuppetBidiKeyboard::GetHaveBidiKeyboards(bool* aResult
) {
37 *aResult
= mHaveBidiKeyboards
;
42 already_AddRefed
<nsIBidiKeyboard
>
43 nsIWidget::CreateBidiKeyboardContentProcess() {
44 return do_AddRef(new PuppetBidiKeyboard());