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

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

Issue 195473002: Let MediaControls use the parent HTMLMediaElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Give MediaControls to MediaControlElements 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/html/shadow/MediaControlElements.cpp ('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 b3a5f07fc2076782beb0ba675911a562571209eb..669b295eb0d9a6c48c33c60505e8082ad1feeee5 100644
--- a/Source/core/html/shadow/MediaControls.h
+++ b/Source/core/html/shadow/MediaControls.h
@@ -37,9 +37,10 @@ class Event;
class MediaControls FINAL : public HTMLDivElement {
public:
- static PassRefPtr<MediaControls> create(Document&);
+ static PassRefPtr<MediaControls> create(HTMLMediaElement&);
- void setMediaController(MediaControllerInterface*);
+ HTMLMediaElement& mediaElement() const { return m_mediaElement; }
+ MediaControllerInterface& mediaControllerInterface() const;
void reset();
@@ -65,9 +66,9 @@ public:
void updateTextTrackDisplay();
private:
- explicit MediaControls(Document&);
+ explicit MediaControls(HTMLMediaElement&);
- bool initializeControls(Document&);
+ bool initializeControls();
void makeOpaque();
void makeTransparent();
@@ -90,7 +91,7 @@ private:
// Element
virtual const AtomicString& shadowPseudoId() const OVERRIDE;
- MediaControllerInterface* m_mediaController;
+ HTMLMediaElement& m_mediaElement;
// Container for the media control elements.
MediaControlPanelElement* m_panel;
« no previous file with comments | « Source/core/html/shadow/MediaControlElements.cpp ('k') | Source/core/html/shadow/MediaControls.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698