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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 virtual double volume() const OVERRIDE FINAL; | 155 virtual double volume() const OVERRIDE FINAL; |
156 virtual void setVolume(double, ExceptionState&) OVERRIDE FINAL; | 156 virtual void setVolume(double, ExceptionState&) OVERRIDE FINAL; |
157 virtual bool muted() const OVERRIDE FINAL; | 157 virtual bool muted() const OVERRIDE FINAL; |
158 virtual void setMuted(bool) OVERRIDE FINAL; | 158 virtual void setMuted(bool) OVERRIDE FINAL; |
159 | 159 |
160 virtual void beginScrubbing() OVERRIDE FINAL; | 160 virtual void beginScrubbing() OVERRIDE FINAL; |
161 virtual void endScrubbing() OVERRIDE FINAL; | 161 virtual void endScrubbing() OVERRIDE FINAL; |
162 | 162 |
163 virtual bool canPlay() const OVERRIDE FINAL; | 163 virtual bool canPlay() const OVERRIDE FINAL; |
164 | 164 |
| 165 void togglePlayState(); |
| 166 |
165 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, const AtomicStr
ing& label, const AtomicString& language, ExceptionState&); | 167 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, const AtomicStr
ing& label, const AtomicString& language, ExceptionState&); |
166 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, const AtomicStr
ing& label, ExceptionState& exceptionState) { return addTextTrack(kind, label, e
mptyAtom, exceptionState); } | 168 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, const AtomicStr
ing& label, ExceptionState& exceptionState) { return addTextTrack(kind, label, e
mptyAtom, exceptionState); } |
167 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, ExceptionState&
exceptionState) { return addTextTrack(kind, emptyAtom, emptyAtom, exceptionStat
e); } | 169 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, ExceptionState&
exceptionState) { return addTextTrack(kind, emptyAtom, emptyAtom, exceptionStat
e); } |
168 | 170 |
169 TextTrackList* textTracks(); | 171 TextTrackList* textTracks(); |
170 CueList currentlyActiveCues() const { return m_currentlyActiveCues; } | 172 CueList currentlyActiveCues() const { return m_currentlyActiveCues; } |
171 | 173 |
172 void addTextTrack(TextTrack*); | 174 void addTextTrack(TextTrack*); |
173 void removeTextTrack(TextTrack*); | 175 void removeTextTrack(TextTrack*); |
174 void closeCaptionTracksChanged(); | 176 void closeCaptionTracksChanged(); |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 void invalidateCachedTime(); | 398 void invalidateCachedTime(); |
397 void refreshCachedTime() const; | 399 void refreshCachedTime() const; |
398 | 400 |
399 bool hasMediaControls() const; | 401 bool hasMediaControls() const; |
400 bool createMediaControls(); | 402 bool createMediaControls(); |
401 void configureMediaControls(); | 403 void configureMediaControls(); |
402 | 404 |
403 void prepareMediaFragmentURI(); | 405 void prepareMediaFragmentURI(); |
404 void applyMediaFragmentURI(); | 406 void applyMediaFragmentURI(); |
405 | 407 |
| 408 virtual bool willRespondToMouseClickEvents() OVERRIDE FINAL; |
406 virtual void* preDispatchEventHandler(Event*) OVERRIDE FINAL; | 409 virtual void* preDispatchEventHandler(Event*) OVERRIDE FINAL; |
| 410 virtual void defaultEventHandler(Event*) OVERRIDE FINAL; |
407 | 411 |
408 void changeNetworkStateFromLoadingToIdle(); | 412 void changeNetworkStateFromLoadingToIdle(); |
409 | 413 |
410 const AtomicString& mediaGroup() const; | 414 const AtomicString& mediaGroup() const; |
411 void setMediaGroup(const AtomicString&); | 415 void setMediaGroup(const AtomicString&); |
412 void updateMediaController(); | 416 void updateMediaController(); |
413 bool isBlocked() const; | 417 bool isBlocked() const; |
414 bool isBlockedOnMediaController() const; | 418 bool isBlockedOnMediaController() const; |
415 bool isAutoplaying() const { return m_autoplaying; } | 419 bool isAutoplaying() const { return m_autoplaying; } |
416 | 420 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 inline bool isHTMLMediaElement(const HTMLElement& element) | 555 inline bool isHTMLMediaElement(const HTMLElement& element) |
552 { | 556 { |
553 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 557 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
554 } | 558 } |
555 | 559 |
556 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 560 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
557 | 561 |
558 } //namespace | 562 } //namespace |
559 | 563 |
560 #endif | 564 #endif |
OLD | NEW |