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

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

Issue 2692903002: Don't show media controls when there is a persistent video. (Closed)
Patch Set: rebase Created 3 years, 10 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 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 enum class RecordMetricsBehavior { DoNotRecord, DoRecord }; 91 enum class RecordMetricsBehavior { DoNotRecord, DoRecord };
92 92
93 static void setMediaStreamRegistry(URLRegistry*); 93 static void setMediaStreamRegistry(URLRegistry*);
94 static bool isMediaStreamURL(const String& url); 94 static bool isMediaStreamURL(const String& url);
95 static bool isHLSURL(const KURL&); 95 static bool isHLSURL(const KURL&);
96 96
97 // If HTMLMediaElement is using MediaTracks (either placeholder or provided 97 // If HTMLMediaElement is using MediaTracks (either placeholder or provided
98 // by the page). 98 // by the page).
99 static bool mediaTracksEnabledInternally(); 99 static bool mediaTracksEnabledInternally();
100 100
101 // Notify the HTMLMediaElement that the media controls settings have changed
102 // for the given document.
103 static void onMediaControlsEnabledChange(Document*);
104
101 DECLARE_VIRTUAL_TRACE(); 105 DECLARE_VIRTUAL_TRACE();
102 106
103 DECLARE_VIRTUAL_TRACE_WRAPPERS(); 107 DECLARE_VIRTUAL_TRACE_WRAPPERS();
104 108
105 void clearWeakMembers(Visitor*); 109 void clearWeakMembers(Visitor*);
106 WebMediaPlayer* webMediaPlayer() const { return m_webMediaPlayer.get(); } 110 WebMediaPlayer* webMediaPlayer() const { return m_webMediaPlayer.get(); }
107 111
108 // Returns true if the loaded media has a video track. 112 // Returns true if the loaded media has a video track.
109 // Note that even an audio element can have video track in cases such as 113 // Note that even an audio element can have video track in cases such as
110 // <audio src="video.webm">, in which case this function will return true. 114 // <audio src="video.webm">, in which case this function will return true.
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 754
751 inline bool isHTMLMediaElement(const HTMLElement& element) { 755 inline bool isHTMLMediaElement(const HTMLElement& element) {
752 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 756 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
753 } 757 }
754 758
755 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 759 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
756 760
757 } // namespace blink 761 } // namespace blink
758 762
759 #endif // HTMLMediaElement_h 763 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/SettingsDelegate.h ('k') | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698