summaryrefslogtreecommitdiffstats
path: root/WebCore/rendering/MediaControlElements.h
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-05 14:34:32 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-05 14:34:32 -0800
commit635860845790a19bf50bbc51ba8fb66a96dde068 (patch)
treeef6ad9ff73a5b57f65249d4232a202fa77e6a140 /WebCore/rendering/MediaControlElements.h
parent8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2 (diff)
downloadexternal_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.zip
external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.gz
external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.bz2
auto import from //depot/cupcake/@136594
Diffstat (limited to 'WebCore/rendering/MediaControlElements.h')
-rw-r--r--WebCore/rendering/MediaControlElements.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/WebCore/rendering/MediaControlElements.h b/WebCore/rendering/MediaControlElements.h
index 8ff726b..c1c9574 100644
--- a/WebCore/rendering/MediaControlElements.h
+++ b/WebCore/rendering/MediaControlElements.h
@@ -43,6 +43,13 @@ namespace WebCore {
class Event;
class Frame;
+enum MediaControlElements {
+ MediaFullscreenButton, MediaMuteButton, MediaPlayButton,
+ MediaSeekBackButton, MediaSeekForwardButton, MediaSlider, MediaSliderThumb,
+ MediaUnMuteButton, MediaPauseButton, MediaTimelineContainer, MediaCurrentTimeDisplay,
+ MediaTimeRemainingDisplay, MediaControlsPanel
+};
+
class MediaControlShadowRootElement : public HTMLDivElement {
public:
MediaControlShadowRootElement(Document*, HTMLMediaElement*);
@@ -54,6 +61,25 @@ private:
HTMLMediaElement* m_mediaElement;
};
+ // ----------------------------
+
+class MediaTextDisplayElement : public HTMLDivElement
+{
+public:
+ MediaTextDisplayElement(Document*, RenderStyle::PseudoId, HTMLMediaElement*);
+ void attachToParent(Element*);
+ void update();
+protected:
+ HTMLMediaElement* m_mediaElement;
+};
+
+// ----------------------------
+
+class MediaTimeDisplayElement : public MediaTextDisplayElement {
+public:
+ MediaTimeDisplayElement(Document*, HTMLMediaElement*, bool currentTime);
+};
+
// ----------------------------
class MediaControlInputElement : public HTMLInputElement {
@@ -61,6 +87,7 @@ public:
MediaControlInputElement(Document*, RenderStyle::PseudoId, const String& type, HTMLMediaElement*);
void attachToParent(Element*);
void update();
+ bool hitTest(const IntPoint& absPoint);
protected:
HTMLMediaElement* m_mediaElement;
};