Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/widget/headless/HeadlessClipboardData.cpp
Line
Count
Source (jump to first uncovered line)
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
 * License, v. 2.0. If a copy of the MPL was not distributed with this
3
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5
#include "HeadlessClipboardData.h"
6
7
namespace mozilla {
8
namespace widget {
9
10
void
11
HeadlessClipboardData::SetText(const nsAString &aText)
12
0
{
13
0
  mPlain = aText;
14
0
}
15
16
bool
17
HeadlessClipboardData::HasText() const
18
0
{
19
0
  return !mPlain.IsEmpty();
20
0
}
21
22
const nsAString&
23
HeadlessClipboardData::GetText() const
24
0
{
25
0
  return mPlain;
26
0
}
27
28
void
29
HeadlessClipboardData::Clear()
30
0
{
31
0
  mPlain.Truncate(0);
32
0
}
33
34
} // namespace widget
35
} // namespace mozilla