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

Unified Diff: Source/core/rendering/RenderThemeChromiumSkia.cpp

Issue 291163004: Implement media cast buttons (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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
Index: Source/core/rendering/RenderThemeChromiumSkia.cpp
diff --git a/Source/core/rendering/RenderThemeChromiumSkia.cpp b/Source/core/rendering/RenderThemeChromiumSkia.cpp
index 98a001bcba03bbb7afee176b66147bfcc453bc76..39cb170a964e2beef6f97b25e7c5f83bf14e2e00 100644
--- a/Source/core/rendering/RenderThemeChromiumSkia.cpp
+++ b/Source/core/rendering/RenderThemeChromiumSkia.cpp
@@ -25,6 +25,9 @@
#include "core/rendering/RenderThemeChromiumSkia.h"
#include "UserAgentStyleSheets.h"
+
+#include "base/logging.h"
+
#include "core/rendering/PaintInfo.h"
#include "core/rendering/RenderBox.h"
#include "core/rendering/RenderMediaControls.h"
@@ -315,7 +318,16 @@ bool RenderThemeChromiumSkia::paintMediaToggleClosedCaptionsButton(RenderObject*
{
return RenderMediaControls::paintMediaControlsPart(MediaShowClosedCaptionsButton, o, paintInfo, r);
}
-
+bool RenderThemeChromiumSkia::paintMediaCastOnButton(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r)
+{
+ LOG(INFO) << "Painting cast on in skia";
+ return RenderMediaControls::paintMediaControlsPart(MediaCastOnButton, o, paintInfo, r);
+}
+bool RenderThemeChromiumSkia::paintMediaCastOffButton(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r)
+{
+ LOG(INFO) << "Painting cast off in skia";
+ return RenderMediaControls::paintMediaControlsPart(MediaCastOffButton, o, paintInfo, r);
+}
bool RenderThemeChromiumSkia::paintMediaVolumeSliderThumb(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect)
{
return RenderMediaControls::paintMediaControlsPart(MediaVolumeSliderThumb, object, paintInfo, rect);
@@ -328,6 +340,7 @@ bool RenderThemeChromiumSkia::paintMediaPlayButton(RenderObject* object, const P
bool RenderThemeChromiumSkia::paintMediaOverlayPlayButton(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect)
{
+ LOG(INFO) << "Painting play button in skia";
return RenderMediaControls::paintMediaControlsPart(MediaOverlayPlayButton, object, paintInfo, rect);
}

Powered by Google App Engine
This is Rietveld 408576698