| // 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 "third_party/blink/renderer/modules/media_controls/elements/media_control_button_panel_element.h" |
| |
| #include "third_party/blink/renderer/modules/media_controls/elements/media_control_elements_helper.h" |
| #include "third_party/blink/renderer/modules/media_controls/media_controls_impl.h" |
| |
| namespace blink { |
| |
| MediaControlButtonPanelElement::MediaControlButtonPanelElement( |
| MediaControlsImpl& media_controls) |
| : MediaControlDivElement(media_controls) { |
| SetShadowPseudoId(AtomicString("-internal-media-controls-button-panel")); |
| } |
| |
| bool MediaControlButtonPanelElement::KeepEventInNode(const Event& event) const { |
| return MediaControlElementsHelper::IsUserInteractionEvent(event); |
| } |
| |
| } // namespace blink |