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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
51 class CueTimeline; | 51 class CueTimeline; |
52 class Event; | 52 class Event; |
53 class ExceptionState; | 53 class ExceptionState; |
54 class HTMLSourceElement; | 54 class HTMLSourceElement; |
55 class HTMLTrackElement; | 55 class HTMLTrackElement; |
56 class KURL; | 56 class KURL; |
57 class MediaController; | 57 class MediaController; |
58 class MediaControls; | 58 class MediaControls; |
59 class MediaError; | 59 class MediaError; |
60 class HTMLMediaSource; | 60 class HTMLMediaSource; |
61 class TextTrackContainer; | |
61 class TextTrackList; | 62 class TextTrackList; |
62 class TimeRanges; | 63 class TimeRanges; |
63 class URLRegistry; | 64 class URLRegistry; |
64 class VideoTrackList; | 65 class VideoTrackList; |
65 | 66 |
66 // FIXME: The inheritance from MediaPlayerClient here should be private inherita nce. | 67 // FIXME: The inheritance from MediaPlayerClient here should be private inherita nce. |
67 // But it can't be until the Chromium WebMediaPlayerClientImpl class is fixed so it | 68 // But it can't be until the Chromium WebMediaPlayerClientImpl class is fixed so it |
68 // no longer depends on typecasting a MediaPlayerClient to an HTMLMediaElement. | 69 // no longer depends on typecasting a MediaPlayerClient to an HTMLMediaElement. |
69 | 70 |
70 class HTMLMediaElement : public HTMLElement, public WillBeHeapSupplementable<HTM LMediaElement>, public MediaPlayerClient, public ActiveDOMObject { | 71 class HTMLMediaElement : public HTMLElement, public WillBeHeapSupplementable<HTM LMediaElement>, public MediaPlayerClient, public ActiveDOMObject { |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
407 enum class LoopCondition { Included, Ignored }; | 408 enum class LoopCondition { Included, Ignored }; |
408 bool endedPlayback(LoopCondition = LoopCondition::Included) const; | 409 bool endedPlayback(LoopCondition = LoopCondition::Included) const; |
409 | 410 |
410 void setShouldDelayLoadEvent(bool); | 411 void setShouldDelayLoadEvent(bool); |
411 void invalidateCachedTime(); | 412 void invalidateCachedTime(); |
412 void refreshCachedTime() const; | 413 void refreshCachedTime() const; |
413 | 414 |
414 void ensureMediaControls(); | 415 void ensureMediaControls(); |
415 void configureMediaControls(); | 416 void configureMediaControls(); |
416 | 417 |
418 TextTrackContainer* textTrackContainer() const; | |
philipj_slow
2015/02/26 09:51:52
Oops, will remove this.
fs
2015/02/26 12:30:51
I'd hope it should be possible to remove the one b
philipj_slow
2015/02/27 07:32:44
Who would be responsible for creating and insertin
fs
2015/02/27 09:50:31
It would still be the HTMLMediaElement doing that,
philipj_slow
2015/02/27 10:00:01
OK, that sounds good with some imaginary salt :)
| |
419 TextTrackContainer& ensureTextTrackContainer(); | |
420 | |
417 virtual void* preDispatchEventHandler(Event*) override final; | 421 virtual void* preDispatchEventHandler(Event*) override final; |
418 | 422 |
419 void changeNetworkStateFromLoadingToIdle(); | 423 void changeNetworkStateFromLoadingToIdle(); |
420 | 424 |
421 const AtomicString& mediaGroup() const; | 425 const AtomicString& mediaGroup() const; |
422 void setMediaGroup(const AtomicString&); | 426 void setMediaGroup(const AtomicString&); |
423 void updateMediaController(); | 427 void updateMediaController(); |
424 bool isBlocked() const; | 428 bool isBlocked() const; |
425 bool isBlockedOnMediaController() const; | 429 bool isBlockedOnMediaController() const; |
426 bool isAutoplaying() const { return m_autoplaying; } | 430 bool isAutoplaying() const { return m_autoplaying; } |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
579 inline bool isHTMLMediaElement(const HTMLElement& element) | 583 inline bool isHTMLMediaElement(const HTMLElement& element) |
580 { | 584 { |
581 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 585 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
582 } | 586 } |
583 | 587 |
584 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 588 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
585 | 589 |
586 } // namespace blink | 590 } // namespace blink |
587 | 591 |
588 #endif // HTMLMediaElement_h | 592 #endif // HTMLMediaElement_h |
OLD | NEW |