Bug 1869043 assert that graph set access is main thread only r=padenot
[gecko.git] / widget / gtk / nsClipboardX11.h
blobc143222d3a8b6b9772ee9e1d09c5ad5a18006e3a
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:expandtab:shiftwidth=4:tabstop=4:
3 */
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_
11 #include <gtk/gtk.h>
13 #include "mozilla/Maybe.h"
14 #include "nsClipboard.h"
16 class nsRetrievalContextX11 : public nsRetrievalContext {
17 public:
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();
25 private:
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_ */