Bug 1734943 [wpt PR 31170] - Correct scrolling contents cull rect, a=testonly
[gecko.git] / widget / gtk / WidgetUtilsGtk.h
blobec64366e1628f57d442ee4cfc6c29c1a7a9a9fd9
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__
9 #include "nsString.h"
10 #include "nsTArray.h"
12 #include <stdint.h>
13 #include <gdk/gdk.h>
15 namespace mozilla::widget {
17 class WidgetUtilsGTK {
18 public:
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__