| Index: third_party/WebKit/Source/modules/media_controls/elements/MediaControlPanelElement.h
|
| diff --git a/third_party/WebKit/Source/modules/media_controls/elements/MediaControlPanelElement.h b/third_party/WebKit/Source/modules/media_controls/elements/MediaControlPanelElement.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ec9419d84e062b132fc47030626f1c5fd86f24ad
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/modules/media_controls/elements/MediaControlPanelElement.h
|
| @@ -0,0 +1,45 @@
|
| +// 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 MediaControlPanelElement_h
|
| +#define MediaControlPanelElement_h
|
| +
|
| +#include "core/html/shadow/MediaControlElementTypes.h"
|
| +#include "platform/Timer.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class Event;
|
| +class MediaControlsImpl;
|
| +class TimerBase;
|
| +
|
| +class MediaControlPanelElement final : public MediaControlDivElement {
|
| + public:
|
| + explicit MediaControlPanelElement(MediaControlsImpl&);
|
| +
|
| + public:
|
| + // Methods called by `MediaContrlsImpl`.
|
| + void SetIsDisplayed(bool);
|
| + bool IsOpaque() const;
|
| + void MakeOpaque();
|
| + void MakeTransparent();
|
| +
|
| + private:
|
| + void DefaultEventHandler(Event*) override;
|
| + bool KeepEventInNode(Event*) override;
|
| +
|
| + void StartTimer();
|
| + void StopTimer();
|
| + void TransitionTimerFired(TimerBase*);
|
| + void DidBecomeVisible();
|
| +
|
| + bool is_displayed_ = false;
|
| + bool opaque_ = true;
|
| +
|
| + TaskRunnerTimer<MediaControlPanelElement> transition_timer_;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // MediaControlPanelElement_h
|
|
|