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/. */
5 #ifndef mozilla_widget_HeadlessClipboardData_h
6 #define mozilla_widget_HeadlessClipboardData_h
8 #include "mozilla/RefPtr.h"
14 class HeadlessClipboardData final
{
16 HeadlessClipboardData() : mPlain(VoidString()), mHTML(VoidString()) {}
17 ~HeadlessClipboardData() = default;
20 void SetText(const nsAString
& aText
);
22 const nsAString
& GetText() const;
25 void SetHTML(const nsAString
& aHTML
);
27 const nsAString
& GetHTML() const;
29 int32_t GetChangeCount() const;
38 int32_t mChangeCount
= 0;
42 } // namespace mozilla
44 #endif // mozilla_widget_HeadlessClipboardData_h