diff options
author | Feng Qian <fqian@google.com> | 2009-06-17 12:12:20 -0700 |
---|---|---|
committer | Feng Qian <fqian@google.com> | 2009-06-17 12:12:20 -0700 |
commit | 5f1ab04193ad0130ca8204aadaceae083aca9881 (patch) | |
tree | 5a92cd389e2cfe7fb67197ce14b38469462379f8 /WebCore/rendering/MediaControlElements.h | |
parent | 194315e5a908cc8ed67d597010544803eef1ac59 (diff) | |
download | external_webkit-5f1ab04193ad0130ca8204aadaceae083aca9881.zip external_webkit-5f1ab04193ad0130ca8204aadaceae083aca9881.tar.gz external_webkit-5f1ab04193ad0130ca8204aadaceae083aca9881.tar.bz2 |
Get WebKit r44544.
Diffstat (limited to 'WebCore/rendering/MediaControlElements.h')
-rw-r--r-- | WebCore/rendering/MediaControlElements.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/WebCore/rendering/MediaControlElements.h b/WebCore/rendering/MediaControlElements.h index fa0fb30..d52d4bc 100644 --- a/WebCore/rendering/MediaControlElements.h +++ b/WebCore/rendering/MediaControlElements.h @@ -43,7 +43,7 @@ namespace WebCore { class Event; class Frame; -enum MediaControlElements { +enum MediaControlElementType { MediaFullscreenButton, MediaMuteButton, MediaPlayButton, MediaSeekBackButton, MediaSeekForwardButton, MediaSlider, MediaSliderThumb, MediaUnMuteButton, MediaPauseButton, MediaTimelineContainer, MediaCurrentTimeDisplay, @@ -88,14 +88,19 @@ public: class MediaControlInputElement : public HTMLInputElement { public: - MediaControlInputElement(Document*, PseudoId, const String& type, HTMLMediaElement*); + MediaControlInputElement(Document*, PseudoId, const String& type, HTMLMediaElement*, MediaControlElementType); void attachToParent(Element*); void update(); void updateStyle(); bool hitTest(const IntPoint& absPoint); + protected: + virtual void updateDisplayType() { } + void setDisplayType(MediaControlElementType); + HTMLMediaElement* m_mediaElement; PseudoId m_pseudoStyleId; + MediaControlElementType m_displayType; // some elements can show multiple types (e.g. play/pause) }; // ---------------------------- @@ -104,6 +109,7 @@ class MediaControlMuteButtonElement : public MediaControlInputElement { public: MediaControlMuteButtonElement(Document*, HTMLMediaElement*); virtual void defaultEventHandler(Event*); + virtual void updateDisplayType(); }; // ---------------------------- @@ -112,6 +118,7 @@ class MediaControlPlayButtonElement : public MediaControlInputElement { public: MediaControlPlayButtonElement(Document*, HTMLMediaElement*); virtual void defaultEventHandler(Event*); + virtual void updateDisplayType(); }; // ---------------------------- |