| Index: third_party/WebKit/Source/modules/media_controls/elements/MediaControlOverflowMenuListElement.cpp
|
| diff --git a/third_party/WebKit/Source/modules/media_controls/elements/MediaControlOverflowMenuListElement.cpp b/third_party/WebKit/Source/modules/media_controls/elements/MediaControlOverflowMenuListElement.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..759146f20154e322d790060a1d7937f64853ef4e
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/modules/media_controls/elements/MediaControlOverflowMenuListElement.cpp
|
| @@ -0,0 +1,27 @@
|
| +// 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.
|
| +
|
| +#include "modules/media_controls/elements/MediaControlOverflowMenuListElement.h"
|
| +
|
| +#include "core/events/Event.h"
|
| +#include "modules/media_controls/MediaControlsImpl.h"
|
| +
|
| +namespace blink {
|
| +
|
| +MediaControlOverflowMenuListElement::MediaControlOverflowMenuListElement(
|
| + MediaControlsImpl& media_controls)
|
| + : MediaControlDivElement(media_controls, kMediaOverflowList) {
|
| + SetShadowPseudoId(
|
| + AtomicString("-internal-media-controls-overflow-menu-list"));
|
| + SetIsWanted(false);
|
| +}
|
| +
|
| +void MediaControlOverflowMenuListElement::DefaultEventHandler(Event* event) {
|
| + if (event->type() == EventTypeNames::click)
|
| + event->SetDefaultHandled();
|
| +
|
| + MediaControlDivElement::DefaultEventHandler(event);
|
| +}
|
| +
|
| +} // namespace blink
|
|
|