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

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

Issue 2376353002: Apply media controls button Android rules for all of them. (Closed)
Patch Set: rebaseline Created 4 years, 3 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 | « third_party/WebKit/Source/core/css/mediaControlsAndroidNew.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1d5c093b48c40c8ead7e9b768e5d78a19548cc27..2c10fbe4bb86949d605dcb487173e01cbf47ccd4 100644
--- a/third_party/WebKit/Source/core/paint/MediaControlsPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/MediaControlsPainter.cpp
@@ -612,7 +612,7 @@ bool MediaControlsPainter::paintMediaOverflowMenu(const LayoutObject& object, co
return false;
static Image* mediaOverflowButton = platformResource("mediaplayerOverflowMenu");
- return paintMediaButton(paintInfo.context, rect, mediaOverflowButton);
+ return paintMediaButton(paintInfo.context, rect, mediaOverflowButton, &object, true);
}
bool MediaControlsPainter::paintMediaDownloadIcon(const LayoutObject& object, const PaintInfo& paintInfo, const IntRect& rect)
@@ -621,8 +621,10 @@ bool MediaControlsPainter::paintMediaDownloadIcon(const LayoutObject& object, co
if (!mediaElement)
return false;
+ bool isEnabled = hasSource(mediaElement);
+
static Image* mediaDownloadIcon = platformResource("mediaplayerDownloadIcon");
- return paintMediaButton(paintInfo.context, rect, mediaDownloadIcon);
+ return paintMediaButton(paintInfo.context, rect, mediaDownloadIcon, &object, isEnabled);
}
void MediaControlsPainter::adjustMediaSliderThumbSize(ComputedStyle& style)
« no previous file with comments | « third_party/WebKit/Source/core/css/mediaControlsAndroidNew.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698