| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 class CORE_EXPORT HTMLVideoElement final : public HTMLMediaElement, public Canva
sImageSource { | 48 class CORE_EXPORT HTMLVideoElement final : public HTMLMediaElement, public Canva
sImageSource { |
| 49 DEFINE_WRAPPERTYPEINFO(); | 49 DEFINE_WRAPPERTYPEINFO(); |
| 50 public: | 50 public: |
| 51 static PassRefPtrWillBeRawPtr<HTMLVideoElement> create(Document&); | 51 static PassRefPtrWillBeRawPtr<HTMLVideoElement> create(Document&); |
| 52 DECLARE_VIRTUAL_TRACE(); | 52 DECLARE_VIRTUAL_TRACE(); |
| 53 | 53 |
| 54 unsigned videoWidth() const; | 54 unsigned videoWidth() const; |
| 55 unsigned videoHeight() const; | 55 unsigned videoHeight() const; |
| 56 | 56 |
| 57 // Fullscreen | 57 // Fullscreen |
| 58 void webkitEnterFullscreen(ExceptionState&); | 58 void webkitEnterFullscreen(); |
| 59 void webkitExitFullscreen(); | 59 void webkitExitFullscreen(); |
| 60 bool webkitSupportsFullscreen(); | 60 bool webkitSupportsFullscreen(); |
| 61 bool webkitDisplayingFullscreen(); | 61 bool webkitDisplayingFullscreen(); |
| 62 | 62 |
| 63 // Statistics | 63 // Statistics |
| 64 unsigned webkitDecodedFrameCount() const; | 64 unsigned webkitDecodedFrameCount() const; |
| 65 unsigned webkitDroppedFrameCount() const; | 65 unsigned webkitDroppedFrameCount() const; |
| 66 | 66 |
| 67 // Used by canvas to gain raw pixel access | 67 // Used by canvas to gain raw pixel access |
| 68 void paintCurrentFrame(SkCanvas*, const IntRect&, const SkPaint*) const; | 68 void paintCurrentFrame(SkCanvas*, const IntRect&, const SkPaint*) const; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 91 private: | 91 private: |
| 92 HTMLVideoElement(Document&); | 92 HTMLVideoElement(Document&); |
| 93 | 93 |
| 94 bool layoutObjectIsNeeded(const ComputedStyle&) override; | 94 bool layoutObjectIsNeeded(const ComputedStyle&) override; |
| 95 LayoutObject* createLayoutObject(const ComputedStyle&) override; | 95 LayoutObject* createLayoutObject(const ComputedStyle&) override; |
| 96 void attach(const AttachContext& = AttachContext()) override; | 96 void attach(const AttachContext& = AttachContext()) override; |
| 97 void parseAttribute(const QualifiedName&, const AtomicString&) override; | 97 void parseAttribute(const QualifiedName&, const AtomicString&) override; |
| 98 bool isPresentationAttribute(const QualifiedName&) const override; | 98 bool isPresentationAttribute(const QualifiedName&) const override; |
| 99 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic
String&, MutableStylePropertySet*) override; | 99 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic
String&, MutableStylePropertySet*) override; |
| 100 bool hasVideo() const override { return webMediaPlayer() && webMediaPlayer()
->hasVideo(); } | 100 bool hasVideo() const override { return webMediaPlayer() && webMediaPlayer()
->hasVideo(); } |
| 101 bool supportsFullscreen() const; | |
| 102 bool isURLAttribute(const Attribute&) const override; | 101 bool isURLAttribute(const Attribute&) const override; |
| 103 const AtomicString imageSourceURL() const override; | 102 const AtomicString imageSourceURL() const override; |
| 104 | 103 |
| 105 void updateDisplayState() override; | 104 void updateDisplayState() override; |
| 106 void didMoveToNewDocument(Document& oldDocument) override; | 105 void didMoveToNewDocument(Document& oldDocument) override; |
| 107 void setDisplayMode(DisplayMode) override; | 106 void setDisplayMode(DisplayMode) override; |
| 108 | 107 |
| 109 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; | 108 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; |
| 110 | 109 |
| 111 AtomicString m_defaultPosterURL; | 110 AtomicString m_defaultPosterURL; |
| 112 }; | 111 }; |
| 113 | 112 |
| 114 } // namespace blink | 113 } // namespace blink |
| 115 | 114 |
| 116 #endif // HTMLVideoElement_h | 115 #endif // HTMLVideoElement_h |
| OLD | NEW |