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

Unified Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.h

Issue 2657723002: [Blink, Media] Added controlsList to HTMLMediaElement (Closed)
Patch Set: Fixed comments Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/HTMLMediaElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.h b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
index a2dccecc890c292e22997b9ce54da6d2f1939f08..0e5ca86cce786bb652df850a7239c893c5d38acf 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
@@ -27,6 +27,7 @@
#ifndef HTMLMediaElement_h
#define HTMLMediaElement_h
+#include <memory>
#include "bindings/core/v8/ActiveScriptWrappable.h"
#include "bindings/core/v8/ScriptPromise.h"
#include "bindings/core/v8/TraceWrapperMember.h"
@@ -35,6 +36,7 @@
#include "core/dom/SuspendableObject.h"
#include "core/events/GenericEventQueue.h"
#include "core/html/HTMLElement.h"
+#include "core/html/HTMLMediaElementControlsList.h"
#include "core/html/track/TextTrack.h"
#include "platform/Supplementable.h"
#include "platform/WebTaskRunner.h"
@@ -42,7 +44,6 @@
#include "platform/network/mime/MIMETypeRegistry.h"
#include "public/platform/WebAudioSourceProviderClient.h"
#include "public/platform/WebMediaPlayerClient.h"
-#include <memory>
namespace blink {
@@ -52,6 +53,7 @@ class AudioTrackList;
class AutoplayUmaHelper;
class ContentType;
class CueTimeline;
+class DOMTokenList;
class ElementVisibilityObserver;
class EnumerationHistogram;
class Event;
@@ -202,6 +204,8 @@ class CORE_EXPORT HTMLMediaElement
// controls
bool shouldShowControls(
const RecordMetricsBehavior = RecordMetricsBehavior::DoNotRecord) const;
+ DOMTokenList* controlsList() const;
+ void controlsListValueWasSet();
double volume() const;
void setVolume(double, ExceptionState& = ASSERT_NO_EXCEPTION);
bool muted() const;
@@ -748,6 +752,7 @@ class CORE_EXPORT HTMLMediaElement
IntRect m_currentIntersectRect;
Member<MediaControls> m_mediaControls;
+ Member<HTMLMediaElementControlsList> m_controlsList;
static URLRegistry* s_mediaStreamRegistry;
};

Powered by Google App Engine
This is Rietveld 408576698