| 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 void setClosedCaptionsVisible(bool); | 229 void setClosedCaptionsVisible(bool); |
| 230 | 230 |
| 231 void remoteRouteAvailabilityChanged(bool); | 231 void remoteRouteAvailabilityChanged(bool); |
| 232 void connectedToRemoteDevice(); | 232 void connectedToRemoteDevice(); |
| 233 void disconnectedFromRemoteDevice(); | 233 void disconnectedFromRemoteDevice(); |
| 234 | 234 |
| 235 // Returns the MediaControls, or null if they have not been added yet. | 235 // Returns the MediaControls, or null if they have not been added yet. |
| 236 // Note that this can be non-null even if there is no controls attribute. | 236 // Note that this can be non-null even if there is no controls attribute. |
| 237 MediaControls* mediaControls() const; | 237 MediaControls* mediaControls() const; |
| 238 | 238 |
| 239 // Notifies the media element that the media controls became visible, so |
| 240 // that text track layout may be updated to avoid overlapping them. |
| 241 void mediaControlsDidBecomeVisible(); |
| 242 |
| 239 void sourceWasRemoved(HTMLSourceElement*); | 243 void sourceWasRemoved(HTMLSourceElement*); |
| 240 void sourceWasAdded(HTMLSourceElement*); | 244 void sourceWasAdded(HTMLSourceElement*); |
| 241 | 245 |
| 242 // ActiveDOMObject functions. | 246 // ActiveDOMObject functions. |
| 243 virtual bool hasPendingActivity() const override final; | 247 virtual bool hasPendingActivity() const override final; |
| 244 virtual void contextDestroyed() override final; | 248 virtual void contextDestroyed() override final; |
| 245 | 249 |
| 246 #if ENABLE(WEB_AUDIO) | 250 #if ENABLE(WEB_AUDIO) |
| 247 AudioSourceProviderClient* audioSourceNode() { return m_audioSourceNode; } | 251 AudioSourceProviderClient* audioSourceNode() { return m_audioSourceNode; } |
| 248 void setAudioSourceNode(AudioSourceProviderClient*); | 252 void setAudioSourceNode(AudioSourceProviderClient*); |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 inline bool isHTMLMediaElement(const HTMLElement& element) | 585 inline bool isHTMLMediaElement(const HTMLElement& element) |
| 582 { | 586 { |
| 583 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 587 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 584 } | 588 } |
| 585 | 589 |
| 586 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 590 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 587 | 591 |
| 588 } // namespace blink | 592 } // namespace blink |
| 589 | 593 |
| 590 #endif // HTMLMediaElement_h | 594 #endif // HTMLMediaElement_h |
| OLD | NEW |