1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef WidgetUtilsGtk_h__
7 #define WidgetUtilsGtk_h__
15 namespace mozilla::widget
{
17 class WidgetUtilsGTK
{
19 /* See WidgetUtils::IsTouchDeviceSupportPresent(). */
20 static int32_t IsTouchDeviceSupportPresent();
23 bool IsMainWindowTransparent();
25 bool GdkIsWaylandDisplay(GdkDisplay
* display
);
26 bool GdkIsX11Display(GdkDisplay
* display
);
28 bool GdkIsWaylandDisplay();
29 bool GdkIsX11Display();
31 // Parse text/uri-list
32 nsTArray
<nsCString
> ParseTextURIList(const nsACString
& data
);
34 } // namespace mozilla::widget
36 #endif // WidgetUtilsGtk_h__