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

Unified Diff: content/child/blink_platform_impl.cc

Issue 2293273002: Add a download button to the media player (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media-controls
Patch Set: added tests for mse & mediastream 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
Index: content/child/blink_platform_impl.cc
diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc
index c65fc9b23a312eb663cf93da0e3b06e4e538b66d..b02630358357766d44b5b840c59dd888a1f5e8ce 100644
--- a/content/child/blink_platform_impl.cc
+++ b/content/child/blink_platform_impl.cc
@@ -264,6 +264,8 @@ static int ToMessageID(WebLocalizedString::Name name) {
return IDS_MEDIA_OVERFLOW_MENU_PLAY;
case WebLocalizedString::OverflowMenuPause:
return IDS_MEDIA_OVERFLOW_MENU_PAUSE;
+ case WebLocalizedString::OverflowMenuDownload:
+ return IDS_MEDIA_OVERFLOW_MENU_DOWNLOAD;
case WebLocalizedString::PlaceholderForDayOfMonthField:
return IDS_FORM_PLACEHOLDER_FOR_DAY_OF_MONTH_FIELD;
case WebLocalizedString::PlaceholderForMonthField:
@@ -649,6 +651,9 @@ const DataResource kDataResources[] = {
{"mediaplayerOverflowMenu",
IDR_MEDIAPLAYER_OVERFLOW_MENU_ICON,
ui::SCALE_FACTOR_100P},
+ {"mediaplayerDownloadIcon",
+ IDR_MEDIAPLAYER_DOWNLOAD_ICON,
+ ui::SCALE_FACTOR_100P},
{"searchCancel", IDR_SEARCH_CANCEL, ui::SCALE_FACTOR_100P},
{"searchCancelPressed", IDR_SEARCH_CANCEL_PRESSED, ui::SCALE_FACTOR_100P},
{"textAreaResizeCorner", IDR_TEXTAREA_RESIZER, ui::SCALE_FACTOR_100P},

Powered by Google App Engine
This is Rietveld 408576698