blob: c62a36182313f37d8ea592b9c07596b06699d8e5 [file] [log] [blame]
// 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.
#ifndef MediaControlPlayButtonElement_h
#define MediaControlPlayButtonElement_h
#include "modules/media_controls/elements/MediaControlInputElement.h"
namespace blink {
class Event;
class MediaControlsImpl;
class MediaControlPlayButtonElement final : public MediaControlInputElement {
public:
explicit MediaControlPlayButtonElement(MediaControlsImpl&);
// MediaControlInputElement overrides.
bool WillRespondToMouseClickEvents() override;
void UpdateDisplayType() override;
WebLocalizedString::Name GetOverflowStringName() const override;
bool HasOverflowButton() const override;
void OnMediaKeyboardEvent(Event* event) { DefaultEventHandler(event); }
protected:
const char* GetNameForHistograms() const override;
private:
void DefaultEventHandler(Event*) override;
};
} // namespace blink
#endif // MediaControlPlayButtonElement_h