Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(651)

Unified Diff: Source/core/paint/ThemePainterDefault.cpp

Issue 1115203003: De-virtualize media control painting methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Mac doesn't want cast button Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/paint/ThemePainterDefault.h ('k') | Source/core/paint/ThemePainterMac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/ThemePainterDefault.cpp
diff --git a/Source/core/paint/ThemePainterDefault.cpp b/Source/core/paint/ThemePainterDefault.cpp
index 2916f1bdbddeabed04ffce109e24d74a11c0d0d2..6c38ba31664e6300af0ba21fb33e14250e0aac1a 100644
--- a/Source/core/paint/ThemePainterDefault.cpp
+++ b/Source/core/paint/ThemePainterDefault.cpp
@@ -428,54 +428,9 @@ bool ThemePainterDefault::paintSearchFieldResultsDecoration(LayoutObject* magnif
return false;
}
-bool ThemePainterDefault::paintMediaSliderTrack(LayoutObject* object, const PaintInfo& paintInfo, const IntRect& rect)
+bool ThemePainterDefault::paintMediaCastButton(LayoutObject* object, const PaintInfo& paintInfo, const IntRect& rect)
{
- return MediaControlsPainter::paintMediaControlsPart(MediaSlider, object, paintInfo, rect);
-}
-
-bool ThemePainterDefault::paintMediaVolumeSliderTrack(LayoutObject* object, const PaintInfo& paintInfo, const IntRect& rect)
-{
- return MediaControlsPainter::paintMediaControlsPart(MediaVolumeSlider, object, paintInfo, rect);
-}
-
-bool ThemePainterDefault::paintMediaSliderThumb(LayoutObject* object, const PaintInfo& paintInfo, const IntRect& rect)
-{
- return MediaControlsPainter::paintMediaControlsPart(MediaSliderThumb, object, paintInfo, rect);
-}
-
-bool ThemePainterDefault::paintMediaToggleClosedCaptionsButton(LayoutObject* o, const PaintInfo& paintInfo, const IntRect& r)
-{
- return MediaControlsPainter::paintMediaControlsPart(MediaShowClosedCaptionsButton, o, paintInfo, r);
-}
-
-bool ThemePainterDefault::paintMediaCastButton(LayoutObject* o, const PaintInfo& paintInfo, const IntRect& r)
-{
- return MediaControlsPainter::paintMediaControlsPart(MediaCastOffButton, o, paintInfo, r);
-}
-
-bool ThemePainterDefault::paintMediaVolumeSliderThumb(LayoutObject* object, const PaintInfo& paintInfo, const IntRect& rect)
-{
- return MediaControlsPainter::paintMediaControlsPart(MediaVolumeSliderThumb, object, paintInfo, rect);
-}
-
-bool ThemePainterDefault::paintMediaPlayButton(LayoutObject* object, const PaintInfo& paintInfo, const IntRect& rect)
-{
- return MediaControlsPainter::paintMediaControlsPart(MediaPlayButton, object, paintInfo, rect);
-}
-
-bool ThemePainterDefault::paintMediaOverlayPlayButton(LayoutObject* object, const PaintInfo& paintInfo, const IntRect& rect)
-{
- return MediaControlsPainter::paintMediaControlsPart(MediaOverlayPlayButton, object, paintInfo, rect);
-}
-
-bool ThemePainterDefault::paintMediaMuteButton(LayoutObject* object, const PaintInfo& paintInfo, const IntRect& rect)
-{
- return MediaControlsPainter::paintMediaControlsPart(MediaMuteButton, object, paintInfo, rect);
-}
-
-bool ThemePainterDefault::paintMediaFullscreenButton(LayoutObject* object, const PaintInfo& paintInfo, const IntRect& rect)
-{
- return MediaControlsPainter::paintMediaControlsPart(MediaEnterFullscreenButton, object, paintInfo, rect);
+ return MediaControlsPainter::paintMediaCastButton(object, paintInfo, rect);
}
} // namespace blink
« no previous file with comments | « Source/core/paint/ThemePainterDefault.h ('k') | Source/core/paint/ThemePainterMac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698