Line data Source code
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/. */
5 :
6 : #ifndef widget_gtk_CompositorWidgetParent_h
7 : #define widget_gtk_CompositorWidgetParent_h
8 :
9 : #include "X11CompositorWidget.h"
10 : #include "mozilla/widget/PCompositorWidgetParent.h"
11 :
12 : namespace mozilla {
13 : namespace widget {
14 :
15 : class CompositorWidgetParent final
16 : : public PCompositorWidgetParent,
17 : public X11CompositorWidget
18 : {
19 : public:
20 : explicit CompositorWidgetParent(const CompositorWidgetInitData& aInitData,
21 : const layers::CompositorOptions& aOptions);
22 : ~CompositorWidgetParent() override;
23 :
24 0 : void ActorDestroy(ActorDestroyReason aWhy) override { }
25 :
26 : void ObserveVsync(VsyncObserver* aObserver) override;
27 : RefPtr<VsyncObserver> GetVsyncObserver() const override;
28 :
29 : mozilla::ipc::IPCResult RecvNotifyClientSizeChanged(const LayoutDeviceIntSize& aClientSize) override;
30 :
31 : private:
32 : RefPtr<VsyncObserver> mVsyncObserver;
33 : };
34 :
35 : } // namespace widget
36 : } // namespace mozilla
37 :
38 : #endif // widget_gtk_CompositorWidgetParent_h
|