Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/widget/headless/HeadlessClipboardData.h
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
#ifndef mozilla_widget_HeadlessClipboardData_h
6
#define mozilla_widget_HeadlessClipboardData_h
7
8
#include "mozilla/RefPtr.h"
9
#include "nsString.h"
10
11
namespace mozilla {
12
namespace widget {
13
14
class HeadlessClipboardData final
15
{
16
public:
17
0
  explicit HeadlessClipboardData() = default;
18
0
  ~HeadlessClipboardData() = default;
19
20
  // For text/plain
21
  void SetText(const nsAString &aText);
22
  bool HasText() const;
23
  const nsAString& GetText() const;
24
25
  // For other APIs
26
  void Clear();
27
28
private:
29
  nsAutoString mPlain;
30
};
31
32
} // namespace widget
33
} // namespace mozilla
34
35
#endif // mozilla_widget_HeadlessClipboardData_h