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

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

Issue 2084223002: Make the video layer visibility configurable in OverlayFullscreenVideo mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698