Bug 1449132 [wpt PR 10194] - [css-grid] Fix resolution of percentage paddings and...
[gecko.git] / widget / gtk / CompositorWidgetChild.h
blob9041c8c09de910079ba00fd94b8525c8ca597e56
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 widget_gtk_CompositorWidgetChild_h
7 #define widget_gtk_CompositorWidgetChild_h
9 #include "GtkCompositorWidget.h"
10 #include "mozilla/widget/PCompositorWidgetChild.h"
11 #include "mozilla/widget/CompositorWidgetVsyncObserver.h"
13 namespace mozilla {
14 namespace widget {
16 class CompositorWidgetChild final
17 : public PCompositorWidgetChild
18 , public PlatformCompositorWidgetDelegate
20 public:
21 CompositorWidgetChild(RefPtr<CompositorVsyncDispatcher> aVsyncDispatcher,
22 RefPtr<CompositorWidgetVsyncObserver> aVsyncObserver);
23 ~CompositorWidgetChild() override;
25 mozilla::ipc::IPCResult RecvObserveVsync() override;
26 mozilla::ipc::IPCResult RecvUnobserveVsync() override;
28 void NotifyClientSizeChanged(const LayoutDeviceIntSize& aClientSize) override;
30 private:
31 RefPtr<CompositorVsyncDispatcher> mVsyncDispatcher;
32 RefPtr<CompositorWidgetVsyncObserver> mVsyncObserver;
35 } // namespace widget
36 } // namespace mozilla
38 #endif // widget_gtk_CompositorWidgetChild_h