Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/widget/PuppetBidiKeyboard.cpp
Line
Count
Source (jump to first uncovered line)
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
#include "nsIWidget.h"
10
11
using namespace mozilla::widget;
12
13
NS_IMPL_ISUPPORTS(PuppetBidiKeyboard, nsIBidiKeyboard)
14
15
PuppetBidiKeyboard::PuppetBidiKeyboard()
16
  : nsIBidiKeyboard()
17
  , mIsLangRTL(false)
18
  , mHaveBidiKeyboards(false)
19
0
{
20
0
}
21
22
PuppetBidiKeyboard::~PuppetBidiKeyboard()
23
0
{
24
0
}
25
26
NS_IMETHODIMP
27
PuppetBidiKeyboard::Reset()
28
0
{
29
0
  return NS_OK;
30
0
}
31
32
NS_IMETHODIMP
33
PuppetBidiKeyboard::IsLangRTL(bool* aIsRTL)
34
0
{
35
0
  *aIsRTL = mIsLangRTL;
36
0
  return NS_OK;
37
0
}
38
39
void
40
PuppetBidiKeyboard::SetBidiKeyboardInfo(bool aIsLangRTL,
41
                                        bool aHaveBidiKeyboards)
42
0
{
43
0
  mIsLangRTL = aIsLangRTL;
44
0
  mHaveBidiKeyboards = aHaveBidiKeyboards;
45
0
}
46
47
NS_IMETHODIMP
48
PuppetBidiKeyboard::GetHaveBidiKeyboards(bool* aResult)
49
0
{
50
0
  *aResult = mHaveBidiKeyboards;
51
0
  return NS_OK;
52
0
}
53
54
// static
55
already_AddRefed<nsIBidiKeyboard>
56
nsIWidget::CreateBidiKeyboardContentProcess()
57
0
{
58
0
  return do_AddRef(new PuppetBidiKeyboard());
59
0
}