blob: 3f90ed6d4dbe19f1a4144aaa3bb8cdeea21a3915 [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 MediaControlToggleClosedCaptionsButtonElement_h
#define MediaControlToggleClosedCaptionsButtonElement_h
#include "modules/media_controls/elements/MediaControlInputElement.h"
namespace blink {
class Event;
class MediaControlsImpl;
class MediaControlToggleClosedCaptionsButtonElement final
: public MediaControlInputElement {
public:
explicit MediaControlToggleClosedCaptionsButtonElement(MediaControlsImpl&);
// MediaControlInputElement overrides.
bool WillRespondToMouseClickEvents() override;
void UpdateDisplayType() override;
WebLocalizedString::Name GetOverflowStringName() const override;
bool HasOverflowButton() const override;
protected:
const char* GetNameForHistograms() const override;
private:
void DefaultEventHandler(Event*) override;
};
} // namespace blink
#endif // MediaControlToggleClosedCaptionsButtonElement_h