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:
HTMLVideoElement(const QualifiedName&, Document*);
unsigned width() const;
void setWidth(unsigned);
unsigned height() const;
void setHeight(unsigned);
unsigned videoWidth() const;
unsigned videoHeight() const;
virtual const KURL poster() const { return m_posterURL; }
void setPoster(const String&);
void webkitEnterFullscreen(bool isUserGesture, ExceptionCode&);
void webkitExitFullscreen();
bool webkitSupportsFullscreen();
bool webkitDisplayingFullscreen();
void webkitEnterFullScreen(bool isUserGesture, ExceptionCode& ec) { webkitEnterFullscreen(isUserGesture, ec); }
void webkitExitFullScreen() { webkitExitFullscreen(); }
bool shouldDisplayPosterImage() const { return m_shouldDisplayPosterImage; }
void paintCurrentFrameInContext(GraphicsContext*, const IntRect&);
private:
virtual int tagPriority() const { return 5; }
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(MappedAttribute*);
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 updatePosterImage();
virtual void willMoveToNewOwnerDocument();
OwnPtr<HTMLImageLoader> m_imageLoader;
KURL m_posterURL;
bool m_shouldDisplayPosterImage;
};
}
#endif
#endif