1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:expandtab:shiftwidth=4:tabstop=4:
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 #ifndef __nsClipboardWayland_h_
9 #define __nsClipboardWayland_h_
11 #include "mozilla/Mutex.h"
12 #include "nsClipboard.h"
14 class nsRetrievalContextWayland final
: public nsRetrievalContext
{
16 nsRetrievalContextWayland();
18 ClipboardData
GetClipboardData(const char* aMimeType
,
19 int32_t aWhichClipboard
) override
;
20 mozilla::GUniquePtr
<char> GetClipboardText(int32_t aWhichClipboard
) override
;
21 ClipboardTargets
GetTargetsImpl(int32_t aWhichClipboard
) override
;
24 ClipboardData
WaitForClipboardData(ClipboardDataType
, int32_t aWhichClipboard
,
25 const char* aMimeType
= nullptr);
28 #endif /* __nsClipboardWayland_h_ */