HTMLVideoElement.h [plain text]
#ifndef HTMLVideoElement_h
#define HTMLVideoElement_h
#if ENABLE(VIDEO)
#include "HTMLMediaElement.h"
namespace WebCore {
class HTMLImageLoader;
class HTMLVideoElement : public HTMLMediaElement {
public:
static PassRefPtr<HTMLVideoElement> create(const QualifiedName&, Document*);
unsigned width() const;
unsigned height() const;
unsigned videoWidth() const;
unsigned videoHeight() const;
void webkitEnterFullscreen(bool isUserGesture, ExceptionCode&);
void webkitExitFullscreen();
bool webkitSupportsFullscreen();
bool webkitDisplayingFullscreen();
void webkitEnterFullScreen(bool isUserGesture, ExceptionCode& ec) { webkitEnterFullscreen(isUserGesture, ec); }
void webkitExitFullScreen() { webkitExitFullscreen(); }
#if ENABLE(MEDIA_STATISTICS)
unsigned webkitDecodedFrameCount() const;
unsigned webkitDroppedFrameCount() const;
#endif
void paintCurrentFrameInContext(GraphicsContext*, const IntRect&);
bool shouldDisplayPosterImage() const { return displayMode() == Poster || displayMode() == PosterWaitingForVideo; }
private:
HTMLVideoElement(const QualifiedName&, Document*);
virtual bool rendererIsNeeded(RenderStyle*);
#if !ENABLE(PLUGIN_PROXY_FOR_VIDEO)
virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
#endif
virtual void attach();
virtual void detach();
virtual void parseMappedAttribute(Attribute*);
virtual bool isVideo() const { return true; }
virtual bool hasVideo() const { return player() && player()->hasVideo(); }
virtual bool supportsFullscreen() const;
virtual bool isURLAttribute(Attribute*) const;
virtual const QualifiedName& imageSourceAttributeName() const;
virtual bool hasAvailableVideoFrame() const;
virtual void updateDisplayState();
virtual void willMoveToNewOwnerDocument();
virtual void setDisplayMode(DisplayMode);
OwnPtr<HTMLImageLoader> m_imageLoader;
};
}
#endif
#endif