Index: Source/core/html/shadow/MediaControlElements.h |
diff --git a/Source/core/html/shadow/MediaControlElements.h b/Source/core/html/shadow/MediaControlElements.h |
index 49c6aa2312f86d4c35e3bd11ffd493d502442fd9..4b1a3fdaaefca4495640f62a5bf151e87771ca8d 100644 |
--- a/Source/core/html/shadow/MediaControlElements.h |
+++ b/Source/core/html/shadow/MediaControlElements.h |
@@ -38,7 +38,7 @@ namespace WebCore { |
class MediaControlPanelElement FINAL : public MediaControlDivElement { |
public: |
- static PassRefPtr<MediaControlPanelElement> create(Document&); |
+ static PassRefPtr<MediaControlPanelElement> create(MediaControls&); |
void setCanBeDragged(bool); |
void setIsDisplayed(bool); |
@@ -51,7 +51,7 @@ public: |
virtual bool willRespondToMouseClickEvents() OVERRIDE { return true; } |
private: |
- explicit MediaControlPanelElement(Document&); |
+ explicit MediaControlPanelElement(MediaControls&); |
virtual const AtomicString& shadowPseudoId() const OVERRIDE; |
virtual void defaultEventHandler(Event*) OVERRIDE; |
@@ -80,10 +80,10 @@ private: |
class MediaControlPanelEnclosureElement FINAL : public MediaControlDivElement { |
public: |
- static PassRefPtr<MediaControlPanelEnclosureElement> create(Document&); |
+ static PassRefPtr<MediaControlPanelEnclosureElement> create(MediaControls&); |
private: |
- explicit MediaControlPanelEnclosureElement(Document&); |
+ explicit MediaControlPanelEnclosureElement(MediaControls&); |
virtual const AtomicString& shadowPseudoId() const OVERRIDE; |
}; |
@@ -91,10 +91,10 @@ private: |
class MediaControlOverlayEnclosureElement FINAL : public MediaControlDivElement { |
public: |
- static PassRefPtr<MediaControlOverlayEnclosureElement> create(Document&); |
+ static PassRefPtr<MediaControlOverlayEnclosureElement> create(MediaControls&); |
private: |
- explicit MediaControlOverlayEnclosureElement(Document&); |
+ explicit MediaControlOverlayEnclosureElement(MediaControls&); |
virtual const AtomicString& shadowPseudoId() const OVERRIDE; |
}; |
@@ -102,13 +102,13 @@ private: |
class MediaControlMuteButtonElement FINAL : public MediaControlInputElement { |
public: |
- static PassRefPtr<MediaControlMuteButtonElement> create(Document&); |
+ static PassRefPtr<MediaControlMuteButtonElement> create(MediaControls&); |
virtual bool willRespondToMouseClickEvents() OVERRIDE { return true; } |
virtual void updateDisplayType() OVERRIDE; |
private: |
- explicit MediaControlMuteButtonElement(Document&); |
+ explicit MediaControlMuteButtonElement(MediaControls&); |
virtual const AtomicString& shadowPseudoId() const OVERRIDE; |
virtual void defaultEventHandler(Event*) OVERRIDE; |
@@ -118,13 +118,13 @@ private: |
class MediaControlPlayButtonElement FINAL : public MediaControlInputElement { |
public: |
- static PassRefPtr<MediaControlPlayButtonElement> create(Document&); |
+ static PassRefPtr<MediaControlPlayButtonElement> create(MediaControls&); |
virtual bool willRespondToMouseClickEvents() OVERRIDE { return true; } |
virtual void updateDisplayType() OVERRIDE; |
private: |
- explicit MediaControlPlayButtonElement(Document&); |
+ explicit MediaControlPlayButtonElement(MediaControls&); |
virtual const AtomicString& shadowPseudoId() const OVERRIDE; |
virtual void defaultEventHandler(Event*) OVERRIDE; |
@@ -134,12 +134,12 @@ private: |
class MediaControlOverlayPlayButtonElement FINAL : public MediaControlInputElement { |
public: |
- static PassRefPtr<MediaControlOverlayPlayButtonElement> create(Document&); |
+ static PassRefPtr<MediaControlOverlayPlayButtonElement> create(MediaControls&); |
virtual void updateDisplayType() OVERRIDE; |
private: |
- explicit MediaControlOverlayPlayButtonElement(Document&); |
+ explicit MediaControlOverlayPlayButtonElement(MediaControls&); |
virtual const AtomicString& shadowPseudoId() const OVERRIDE; |
virtual void defaultEventHandler(Event*) OVERRIDE; |
@@ -149,14 +149,14 @@ private: |
class MediaControlToggleClosedCaptionsButtonElement FINAL : public MediaControlInputElement { |
public: |
- static PassRefPtr<MediaControlToggleClosedCaptionsButtonElement> create(Document&); |
+ static PassRefPtr<MediaControlToggleClosedCaptionsButtonElement> create(MediaControls&); |
virtual bool willRespondToMouseClickEvents() OVERRIDE { return true; } |
virtual void updateDisplayType() OVERRIDE; |
private: |
- explicit MediaControlToggleClosedCaptionsButtonElement(Document&); |
+ explicit MediaControlToggleClosedCaptionsButtonElement(MediaControls&); |
virtual const AtomicString& shadowPseudoId() const OVERRIDE; |
virtual void defaultEventHandler(Event*) OVERRIDE; |
@@ -166,7 +166,7 @@ private: |
class MediaControlTimelineElement FINAL : public MediaControlInputElement { |
public: |
- static PassRefPtr<MediaControlTimelineElement> create(Document&, MediaControls*); |
+ static PassRefPtr<MediaControlTimelineElement> create(MediaControls&); |
virtual bool willRespondToMouseClickEvents() OVERRIDE; |
@@ -174,26 +174,24 @@ public: |
void setDuration(double); |
private: |
- explicit MediaControlTimelineElement(Document&, MediaControls*); |
+ explicit MediaControlTimelineElement(MediaControls&); |
virtual const AtomicString& shadowPseudoId() const OVERRIDE; |
virtual void defaultEventHandler(Event*) OVERRIDE; |
- |
- MediaControls* m_controls; |
}; |
// ---------------------------- |
class MediaControlFullscreenButtonElement FINAL : public MediaControlInputElement { |
public: |
- static PassRefPtr<MediaControlFullscreenButtonElement> create(Document&); |
+ static PassRefPtr<MediaControlFullscreenButtonElement> create(MediaControls&); |
virtual bool willRespondToMouseClickEvents() OVERRIDE { return true; } |
void setIsFullscreen(bool); |
private: |
- explicit MediaControlFullscreenButtonElement(Document&); |
+ explicit MediaControlFullscreenButtonElement(MediaControls&); |
virtual const AtomicString& shadowPseudoId() const OVERRIDE; |
virtual void defaultEventHandler(Event*) OVERRIDE; |
@@ -203,14 +201,14 @@ private: |
class MediaControlVolumeSliderElement FINAL : public MediaControlInputElement { |
public: |
- static PassRefPtr<MediaControlVolumeSliderElement> create(Document&); |
+ static PassRefPtr<MediaControlVolumeSliderElement> create(MediaControls&); |
virtual bool willRespondToMouseMoveEvents() OVERRIDE; |
virtual bool willRespondToMouseClickEvents() OVERRIDE; |
void setVolume(double); |
private: |
- explicit MediaControlVolumeSliderElement(Document&); |
+ explicit MediaControlVolumeSliderElement(MediaControls&); |
virtual const AtomicString& shadowPseudoId() const OVERRIDE; |
virtual void defaultEventHandler(Event*) OVERRIDE; |
@@ -220,10 +218,10 @@ private: |
class MediaControlTimeRemainingDisplayElement FINAL : public MediaControlTimeDisplayElement { |
public: |
- static PassRefPtr<MediaControlTimeRemainingDisplayElement> create(Document&); |
+ static PassRefPtr<MediaControlTimeRemainingDisplayElement> create(MediaControls&); |
private: |
- explicit MediaControlTimeRemainingDisplayElement(Document&); |
+ explicit MediaControlTimeRemainingDisplayElement(MediaControls&); |
virtual const AtomicString& shadowPseudoId() const OVERRIDE; |
}; |
@@ -231,10 +229,10 @@ private: |
class MediaControlCurrentTimeDisplayElement FINAL : public MediaControlTimeDisplayElement { |
public: |
- static PassRefPtr<MediaControlCurrentTimeDisplayElement> create(Document&); |
+ static PassRefPtr<MediaControlCurrentTimeDisplayElement> create(MediaControls&); |
private: |
- explicit MediaControlCurrentTimeDisplayElement(Document&); |
+ explicit MediaControlCurrentTimeDisplayElement(MediaControls&); |
virtual const AtomicString& shadowPseudoId() const OVERRIDE; |
}; |
@@ -242,14 +240,14 @@ private: |
class MediaControlTextTrackContainerElement FINAL : public MediaControlDivElement { |
public: |
- static PassRefPtr<MediaControlTextTrackContainerElement> create(Document&); |
+ static PassRefPtr<MediaControlTextTrackContainerElement> create(MediaControls&); |
void updateDisplay(); |
void updateSizes(); |
static const AtomicString& textTrackContainerElementShadowPseudoId(); |
private: |
- explicit MediaControlTextTrackContainerElement(Document&); |
+ explicit MediaControlTextTrackContainerElement(MediaControls&); |
virtual const AtomicString& shadowPseudoId() const OVERRIDE; |
virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; |