#include "third_party/blink/renderer/modules/media_controls/elements/media_control_cast_button_element.h"
#include "base/metrics/histogram_functions.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/platform/user_metrics_action.h"
#include "third_party/blink/public/strings/grit/blink_strings.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/geometry/dom_rect.h"
#include "third_party/blink/renderer/core/html/media/html_media_element.h"
#include "third_party/blink/renderer/core/input_type_names.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"
#include "third_party/blink/renderer/modules/remoteplayback/remote_playback.h"
#include "third_party/blink/renderer/modules/remoteplayback/remote_playback_metrics.h"
#include "third_party/blink/renderer/platform/text/platform_locale.h"
#include "ui/strings/grit/ax_strings.h"
namespace blink {
namespace {
Element* ElementFromCenter(Element& element) { … }
}
MediaControlCastButtonElement::MediaControlCastButtonElement(
MediaControlsImpl& media_controls,
bool is_overlay_button)
: … { … }
void MediaControlCastButtonElement::TryShowOverlay() { … }
void MediaControlCastButtonElement::UpdateDisplayType() { … }
bool MediaControlCastButtonElement::WillRespondToMouseClickEvents() { … }
int MediaControlCastButtonElement::GetOverflowStringId() const { … }
bool MediaControlCastButtonElement::HasOverflowButton() const { … }
const char* MediaControlCastButtonElement::GetNameForHistograms() const { … }
void MediaControlCastButtonElement::DefaultEventHandler(Event& event) { … }
bool MediaControlCastButtonElement::KeepEventInNode(const Event& event) const { … }
bool MediaControlCastButtonElement::IsPlayingRemotely() const { … }
}