diff options
author | Nicolas Roard <nicolasroard@google.com> | 2011-03-14 13:23:18 -0700 |
---|---|---|
committer | Nicolas Roard <nicolasroard@google.com> | 2011-03-14 19:07:36 -0700 |
commit | 833c9ceaa300f52cf2d1b12a9b3482ad417a3c21 (patch) | |
tree | 0fa83f5b4a725f225ef285f1b5e28e404feb8050 /WebCore/platform/android/RenderThemeAndroid.h | |
parent | a0fb3c7e0c38540c392a5248b0f1100c158612f9 (diff) | |
download | external_webkit-833c9ceaa300f52cf2d1b12a9b3482ad417a3c21.zip external_webkit-833c9ceaa300f52cf2d1b12a9b3482ad417a3c21.tar.gz external_webkit-833c9ceaa300f52cf2d1b12a9b3482ad417a3c21.tar.bz2 |
Improving HTML5 video controls
- correct support for the fullscreen button
- change the controls to be 48px high
- auto-hide the controls, touching the video makes them appear again
bug:2126902
Change-Id: Idd2b720034de3d5d432c9ea62d9045934c46f6c1
Diffstat (limited to 'WebCore/platform/android/RenderThemeAndroid.h')
-rw-r--r-- | WebCore/platform/android/RenderThemeAndroid.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/WebCore/platform/android/RenderThemeAndroid.h b/WebCore/platform/android/RenderThemeAndroid.h index 74820f2..8314a9c 100644 --- a/WebCore/platform/android/RenderThemeAndroid.h +++ b/WebCore/platform/android/RenderThemeAndroid.h @@ -81,13 +81,16 @@ protected: virtual String extraMediaControlsStyleSheet(); virtual void adjustSliderThumbSize(RenderObject* o) const; virtual bool shouldRenderMediaControlPart(ControlPart part, Element* e); - bool paintMediaMuteButton(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r); - bool paintMediaPlayButton(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r); - bool paintMediaSeekBackButton(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r); - bool paintMediaSeekForwardButton(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r); - bool paintMediaSliderTrack(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r); - bool paintMediaSliderThumb(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r); + virtual bool paintMediaFullscreenButton(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r); + virtual bool paintMediaMuteButton(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r); + virtual bool paintMediaPlayButton(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r); + virtual bool paintMediaSeekBackButton(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r); + virtual bool paintMediaSeekForwardButton(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r); + virtual bool paintMediaSliderTrack(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r); + virtual bool paintMediaSliderThumb(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r); virtual bool paintMediaControlsBackground(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect); + virtual double mediaControlsFadeInDuration() { return 0.5; } + virtual double mediaControlsFadeOutDuration() { return 0.5; } #endif virtual bool paintRadio(RenderObject*, const PaintInfo&, const IntRect&); |