| 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 // ensures that both implementations return document, so return the result | 220 // ensures that both implementations return document, so return the result |
| 221 // of one of them here. | 221 // of one of them here. |
| 222 using HTMLElement::getExecutionContext; | 222 using HTMLElement::getExecutionContext; |
| 223 | 223 |
| 224 bool hasSingleSecurityOrigin() const { return webMediaPlayer() && webMediaPl
ayer()->hasSingleSecurityOrigin(); } | 224 bool hasSingleSecurityOrigin() const { return webMediaPlayer() && webMediaPl
ayer()->hasSingleSecurityOrigin(); } |
| 225 | 225 |
| 226 bool isFullscreen() const; | 226 bool isFullscreen() const; |
| 227 void enterFullscreen(); | 227 void enterFullscreen(); |
| 228 void exitFullscreen(); | 228 void exitFullscreen(); |
| 229 virtual bool usesOverlayFullscreenVideo() const { return false; } | 229 virtual bool usesOverlayFullscreenVideo() const { return false; } |
| 230 virtual WebMediaPlayer::OverlayFullscreenVideoMode overlayFullscreenVideoMod
e() const { return WebMediaPlayer::OverlayFullscreenVideoMode::Disabled; } |
| 230 | 231 |
| 231 bool hasClosedCaptions() const; | 232 bool hasClosedCaptions() const; |
| 232 bool textTracksVisible() const; | 233 bool textTracksVisible() const; |
| 233 | 234 |
| 234 static void setTextTrackKindUserPreferenceForAllMediaElements(Document*); | 235 static void setTextTrackKindUserPreferenceForAllMediaElements(Document*); |
| 235 void automaticTrackSelectionForUpdatedUserPreference(); | 236 void automaticTrackSelectionForUpdatedUserPreference(); |
| 236 | 237 |
| 237 // Returns the MediaControls, or null if they have not been added yet. | 238 // Returns the MediaControls, or null if they have not been added yet. |
| 238 // Note that this can be non-null even if there is no controls attribute. | 239 // Note that this can be non-null even if there is no controls attribute. |
| 239 MediaControls* mediaControls() const; | 240 MediaControls* mediaControls() const; |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 inline bool isHTMLMediaElement(const HTMLElement& element) | 676 inline bool isHTMLMediaElement(const HTMLElement& element) |
| 676 { | 677 { |
| 677 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 678 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 678 } | 679 } |
| 679 | 680 |
| 680 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 681 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 681 | 682 |
| 682 } // namespace blink | 683 } // namespace blink |
| 683 | 684 |
| 684 #endif // HTMLMediaElement_h | 685 #endif // HTMLMediaElement_h |
| OLD | NEW |