VideoFullscreenLayerManagerObjC.h [plain text]
#pragma once
#include "FloatRect.h"
#include "IntSize.h"
#include "PlatformLayer.h"
#include "VideoFullscreenLayerManager.h"
#include <wtf/Function.h>
#include <wtf/Noncopyable.h>
#include <wtf/RetainPtr.h>
namespace WebCore {
class VideoFullscreenLayerManagerObjC final : public VideoFullscreenLayerManager {
WTF_MAKE_FAST_ALLOCATED;
public:
VideoFullscreenLayerManagerObjC();
PlatformLayer *videoInlineLayer() const final { return m_videoInlineLayer.get(); }
PlatformLayer *videoFullscreenLayer() const final { return m_videoFullscreenLayer.get(); }
FloatRect videoFullscreenFrame() const final { return m_videoFullscreenFrame; }
void setVideoLayer(PlatformLayer *, IntSize contentSize) final;
void setVideoFullscreenLayer(PlatformLayer *, WTF::Function<void()>&& completionHandler, NativeImagePtr) final;
void updateVideoFullscreenInlineImage(NativeImagePtr) final;
void setVideoFullscreenFrame(FloatRect) final;
void didDestroyVideoLayer() final;
bool requiresTextTrackRepresentation() const final;
void setTextTrackRepresentation(TextTrackRepresentation*) final;
void syncTextTrackBounds() final;
private:
RetainPtr<PlatformLayer> m_textTrackRepresentationLayer;
RetainPtr<PlatformLayer> m_videoInlineLayer;
RetainPtr<PlatformLayer> m_videoFullscreenLayer;
RetainPtr<PlatformLayer> m_videoLayer;
FloatRect m_videoFullscreenFrame;
FloatRect m_videoInlineFrame;
};
}