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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 inline bool isHTMLMediaElement(const HTMLElement& element) | 579 inline bool isHTMLMediaElement(const HTMLElement& element) |
577 { | 580 { |
578 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 581 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
579 } | 582 } |
580 | 583 |
581 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 584 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
582 | 585 |
583 } // namespace blink | 586 } // namespace blink |
584 | 587 |
585 #endif // HTMLMediaElement_h | 588 #endif // HTMLMediaElement_h |
OLD | NEW |