chromium/third_party/blink/renderer/modules/media_controls/elements/media_control_popup_menu_element.cc

// Copyright 2018 The Chromium Authors
// 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_popup_menu_element.h"

#include "third_party/blink/renderer/bindings/core/v8/v8_focus_options.h"
#include "third_party/blink/renderer/core/css/css_property_value_set.h"
#include "third_party/blink/renderer/core/css/css_style_declaration.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/events/event.h"
#include "third_party/blink/renderer/core/dom/events/native_event_listener.h"
#include "third_party/blink/renderer/core/dom/focus_params.h"
#include "third_party/blink/renderer/core/event_type_names.h"
#include "third_party/blink/renderer/core/events/keyboard_event.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/geometry/dom_rect.h"
#include "third_party/blink/renderer/core/html/html_element.h"
#include "third_party/blink/renderer/core/html/media/html_media_element.h"
#include "third_party/blink/renderer/core/html_names.h"
#include "third_party/blink/renderer/core/keywords.h"
#include "third_party/blink/renderer/modules/media_controls/elements/media_control_elements_helper.h"
#include "third_party/blink/renderer/modules/media_controls/elements/media_control_overflow_menu_button_element.h"
#include "third_party/blink/renderer/modules/media_controls/media_controls_impl.h"
#include "third_party/blink/renderer/platform/keyboard_codes.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"

namespace blink {

class MediaControlPopupMenuElement::EventListener final
    : public NativeEventListener {};

MediaControlPopupMenuElement::~MediaControlPopupMenuElement() = default;

void MediaControlPopupMenuElement::SetIsWanted(bool wanted) {}

void MediaControlPopupMenuElement::OnItemSelected() {}

void MediaControlPopupMenuElement::DefaultEventHandler(Event& event) {}

bool MediaControlPopupMenuElement::KeepEventInNode(const Event& event) const {}

void MediaControlPopupMenuElement::RemovedFrom(ContainerNode& container) {}

void MediaControlPopupMenuElement::Trace(Visitor* visitor) const {}

MediaControlPopupMenuElement::MediaControlPopupMenuElement(
    MediaControlsImpl& media_controls)
    :{}

// TODO(crbug.com/1309178): This entire function and the one callsite can be
// removed once anchor positioning is enabled by default.
// TODO(crbug.com/341741271): Ensure all required APIs are stable, including
// the anchor attribute and the `anchor-scope` CSS property.
void MediaControlPopupMenuElement::SetPosition() {}

Element* MediaControlPopupMenuElement::PopupAnchor() const {}

void MediaControlPopupMenuElement::HideIfNotFocused() {}

// Focus the given item in the list if it is displayed. Returns whether it was
// focused.
bool MediaControlPopupMenuElement::FocusListItemIfDisplayed(Node* node) {}

void MediaControlPopupMenuElement::SelectFirstItem() {}

void MediaControlPopupMenuElement::SelectNextItem() {}

void MediaControlPopupMenuElement::SelectPreviousItem() {}

void MediaControlPopupMenuElement::CloseFromKeyboard() {}

void MediaControlPopupMenuElement::FocusPopupAnchorIfOverflowClosed() {}

}  // namespace blink