2016-07-01 11:15:16 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2018-03-23 16:40:04 +03:00
|
|
|
#ifndef widget_windows_CompositorWidgetParent_h
|
|
|
|
#define widget_windows_CompositorWidgetParent_h
|
2016-07-01 11:15:16 +03:00
|
|
|
|
|
|
|
#include "WinCompositorWidget.h"
|
|
|
|
#include "mozilla/widget/PCompositorWidgetParent.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace widget {
|
|
|
|
|
|
|
|
class CompositorWidgetParent final : public PCompositorWidgetParent,
|
|
|
|
public WinCompositorWidget {
|
|
|
|
public:
|
2017-01-13 01:29:42 +03:00
|
|
|
explicit CompositorWidgetParent(const CompositorWidgetInitData& aInitData,
|
|
|
|
const layers::CompositorOptions& aOptions);
|
2016-07-01 11:15:16 +03:00
|
|
|
~CompositorWidgetParent() override;
|
|
|
|
|
2016-11-15 06:26:00 +03:00
|
|
|
mozilla::ipc::IPCResult RecvEnterPresentLock() override;
|
|
|
|
mozilla::ipc::IPCResult RecvLeavePresentLock() override;
|
2018-04-06 06:24:28 +03:00
|
|
|
mozilla::ipc::IPCResult RecvUpdateTransparency(
|
|
|
|
const nsTransparencyMode& aMode) override;
|
2016-11-15 06:26:00 +03:00
|
|
|
mozilla::ipc::IPCResult RecvClearTransparentWindow() override;
|
2016-07-01 11:15:16 +03:00
|
|
|
void ActorDestroy(ActorDestroyReason aWhy) override;
|
2016-07-19 21:56:07 +03:00
|
|
|
|
|
|
|
nsIWidget* RealWidget() override;
|
|
|
|
void ObserveVsync(VsyncObserver* aObserver) override;
|
|
|
|
RefPtr<VsyncObserver> GetVsyncObserver() const override;
|
|
|
|
|
2019-02-07 10:01:41 +03:00
|
|
|
// PlatformCompositorWidgetDelegate Overrides
|
|
|
|
void UpdateCompositorWnd(const HWND aCompositorWnd,
|
|
|
|
const HWND aParentWnd) override;
|
|
|
|
|
2016-07-19 21:56:07 +03:00
|
|
|
private:
|
|
|
|
RefPtr<VsyncObserver> mVsyncObserver;
|
2016-07-01 11:15:16 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace widget
|
|
|
|
} // namespace mozilla
|
|
|
|
|
2018-03-23 16:40:04 +03:00
|
|
|
#endif // widget_windows_CompositorWidgetParent_h
|