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

Unified Diff: Source/core/html/shadow/MediaControls.h

Issue 192453005: Merge MediaControlsAndroid into MediaControls (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: revert simplification Created 6 years, 9 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
« no previous file with comments | « Source/core/css/mediaControlsAndroid.css ('k') | Source/core/html/shadow/MediaControls.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/shadow/MediaControls.h
diff --git a/Source/core/html/shadow/MediaControls.h b/Source/core/html/shadow/MediaControls.h
index 7c4da46681dd00927f365160348ec83e146c472c..b3a5f07fc2076782beb0ba675911a562571209eb 100644
--- a/Source/core/html/shadow/MediaControls.h
+++ b/Source/core/html/shadow/MediaControls.h
@@ -27,36 +27,28 @@
#ifndef MediaControls_h
#define MediaControls_h
-#include "core/events/MouseEvent.h"
#include "core/html/HTMLDivElement.h"
#include "core/html/shadow/MediaControlElements.h"
-#include "core/rendering/RenderTheme.h"
namespace WebCore {
class Document;
class Event;
-class MediaPlayer;
-class RenderBox;
-class RenderMedia;
-
-class MediaControls : public HTMLDivElement {
+class MediaControls FINAL : public HTMLDivElement {
public:
- virtual ~MediaControls() {}
-
static PassRefPtr<MediaControls> create(Document&);
- virtual void setMediaController(MediaControllerInterface*);
+ void setMediaController(MediaControllerInterface*);
void reset();
void show();
void hide();
- virtual void playbackStarted();
+ void playbackStarted();
void playbackProgressed();
- virtual void playbackStopped();
+ void playbackStopped();
void updateCurrentTimeDisplay();
@@ -72,19 +64,15 @@ public:
void updateTextTrackDisplay();
-protected:
+private:
explicit MediaControls(Document&);
- virtual bool initializeControls(Document&);
+ bool initializeControls(Document&);
- virtual bool shouldHideControls();
-
- virtual void insertTextTrackContainer(PassRefPtr<MediaControlTextTrackContainerElement>);
-
-private:
void makeOpaque();
void makeTransparent();
+ bool shouldHideFullscreenControls();
void hideFullscreenControlsTimerFired(Timer<MediaControls>*);
void startHideFullscreenControlsTimer();
void stopHideFullscreenControlsTimer();
@@ -94,7 +82,7 @@ private:
void hideTextTrackDisplay();
// Node
- virtual bool isMediaControls() const OVERRIDE FINAL { return true; }
+ virtual bool isMediaControls() const OVERRIDE { return true; }
virtual bool willRespondToMouseMoveEvents() OVERRIDE { return true; }
virtual void defaultEventHandler(Event*) OVERRIDE;
bool containsRelatedTarget(Event*);
@@ -111,6 +99,8 @@ private:
MediaControlTextTrackContainerElement* m_textDisplayContainer;
// Media control elements.
+ MediaControlOverlayPlayButtonElement* m_overlayPlayButton;
+ MediaControlOverlayEnclosureElement* m_overlayEnclosure;
MediaControlPlayButtonElement* m_playButton;
MediaControlCurrentTimeDisplayElement* m_currentTimeDisplay;
MediaControlTimelineElement* m_timeline;
« no previous file with comments | « Source/core/css/mediaControlsAndroid.css ('k') | Source/core/html/shadow/MediaControls.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698