Chromium Code Reviews| 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`
|