Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(480)

Side by Side Diff: Source/core/html/HTMLMediaElement.h

Issue 1159593006: Revert of Remove the allowfullscreen exemption for the video-specific fullscreen API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Fullscreen.cpp ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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();
224 226
225 bool hasClosedCaptions() const; 227 bool hasClosedCaptions() const;
226 bool closedCaptionsVisible() const; 228 bool closedCaptionsVisible() const;
227 void setClosedCaptionsVisible(bool); 229 void setClosedCaptionsVisible(bool);
228 230
229 void remoteRouteAvailabilityChanged(bool); 231 void remoteRouteAvailabilityChanged(bool);
230 void connectedToRemoteDevice(); 232 void connectedToRemoteDevice();
231 void disconnectedFromRemoteDevice(); 233 void disconnectedFromRemoteDevice();
232 234
233 // 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.
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 inline bool isHTMLMediaElement(const HTMLElement& element) 585 inline bool isHTMLMediaElement(const HTMLElement& element)
584 { 586 {
585 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 587 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
586 } 588 }
587 589
588 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 590 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
589 591
590 } // namespace blink 592 } // namespace blink
591 593
592 #endif // HTMLMediaElement_h 594 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « Source/core/dom/Fullscreen.cpp ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698