Bug 1842773 - Part 34: Enable test262 tests. r=sfink
[gecko.git] / widget / gtk / WindowSurfaceX11.h
blobdda17bf0d009a8b77df309c9c4cf3ff790e3c6cd
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef _MOZILLA_WIDGET_GTK_WINDOW_SURFACE_X11_H
8 #define _MOZILLA_WIDGET_GTK_WINDOW_SURFACE_X11_H
10 #ifdef MOZ_X11
12 # include "mozilla/widget/WindowSurface.h"
13 # include "mozilla/gfx/Types.h"
15 # include <X11/Xlib.h>
16 # include "X11UndefineNone.h"
18 namespace mozilla::widget {
20 class WindowSurfaceX11 : public WindowSurface {
21 public:
22 WindowSurfaceX11(Display* aDisplay, Window aWindow, Visual* aVisual,
23 unsigned int aDepth);
25 protected:
26 static gfx::SurfaceFormat GetVisualFormat(const Visual* aVisual,
27 unsigned int aDepth);
29 Display* const mDisplay;
30 const Window mWindow;
31 Visual* const mVisual;
32 const unsigned int mDepth;
33 const gfx::SurfaceFormat mFormat;
36 } // namespace mozilla::widget
38 #endif // MOZ_X11
39 #endif // _MOZILLA_WIDGET_GTK_WINDOW_SURFACE_X11_H