| 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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 | 440 |
| 441 const AtomicString& mediaGroup() const; | 441 const AtomicString& mediaGroup() const; |
| 442 void setMediaGroup(const AtomicString&); | 442 void setMediaGroup(const AtomicString&); |
| 443 void updateMediaController(); | 443 void updateMediaController(); |
| 444 bool isBlocked() const; | 444 bool isBlocked() const; |
| 445 bool isBlockedOnMediaController() const; | 445 bool isBlockedOnMediaController() const; |
| 446 bool isAutoplaying() const { return m_autoplaying; } | 446 bool isAutoplaying() const { return m_autoplaying; } |
| 447 | 447 |
| 448 blink::WebMediaPlayer::CORSMode corsMode() const; | 448 blink::WebMediaPlayer::CORSMode corsMode() const; |
| 449 | 449 |
| 450 // Returns the "direction of playback" value as specified in the HTML5 spec. |
| 451 enum DirectionOfPlayback { Backward, Forward }; |
| 452 DirectionOfPlayback directionOfPlayback() const; |
| 453 |
| 450 // Creates placeholder AudioTrack and/or VideoTrack objects when WebMemediaP
layer objects | 454 // Creates placeholder AudioTrack and/or VideoTrack objects when WebMemediaP
layer objects |
| 451 // advertise they have audio and/or video, but don't explicitly signal them
via | 455 // advertise they have audio and/or video, but don't explicitly signal them
via |
| 452 // addAudioTrack() and addVideoTrack(). | 456 // addAudioTrack() and addVideoTrack(). |
| 453 // FIXME: Remove this once all WebMediaPlayer implementations properly repor
t their track info. | 457 // FIXME: Remove this once all WebMediaPlayer implementations properly repor
t their track info. |
| 454 void createPlaceholderTracksIfNecessary(); | 458 void createPlaceholderTracksIfNecessary(); |
| 455 | 459 |
| 456 // Sets the selected/enabled tracks if they aren't set before we initially | 460 // Sets the selected/enabled tracks if they aren't set before we initially |
| 457 // transition to HAVE_METADATA. | 461 // transition to HAVE_METADATA. |
| 458 void selectInitialTracksIfNecessary(); | 462 void selectInitialTracksIfNecessary(); |
| 459 | 463 |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 inline bool isHTMLMediaElement(const HTMLElement& element) | 619 inline bool isHTMLMediaElement(const HTMLElement& element) |
| 616 { | 620 { |
| 617 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 621 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 618 } | 622 } |
| 619 | 623 |
| 620 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 624 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 621 | 625 |
| 622 } //namespace | 626 } //namespace |
| 623 | 627 |
| 624 #endif | 628 #endif |
| OLD | NEW |