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

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

Issue 2657723002: [Blink, Media] Added controlsList to HTMLMediaElement (Closed)
Patch Set: rebased 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/HTMLMediaElementControlsList.h
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElementControlsList.h b/third_party/WebKit/Source/core/html/HTMLMediaElementControlsList.h
new file mode 100644
index 0000000000000000000000000000000000000000..f43b1b417aab89235ea5f1e67cb4b162bdf31766
--- /dev/null
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElementControlsList.h
@@ -0,0 +1,40 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef HTMLMediaElementControlsList_h
+#define HTMLMediaElementControlsList_h
+
+#include "core/dom/DOMTokenList.h"
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class HTMLMediaElement;
+
+class HTMLMediaElementControlsList final : public DOMTokenList,
+ public DOMTokenListObserver {
+ USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElementControlsList);
+
+ public:
+ static HTMLMediaElementControlsList* create(HTMLMediaElement* element) {
+ return new HTMLMediaElementControlsList(element);
+ }
mlamouri (slow - plz ping) 2017/03/01 16:20:20 Sounds like you could drop the ::create()?
+
+ ~HTMLMediaElementControlsList() override;
+
+ DECLARE_VIRTUAL_TRACE();
+
+ private:
+ explicit HTMLMediaElementControlsList(HTMLMediaElement*);
+ bool validateTokenValue(const AtomicString&, ExceptionState&) const override;
+
+ // DOMTokenListObserver.
+ void valueWasSet() override;
+
+ Member<HTMLMediaElement> m_element;
+};
+
+} // namespace blink
+
+#endif
mlamouri (slow - plz ping) 2017/03/01 16:20:21 style: `#endif // HTMLMediaElementControlsList_h`

Powered by Google App Engine
This is Rietveld 408576698