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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 // EventTarget function. | 214 // EventTarget function. |
215 // Both Node (via HTMLElement) and ActiveDOMObject define this method, which | 215 // Both Node (via HTMLElement) and ActiveDOMObject define this method, which |
216 // causes an ambiguity error at compile time. This class's constructor | 216 // causes an ambiguity error at compile time. This class's constructor |
217 // ensures that both implementations return document, so return the result | 217 // ensures that both implementations return document, so return the result |
218 // of one of them here. | 218 // of one of them here. |
219 using HTMLElement::executionContext; | 219 using HTMLElement::executionContext; |
220 | 220 |
221 bool hasSingleSecurityOrigin() const { return !m_player || (webMediaPlayer()
&& webMediaPlayer()->hasSingleSecurityOrigin()); } | 221 bool hasSingleSecurityOrigin() const { return !m_player || (webMediaPlayer()
&& webMediaPlayer()->hasSingleSecurityOrigin()); } |
222 | 222 |
223 bool isFullscreen() const; | 223 bool isFullscreen() const; |
224 void enterFullscreen(); | |
225 void exitFullscreen(); | |
226 | 224 |
227 bool hasClosedCaptions() const; | 225 bool hasClosedCaptions() const; |
228 bool closedCaptionsVisible() const; | 226 bool closedCaptionsVisible() const; |
229 void setClosedCaptionsVisible(bool); | 227 void setClosedCaptionsVisible(bool); |
230 | 228 |
231 void remoteRouteAvailabilityChanged(bool); | 229 void remoteRouteAvailabilityChanged(bool); |
232 void connectedToRemoteDevice(); | 230 void connectedToRemoteDevice(); |
233 void disconnectedFromRemoteDevice(); | 231 void disconnectedFromRemoteDevice(); |
234 | 232 |
235 // Returns the MediaControls, or null if they have not been added yet. | 233 // Returns the MediaControls, or null if they have not been added yet. |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 inline bool isHTMLMediaElement(const HTMLElement& element) | 583 inline bool isHTMLMediaElement(const HTMLElement& element) |
586 { | 584 { |
587 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 585 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
588 } | 586 } |
589 | 587 |
590 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 588 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
591 | 589 |
592 } // namespace blink | 590 } // namespace blink |
593 | 591 |
594 #endif // HTMLMediaElement_h | 592 #endif // HTMLMediaElement_h |
OLD | NEW |