blob: 73aac4e3492a96a5131dbbcb8b5a2ea7dc73cc85 [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 THIRD_PARTY_BLINK_RENDERER_MODULES_MEDIA_CONTROLS_ELEMENTS_MEDIA_CONTROL_OVERFLOW_MENU_BUTTON_ELEMENT_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_MEDIA_CONTROLS_ELEMENTS_MEDIA_CONTROL_OVERFLOW_MENU_BUTTON_ELEMENT_H_
#include "third_party/blink/renderer/modules/media_controls/elements/media_control_input_element.h"
namespace blink {
class Event;
class MediaControlsImpl;
// Represents the overflow menu which is displayed when the width of the media
// player is small enough that at least two buttons are no longer visible.
class MediaControlOverflowMenuButtonElement final
: public MediaControlInputElement {
public:
explicit MediaControlOverflowMenuButtonElement(MediaControlsImpl&);
// MediaControlInputElement overrides.
bool WillRespondToMouseClickEvents() override;
protected:
const char* GetNameForHistograms() const override;
private:
void DefaultEventHandler(Event&) override;
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_MODULES_MEDIA_CONTROLS_ELEMENTS_MEDIA_CONTROL_OVERFLOW_MENU_BUTTON_ELEMENT_H_