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

Unified Diff: third_party/WebKit/Source/core/paint/MediaControlsPainter.cpp

Issue 2767823002: Media Remoting: Add interstitial elements to media element shadow dom. (Closed)
Patch Set: Rebased. Created 3 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
Index: third_party/WebKit/Source/core/paint/MediaControlsPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/MediaControlsPainter.cpp b/third_party/WebKit/Source/core/paint/MediaControlsPainter.cpp
index 48ec7094c28e43d7dee482b96a00a0a776209e43..6504977b6cc0cb6baabae2cc3d46d3cadc039e6e 100644
--- a/third_party/WebKit/Source/core/paint/MediaControlsPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/MediaControlsPainter.cpp
@@ -217,6 +217,18 @@ static void PaintRoundedSliderBackground(const IntRect& rect,
slider_background_color);
}
+bool MediaControlsPainter::PaintMediaRemotingCastIcon(
+ const LayoutObject& object,
+ const PaintInfo& paintInfo,
+ const IntRect& rect) {
+ const HTMLMediaElement* media_element = ToParentMediaElement(object);
+ if (!media_element)
+ return false;
+ static Image* cast_icon = PlatformResource("mediaRemotingCastIcon");
+
+ return PaintMediaButton(paintInfo.context, rect, cast_icon);
+}
+
static void PaintSliderRangeHighlight(const IntRect& rect,
const ComputedStyle& style,
GraphicsContext& context,
« no previous file with comments | « third_party/WebKit/Source/core/paint/MediaControlsPainter.h ('k') | third_party/WebKit/Source/core/paint/ThemePainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698