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 __nsClipboardX11_h_
9 #define __nsClipboardX11_h_
13 #include "mozilla/Maybe.h"
14 #include "nsClipboard.h"
16 class nsRetrievalContextX11
: public nsRetrievalContext
{
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
;
23 nsRetrievalContextX11();
26 // Spins X event loop until timing out or being completed.
27 ClipboardData
WaitForClipboardData(ClipboardDataType aDataType
,
28 int32_t aWhichClipboard
,
29 const char* aMimeType
= nullptr);
32 #endif /* __nsClipboardX11_h_ */