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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 void configureMediaControls(); | 472 void configureMediaControls(); |
473 | 473 |
474 TextTrackContainer& ensureTextTrackContainer(); | 474 TextTrackContainer& ensureTextTrackContainer(); |
475 | 475 |
476 EventDispatchHandlingState* preDispatchEventHandler(Event*) final; | 476 EventDispatchHandlingState* preDispatchEventHandler(Event*) final; |
477 | 477 |
478 void changeNetworkStateFromLoadingToIdle(); | 478 void changeNetworkStateFromLoadingToIdle(); |
479 | 479 |
480 bool isAutoplaying() const { return m_autoplaying; } | 480 bool isAutoplaying() const { return m_autoplaying; } |
481 | 481 |
482 void setAllowHiddenVolumeControls(bool); | |
483 | |
484 WebMediaPlayer::CORSMode corsMode() const; | 482 WebMediaPlayer::CORSMode corsMode() const; |
485 | 483 |
486 // Returns the "direction of playback" value as specified in the HTML5 spec. | 484 // Returns the "direction of playback" value as specified in the HTML5 spec. |
487 enum DirectionOfPlayback { Backward, Forward }; | 485 enum DirectionOfPlayback { Backward, Forward }; |
488 DirectionOfPlayback getDirectionOfPlayback() const; | 486 DirectionOfPlayback getDirectionOfPlayback() const; |
489 | 487 |
490 // Creates placeholder AudioTrack and/or VideoTrack objects when | 488 // Creates placeholder AudioTrack and/or VideoTrack objects when |
491 // WebMemediaPlayer objects advertise they have audio and/or video, but don't | 489 // WebMemediaPlayer objects advertise they have audio and/or video, but don't |
492 // explicitly signal them via addAudioTrack() and addVideoTrack(). | 490 // explicitly signal them via addAudioTrack() and addVideoTrack(). |
493 // FIXME: Remove this once all WebMediaPlayer implementations properly report | 491 // FIXME: Remove this once all WebMediaPlayer implementations properly report |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 | 727 |
730 inline bool isHTMLMediaElement(const HTMLElement& element) { | 728 inline bool isHTMLMediaElement(const HTMLElement& element) { |
731 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 729 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
732 } | 730 } |
733 | 731 |
734 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 732 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
735 | 733 |
736 } // namespace blink | 734 } // namespace blink |
737 | 735 |
738 #endif // HTMLMediaElement_h | 736 #endif // HTMLMediaElement_h |
OLD | NEW |