OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // Used by WebGL to do GPU-GPU textures copy if possible. | 70 // Used by WebGL to do GPU-GPU textures copy if possible. |
71 bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObje
ct texture, GLenum internalFormat, GLenum type, bool premultiplyAlpha, bool flip
Y); | 71 bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObje
ct texture, GLenum internalFormat, GLenum type, bool premultiplyAlpha, bool flip
Y); |
72 | 72 |
73 bool shouldDisplayPosterImage() const { return displayMode() == Poster; } | 73 bool shouldDisplayPosterImage() const { return displayMode() == Poster; } |
74 | 74 |
75 KURL posterImageURL() const; | 75 KURL posterImageURL() const; |
76 | 76 |
77 bool hasAvailableVideoFrame() const; | 77 bool hasAvailableVideoFrame() const; |
78 | 78 |
79 // FIXME: Remove this when WebMediaPlayerClientImpl::loadInternal does not d
epend on it. | 79 // FIXME: Remove this when WebMediaPlayerClientImpl::loadInternal does not d
epend on it. |
80 virtual KURL mediaPlayerPosterURL() override; | 80 KURL mediaPlayerPosterURL() override; |
81 | 81 |
82 // CanvasImageSource implementation | 82 // CanvasImageSource implementation |
83 virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageMode, SourceIma
geStatus*) const override; | 83 PassRefPtr<Image> getSourceImageForCanvas(SourceImageMode, SourceImageStatus
*) const override; |
84 virtual bool isVideoElement() const override { return true; } | 84 bool isVideoElement() const override { return true; } |
85 virtual bool wouldTaintOrigin(SecurityOrigin*) const override; | 85 bool wouldTaintOrigin(SecurityOrigin*) const override; |
86 virtual FloatSize elementSize() const override; | 86 FloatSize elementSize() const override; |
87 virtual const KURL& sourceURL() const override { return currentSrc(); } | 87 const KURL& sourceURL() const override { return currentSrc(); } |
88 | 88 |
89 virtual bool isHTMLVideoElement() const override { return true; } | 89 bool isHTMLVideoElement() const override { return true; } |
90 | 90 |
91 private: | 91 private: |
92 HTMLVideoElement(Document&); | 92 HTMLVideoElement(Document&); |
93 | 93 |
94 virtual bool layoutObjectIsNeeded(const ComputedStyle&) override; | 94 bool layoutObjectIsNeeded(const ComputedStyle&) override; |
95 virtual LayoutObject* createLayoutObject(const ComputedStyle&) override; | 95 LayoutObject* createLayoutObject(const ComputedStyle&) override; |
96 virtual void attach(const AttachContext& = AttachContext()) override; | 96 void attach(const AttachContext& = AttachContext()) override; |
97 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; | 97 void parseAttribute(const QualifiedName&, const AtomicString&) override; |
98 virtual bool isPresentationAttribute(const QualifiedName&) const override; | 98 bool isPresentationAttribute(const QualifiedName&) const override; |
99 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) override; | 99 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic
String&, MutableStylePropertySet*) override; |
100 virtual bool hasVideo() const override { return webMediaPlayer() && webMedia
Player()->hasVideo(); } | 100 bool hasVideo() const override { return webMediaPlayer() && webMediaPlayer()
->hasVideo(); } |
101 bool supportsFullscreen() const; | 101 bool supportsFullscreen() const; |
102 virtual bool isURLAttribute(const Attribute&) const override; | 102 bool isURLAttribute(const Attribute&) const override; |
103 virtual const AtomicString imageSourceURL() const override; | 103 const AtomicString imageSourceURL() const override; |
104 | 104 |
105 virtual void updateDisplayState() override; | 105 void updateDisplayState() override; |
106 virtual void didMoveToNewDocument(Document& oldDocument) override; | 106 void didMoveToNewDocument(Document& oldDocument) override; |
107 virtual void setDisplayMode(DisplayMode) override; | 107 void setDisplayMode(DisplayMode) override; |
108 | 108 |
109 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; | 109 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; |
110 | 110 |
111 AtomicString m_defaultPosterURL; | 111 AtomicString m_defaultPosterURL; |
112 }; | 112 }; |
113 | 113 |
114 } // namespace blink | 114 } // namespace blink |
115 | 115 |
116 #endif // HTMLVideoElement_h | 116 #endif // HTMLVideoElement_h |
OLD | NEW |