Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(947)

Unified Diff: third_party/WebKit/Source/core/html/shadow/MediaControlElements.h

Issue 2810173003: Media Controls: move all MediaControlDivElement sub-classes to modules/. (Closed)
Patch Set: fix typo Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/shadow/MediaControlElements.h
diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControlElements.h b/third_party/WebKit/Source/core/html/shadow/MediaControlElements.h
index eaf89e2ddccf9e9711b8306d09939f5a6bc961b1..df74742e599a5a84bb026a222986a08bdddada77 100644
--- a/third_party/WebKit/Source/core/html/shadow/MediaControlElements.h
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControlElements.h
@@ -36,38 +36,6 @@
namespace blink {
-class TextTrack;
-
-// ----------------------------
-
-class CORE_EXPORT MediaControlPanelElement final
- : public MediaControlDivElement {
- public:
- static MediaControlPanelElement* Create(MediaControls&);
-
- void SetIsDisplayed(bool);
-
- bool IsOpaque() const;
- void MakeOpaque();
- void MakeTransparent();
-
- private:
- explicit MediaControlPanelElement(MediaControls&);
-
- void DefaultEventHandler(Event*) override;
- bool KeepEventInNode(Event*) override;
-
- void StartTimer();
- void StopTimer();
- void TransitionTimerFired(TimerBase*);
- void DidBecomeVisible();
-
- bool is_displayed_;
- bool opaque_;
-
- TaskRunnerTimer<MediaControlPanelElement> transition_timer_;
-};
-
// ----------------------------
class CORE_EXPORT MediaControlPlayButtonElement final
@@ -127,31 +95,6 @@ class CORE_EXPORT MediaControlToggleClosedCaptionsButtonElement final
// ----------------------------
-class CORE_EXPORT MediaControlTextTrackListElement final
- : public MediaControlDivElement {
- public:
- static MediaControlTextTrackListElement* Create(MediaControls&);
-
- bool WillRespondToMouseClickEvents() override { return true; }
-
- void SetVisible(bool);
-
- private:
- explicit MediaControlTextTrackListElement(MediaControls&);
-
- void DefaultEventHandler(Event*) override;
-
- void RefreshTextTrackListMenu();
-
- // Returns the label for the track when a valid track is passed in and "Off"
- // when the parameter is null.
- String GetTextTrackLabel(TextTrack*);
- // Creates the track element in the list when a valid track is passed in and
- // the "Off" item when the parameter is null.
- Element* CreateTextTrackListItem(TextTrack*);
-};
-
-// ----------------------------
// 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 CORE_EXPORT MediaControlOverflowMenuButtonElement final
@@ -170,19 +113,6 @@ class CORE_EXPORT MediaControlOverflowMenuButtonElement final
};
// ----------------------------
-// Holds a list of elements within the overflow menu.
-class CORE_EXPORT MediaControlOverflowMenuListElement final
- : public MediaControlDivElement {
- public:
- static MediaControlOverflowMenuListElement* Create(MediaControls&);
-
- private:
- explicit MediaControlOverflowMenuListElement(MediaControls&);
-
- void DefaultEventHandler(Event*) override;
-};
-
-// ----------------------------
// Represents a button that allows users to download media if the file is
// downloadable.
class CORE_EXPORT MediaControlDownloadButtonElement final

Powered by Google App Engine
This is Rietveld 408576698