| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 bool hasSingleSecurityOrigin() const { return !m_player || (webMediaPlayer()
&& webMediaPlayer()->hasSingleSecurityOrigin()); } | 222 bool hasSingleSecurityOrigin() const { return !m_player || (webMediaPlayer()
&& webMediaPlayer()->hasSingleSecurityOrigin()); } |
| 223 | 223 |
| 224 bool isFullscreen() const; | 224 bool isFullscreen() const; |
| 225 void enterFullscreen(); | 225 void enterFullscreen(); |
| 226 void exitFullscreen(); | 226 void exitFullscreen(); |
| 227 | 227 |
| 228 bool hasClosedCaptions() const; | 228 bool hasClosedCaptions() const; |
| 229 bool closedCaptionsVisible() const; | 229 bool closedCaptionsVisible() const; |
| 230 void setClosedCaptionsVisible(bool); | 230 void setClosedCaptionsVisible(bool); |
| 231 | 231 |
| 232 static void setTextTrackKindUserPreferenceForAllMediaElements(Document*); |
| 233 void automaticTrackSelectionForUpdatedUserPreference(); |
| 234 |
| 232 void remoteRouteAvailabilityChanged(bool); | 235 void remoteRouteAvailabilityChanged(bool); |
| 233 void connectedToRemoteDevice(); | 236 void connectedToRemoteDevice(); |
| 234 void disconnectedFromRemoteDevice(); | 237 void disconnectedFromRemoteDevice(); |
| 235 | 238 |
| 236 // Returns the MediaControls, or null if they have not been added yet. | 239 // Returns the MediaControls, or null if they have not been added yet. |
| 237 // Note that this can be non-null even if there is no controls attribute. | 240 // Note that this can be non-null even if there is no controls attribute. |
| 238 MediaControls* mediaControls() const; | 241 MediaControls* mediaControls() const; |
| 239 | 242 |
| 240 // Notifies the media element that the media controls became visible, so | 243 // Notifies the media element that the media controls became visible, so |
| 241 // that text track layout may be updated to avoid overlapping them. | 244 // that text track layout may be updated to avoid overlapping them. |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 inline bool isHTMLMediaElement(const HTMLElement& element) | 593 inline bool isHTMLMediaElement(const HTMLElement& element) |
| 591 { | 594 { |
| 592 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 595 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 593 } | 596 } |
| 594 | 597 |
| 595 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 598 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 596 | 599 |
| 597 } // namespace blink | 600 } // namespace blink |
| 598 | 601 |
| 599 #endif // HTMLMediaElement_h | 602 #endif // HTMLMediaElement_h |
| OLD | NEW |