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

// Copyright 2017 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_overlay_play_button_element.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/events/event.h"
#include "third_party/blink/renderer/core/dom/shadow_root.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/platform/text/platform_locale.h"
#include "ui/gfx/geometry/size.h"
#include "ui/strings/grit/ax_strings.h"

namespace {

// The size of the inner circle button in pixels.
constexpr int kInnerButtonSize =;

// The CSS class to add to hide the element.
const char kHiddenClassName[] =;

}  // namespace.

namespace blink {

// The DOM structure looks like:
//
// MediaControlOverlayPlayButtonElement
//   (-webkit-media-controls-overlay-play-button)
// +-div (-internal-media-controls-overlay-play-button-internal)
//   This contains the inner circle with the actual play/pause icon.
MediaControlOverlayPlayButtonElement::MediaControlOverlayPlayButtonElement(
    MediaControlsImpl& media_controls)
    :{}

void MediaControlOverlayPlayButtonElement::UpdateDisplayType() {}

const char* MediaControlOverlayPlayButtonElement::GetNameForHistograms() const {}

void MediaControlOverlayPlayButtonElement::MaybePlayPause() {}

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

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

gfx::Size MediaControlOverlayPlayButtonElement::GetSizeOrDefault() const {}

void MediaControlOverlayPlayButtonElement::SetIsDisplayed(bool displayed) {}

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

}  // namespace blink