Changeset 109776 in webkit
- Timestamp:
- Mar 5, 2012 11:38:04 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r109775 r109776 1 2012-03-05 Min Qin <qinmin@google.com> 2 3 Add media control css for chromium on android 4 https://bugs.webkit.org/show_bug.cgi?id=79550 5 6 Reviewed by Adam Barth. 7 8 This should not change the any test results as it does not affect the any current bots. New test expectations will be added if we have a android bot on webkit. 9 10 * WebCore.gyp/WebCore.gyp: 11 * css/mediaControlsChromiumAndroid.css: Added. 12 (body:-webkit-full-page-media): 13 (audio): 14 (audio:-webkit-full-page-media, video:-webkit-full-page-media): 15 (audio::-webkit-media-controls-panel, video::-webkit-media-controls-panel): 16 (video:-webkit-full-page-media::-webkit-media-controls-panel): 17 (audio::-webkit-media-controls-mute-button, video::-webkit-media-controls-mute-button): 18 (audio::-webkit-media-controls-play-button, video::-webkit-media-controls-play-button): 19 (audio::-webkit-media-controls-timeline-container): 20 (video::-webkit-media-controls-timeline-container): 21 (audio::-webkit-media-controls-current-time-display, video::-webkit-media-controls-current-time-display): 22 (audio::-webkit-media-controls-timeline, video::-webkit-media-controls-timeline): 23 (video::-webkit-media-controls-fullscreen-button): 24 (audio::-webkit-media-controls-fullscreen-button): 25 (audio::-webkit-media-controls-volume-slider-container, video::-webkit-media-controls-volume-slider-container): 26 (audio::-webkit-media-controls-volume-slider, video::-webkit-media-controls-volume-slider): 27 * rendering/RenderMediaControlsChromium.cpp: 28 (WebCore::paintMediaFullscreenButton): 29 (WebCore): 30 (WebCore::RenderMediaControlsChromium::paintMediaControlsPart): 31 * rendering/RenderThemeChromiumAndroid.cpp: 32 (WebCore::RenderThemeChromiumAndroid::extraMediaControlsStyleSheet): 33 (WebCore): 34 (WebCore::RenderThemeChromiumAndroid::paintMediaFullscreenButton): 35 * rendering/RenderThemeChromiumAndroid.h: 36 1 37 2012-03-05 Anders Carlsson <andersca@apple.com> 2 38 -
trunk/Source/WebCore/WebCore.gyp/WebCore.gyp
r109538 r109776 828 828 '../css/mediaControls.css', 829 829 '../css/mediaControlsChromium.css', 830 '../css/mediaControlsChromiumAndroid.css', 830 831 '../css/fullscreen.css', 831 832 # Skip fullscreenQuickTime. -
trunk/Source/WebCore/rendering/RenderMediaControlsChromium.cpp
r109231 r109776 239 239 } 240 240 241 static bool paintMediaFullscreenButton(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect) 242 { 243 HTMLMediaElement* mediaElement = toParentMediaElement(object); 244 if (!mediaElement) 245 return false; 246 247 DEFINE_STATIC_LOCAL(Image*, mediaFullscreen, (platformResource("mediaFullscreen"))); 248 return paintMediaButton(paintInfo.context, rect, mediaFullscreen); 249 } 250 241 251 bool RenderMediaControlsChromium::paintMediaControlsPart(MediaControlElementType part, RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect) 242 252 { … … 258 268 case MediaTimelineContainer: 259 269 return paintMediaTimelineContainer(object, paintInfo, rect); 270 case MediaFullscreenButton: 271 return paintMediaFullscreenButton(object, paintInfo, rect); 260 272 case MediaVolumeSliderMuteButton: 261 case MediaFullscreenButton:262 273 case MediaSeekBackButton: 263 274 case MediaSeekForwardButton: -
trunk/Source/WebCore/rendering/RenderThemeChromiumAndroid.cpp
r107998 r109776 31 31 #include "PaintInfo.h" 32 32 #include "PlatformSupport.h" 33 #include "RenderMediaControlsChromium.h" 33 34 #include "RenderObject.h" 34 35 #include "RenderProgress.h" … … 64 65 } 65 66 67 String RenderThemeChromiumAndroid::extraMediaControlsStyleSheet() 68 { 69 return String(mediaControlsChromiumAndroidUserAgentStyleSheet, sizeof(mediaControlsChromiumAndroidUserAgentStyleSheet)); 70 } 71 66 72 String RenderThemeChromiumAndroid::extraDefaultStyleSheet() 67 73 { … … 82 88 } 83 89 90 bool RenderThemeChromiumAndroid::paintMediaFullscreenButton(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect) 91 { 92 #if ENABLE(VIDEO) 93 return RenderMediaControlsChromium::paintMediaControlsPart(MediaFullscreenButton, object, paintInfo, rect); 94 #else 95 UNUSED_PARAM(object); 96 UNUSED_PARAM(paintInfo); 97 UNUSED_PARAM(rect); 98 return false; 99 #endif 100 } 101 84 102 } // namespace WebCore -
trunk/Source/WebCore/rendering/RenderThemeChromiumAndroid.h
r107998 r109776 42 42 virtual bool delegatesMenuListRendering() const OVERRIDE { return true; } 43 43 44 virtual bool paintMediaFullscreenButton(RenderObject*, const PaintInfo&, const IntRect&); 45 46 #if ENABLE(VIDEO) 47 virtual String extraMediaControlsStyleSheet() OVERRIDE; 48 #endif 49 44 50 #if ENABLE(TOUCH_EVENTS) 45 51 virtual Color platformTapHighlightColor() const OVERRIDE
Note: See TracChangeset
for help on using the changeset viewer.