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

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

Issue 2657723002: [Blink, Media] Added controlsList to HTMLMediaElement (Closed)
Patch Set: Added a link to the spec. 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 8d64be5b49158131525c0027547abdaced20d77e..780d824d381f1d5eb6c75321b7056bebdced5025 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 {
@@ -202,6 +203,8 @@ class CORE_EXPORT HTMLMediaElement
// controls
bool shouldShowControls(
const RecordMetricsBehavior = RecordMetricsBehavior::DoNotRecord) const;
+ HTMLMediaElementControlsList* controlsList() const;
+ void controlsListValueWasSet();
double volume() const;
void setVolume(double, ExceptionState& = ASSERT_NO_EXCEPTION);
bool muted() const;
@@ -749,6 +752,7 @@ class CORE_EXPORT HTMLMediaElement
IntRect m_currentIntersectRect;
Member<MediaControls> m_mediaControls;
+ Member<HTMLMediaElementControlsList> m_controlsList;
static URLRegistry* s_mediaStreamRegistry;
};
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLAttributeNames.json5 ('k') | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698