| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 void setRemotePlaybackClient(WebRemotePlaybackClient*); | 279 void setRemotePlaybackClient(WebRemotePlaybackClient*); |
| 280 | 280 |
| 281 protected: | 281 protected: |
| 282 HTMLMediaElement(const QualifiedName&, Document&); | 282 HTMLMediaElement(const QualifiedName&, Document&); |
| 283 ~HTMLMediaElement() override; | 283 ~HTMLMediaElement() override; |
| 284 void dispose(); | 284 void dispose(); |
| 285 | 285 |
| 286 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS
tring&) override; | 286 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS
tring&) override; |
| 287 void finishParsingChildren() final; | 287 void finishParsingChildren() final; |
| 288 bool isURLAttribute(const Attribute&) const override; | 288 bool isURLAttribute(const Attribute&) const override; |
| 289 void attach(const AttachContext& = AttachContext()) override; | 289 void attachLayoutTree(const AttachContext& = AttachContext()) override; |
| 290 | 290 |
| 291 void didMoveToNewDocument(Document& oldDocument) override; | 291 void didMoveToNewDocument(Document& oldDocument) override; |
| 292 virtual KURL posterImageURL() const { return KURL(); } | 292 virtual KURL posterImageURL() const { return KURL(); } |
| 293 | 293 |
| 294 enum DisplayMode { Unknown, Poster, Video }; | 294 enum DisplayMode { Unknown, Poster, Video }; |
| 295 DisplayMode getDisplayMode() const { return m_displayMode; } | 295 DisplayMode getDisplayMode() const { return m_displayMode; } |
| 296 virtual void setDisplayMode(DisplayMode mode) { m_displayMode = mode; } | 296 virtual void setDisplayMode(DisplayMode mode) { m_displayMode = mode; } |
| 297 | 297 |
| 298 void recordAutoplayMetric(AutoplayMetrics); | 298 void recordAutoplayMetric(AutoplayMetrics); |
| 299 | 299 |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 690 inline bool isHTMLMediaElement(const HTMLElement& element) | 690 inline bool isHTMLMediaElement(const HTMLElement& element) |
| 691 { | 691 { |
| 692 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 692 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 693 } | 693 } |
| 694 | 694 |
| 695 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 695 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 696 | 696 |
| 697 } // namespace blink | 697 } // namespace blink |
| 698 | 698 |
| 699 #endif // HTMLMediaElement_h | 699 #endif // HTMLMediaElement_h |
| OLD | NEW |