Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights | 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 331 | 331 |
| 332 const AutoplayPolicy& GetAutoplayPolicy() const { return *autoplay_policy_; } | 332 const AutoplayPolicy& GetAutoplayPolicy() const { return *autoplay_policy_; } |
| 333 | 333 |
| 334 WebMediaPlayer::LoadType GetLoadType() const; | 334 WebMediaPlayer::LoadType GetLoadType() const; |
| 335 | 335 |
| 336 protected: | 336 protected: |
| 337 HTMLMediaElement(const QualifiedName&, Document&); | 337 HTMLMediaElement(const QualifiedName&, Document&); |
| 338 ~HTMLMediaElement() override; | 338 ~HTMLMediaElement() override; |
| 339 void Dispose(); | 339 void Dispose(); |
| 340 | 340 |
| 341 // Returns true if HasPendingActivity() should be true for | |
| 342 // subclass-specific reasons. | |
| 343 virtual bool HasPendingActivityInternal() const { return false; } | |
|
kouhei (in TOK)
2017/05/29 05:27:34
Why is this needed?
HTMLVideoElement inherits from
hiroshige
2017/05/29 10:37:00
I did so in Patch Set 2 but it didn't work, perhap
hiroshige
2017/05/30 08:57:06
According to offline discussion with kouhei@, I mo
| |
| 344 | |
| 341 void ParseAttribute(const AttributeModificationParams&) override; | 345 void ParseAttribute(const AttributeModificationParams&) override; |
| 342 void FinishParsingChildren() final; | 346 void FinishParsingChildren() final; |
| 343 bool IsURLAttribute(const Attribute&) const override; | 347 bool IsURLAttribute(const Attribute&) const override; |
| 344 void AttachLayoutTree(const AttachContext& = AttachContext()) override; | 348 void AttachLayoutTree(const AttachContext& = AttachContext()) override; |
| 345 | 349 |
| 346 InsertionNotificationRequest InsertedInto(ContainerNode*) override; | 350 InsertionNotificationRequest InsertedInto(ContainerNode*) override; |
| 347 void RemovedFrom(ContainerNode*) override; | 351 void RemovedFrom(ContainerNode*) override; |
| 348 | 352 |
| 349 void DidMoveToNewDocument(Document& old_document) override; | 353 void DidMoveToNewDocument(Document& old_document) override; |
| 350 virtual KURL PosterImageURL() const { return KURL(); } | 354 virtual KURL PosterImageURL() const { return KURL(); } |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 740 | 744 |
| 741 inline bool IsHTMLMediaElement(const HTMLElement& element) { | 745 inline bool IsHTMLMediaElement(const HTMLElement& element) { |
| 742 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 746 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 743 } | 747 } |
| 744 | 748 |
| 745 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 749 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 746 | 750 |
| 747 } // namespace blink | 751 } // namespace blink |
| 748 | 752 |
| 749 #endif // HTMLMediaElement_h | 753 #endif // HTMLMediaElement_h |
| OLD | NEW |