| 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..aab895339fc825331daa04ab82b5cd9815e8c6fe 100644
|
| --- a/Source/core/html/shadow/MediaControls.h
|
| +++ b/Source/core/html/shadow/MediaControls.h
|
| @@ -34,12 +34,11 @@ namespace WebCore {
|
|
|
| class Document;
|
| class Event;
|
| +class HTMLMediaElement;
|
|
|
| class MediaControls FINAL : public HTMLDivElement {
|
| public:
|
| - static PassRefPtr<MediaControls> create(Document&);
|
| -
|
| - void setMediaController(MediaControllerInterface*);
|
| + static PassRefPtr<MediaControls> create(HTMLMediaElement&);
|
|
|
| void reset();
|
|
|
| @@ -65,9 +64,11 @@ public:
|
| void updateTextTrackDisplay();
|
|
|
| private:
|
| - explicit MediaControls(Document&);
|
| + explicit MediaControls(HTMLMediaElement&);
|
| +
|
| + bool initializeControls();
|
|
|
| - bool initializeControls(Document&);
|
| + MediaControllerInterface& mediaControllerInterface() const;
|
|
|
| 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;
|
|
|