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

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

Issue 2565203002: Add a requestFullscreen variant with a default (prefixed) type (Closed)
Patch Set: Created 4 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // causes an ambiguity error at compile time. This class's constructor 246 // causes an ambiguity error at compile time. This class's constructor
247 // ensures that both implementations return document, so return the result 247 // ensures that both implementations return document, so return the result
248 // of one of them here. 248 // of one of them here.
249 using HTMLElement::getExecutionContext; 249 using HTMLElement::getExecutionContext;
250 250
251 bool hasSingleSecurityOrigin() const { 251 bool hasSingleSecurityOrigin() const {
252 return webMediaPlayer() && webMediaPlayer()->hasSingleSecurityOrigin(); 252 return webMediaPlayer() && webMediaPlayer()->hasSingleSecurityOrigin();
253 } 253 }
254 254
255 bool isFullscreen() const; 255 bool isFullscreen() const;
256 void enterFullscreen();
257 void exitFullscreen();
258 void didEnterFullscreen(); 256 void didEnterFullscreen();
259 void didExitFullscreen(); 257 void didExitFullscreen();
260 virtual bool usesOverlayFullscreenVideo() const { return false; } 258 virtual bool usesOverlayFullscreenVideo() const { return false; }
261 259
262 bool hasClosedCaptions() const; 260 bool hasClosedCaptions() const;
263 bool textTracksVisible() const; 261 bool textTracksVisible() const;
264 262
265 static void setTextTrackKindUserPreferenceForAllMediaElements(Document*); 263 static void setTextTrackKindUserPreferenceForAllMediaElements(Document*);
266 void automaticTrackSelectionForUpdatedUserPreference(); 264 void automaticTrackSelectionForUpdatedUserPreference();
267 265
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 747
750 inline bool isHTMLMediaElement(const HTMLElement& element) { 748 inline bool isHTMLMediaElement(const HTMLElement& element) {
751 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 749 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
752 } 750 }
753 751
754 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 752 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
755 753
756 } // namespace blink 754 } // namespace blink
757 755
758 #endif // HTMLMediaElement_h 756 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Fullscreen.cpp ('k') | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698