| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 virtual bool isVideoElement() const override { return true; } | 83 virtual bool isVideoElement() const override { return true; } |
| 84 virtual bool wouldTaintOrigin(SecurityOrigin*) const override; | 84 virtual bool wouldTaintOrigin(SecurityOrigin*) const override; |
| 85 virtual FloatSize sourceSize() const override; | 85 virtual FloatSize sourceSize() const override; |
| 86 virtual const KURL& sourceURL() const override { return currentSrc(); } | 86 virtual const KURL& sourceURL() const override { return currentSrc(); } |
| 87 | 87 |
| 88 virtual bool isHTMLVideoElement() const override { return true; } | 88 virtual bool isHTMLVideoElement() const override { return true; } |
| 89 | 89 |
| 90 private: | 90 private: |
| 91 HTMLVideoElement(Document&); | 91 HTMLVideoElement(Document&); |
| 92 | 92 |
| 93 virtual bool layoutObjectIsNeeded(const LayoutStyle&) override; | 93 virtual bool layoutObjectIsNeeded(const ComputedStyle&) override; |
| 94 virtual LayoutObject* createLayoutObject(const LayoutStyle&) override; | 94 virtual LayoutObject* createLayoutObject(const ComputedStyle&) override; |
| 95 virtual void attach(const AttachContext& = AttachContext()) override; | 95 virtual void attach(const AttachContext& = AttachContext()) override; |
| 96 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; | 96 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; |
| 97 virtual bool isPresentationAttribute(const QualifiedName&) const override; | 97 virtual bool isPresentationAttribute(const QualifiedName&) const override; |
| 98 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) override; | 98 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) override; |
| 99 virtual bool hasVideo() const override { return webMediaPlayer() && webMedia
Player()->hasVideo(); } | 99 virtual bool hasVideo() const override { return webMediaPlayer() && webMedia
Player()->hasVideo(); } |
| 100 bool supportsFullscreen() const; | 100 bool supportsFullscreen() const; |
| 101 virtual bool isURLAttribute(const Attribute&) const override; | 101 virtual bool isURLAttribute(const Attribute&) const override; |
| 102 virtual const AtomicString imageSourceURL() const override; | 102 virtual const AtomicString imageSourceURL() const override; |
| 103 | 103 |
| 104 bool hasAvailableVideoFrame() const; | 104 bool hasAvailableVideoFrame() const; |
| 105 virtual void updateDisplayState() override; | 105 virtual void updateDisplayState() override; |
| 106 virtual void didMoveToNewDocument(Document& oldDocument) override; | 106 virtual void didMoveToNewDocument(Document& oldDocument) override; |
| 107 virtual void setDisplayMode(DisplayMode) override; | 107 virtual 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 |