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

Issue 2293273002: Add a download button to the media player (Closed)

Created:
4 years, 3 months ago by kdsilva
Modified:
4 years, 3 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-css, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, mlamouri+watch-blink_chromium.org, rwlbuis, nessy, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/src.git@media-controls
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding a download button to the media player controls. This CL contains the logic behind a runtime enabled flag to display a download button for downloadable files. It does not contain the full implementation to download the media. BUG=601247 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/ee3c3c6bf22c61bbf5e6be043ac20d9e8bf91ff2 Cr-Commit-Position: refs/heads/master@{#417996}

Patch Set 1 #

Patch Set 2 #

Patch Set 3 #

Patch Set 4 #

Patch Set 5 : added runtime flag #

Patch Set 6 : #

Patch Set 7 : rebased #

Patch Set 8 : addressed comments #

Total comments: 7

Patch Set 9 : added tests for mse & mediastream #

Total comments: 2

Patch Set 10 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -4 lines) Patch
M content/app/strings/content_strings.grd View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M content/child/blink_platform_impl.cc View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/overflow-menu.js View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
A third_party/WebKit/LayoutTests/media/video-controls-download-button-displayed.html View 1 2 3 4 5 6 7 8 1 chunk +24 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/media/video-controls-download-button-not-displayed-mediastream.html View 1 2 3 4 5 6 7 8 1 chunk +20 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/media/video-controls-download-button-not-displayed-mse.html View 1 2 3 4 5 6 7 8 9 1 chunk +19 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-correct-ordering.html View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-text.html View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSValueKeywords.in View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/mediaControlsNew.css View 1 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControlElementTypes.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControlElements.h View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp View 1 2 3 4 5 6 7 8 1 chunk +36 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControls.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControls.cpp View 1 2 3 4 5 6 8 7 chunks +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/MediaControlsPainter.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/MediaControlsPainter.cpp View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ThemePainter.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/ThemeTypes.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/blink_image_resources.grd View 1 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/public/default_100_percent/blink/mediaplayer_download.png View 1 2 3 4 5 6 Binary file 0 comments Download
M third_party/WebKit/public/platform/WebLocalizedString.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 43 (29 generated)
kdsilva
This CL doesn't contain code to actually download media but instead the logic for when ...
4 years, 3 months ago (2016-09-07 19:22:21 UTC) #10
whywhat
lgtm what are the plans for implementing the download? could you point to a bug ...
4 years, 3 months ago (2016-09-08 14:22:57 UTC) #12
whywhat
Also, add a bug number to the CL description.
4 years, 3 months ago (2016-09-08 14:23:28 UTC) #13
kdsilva
Done. To answer your question, the code is in progress with the implementation of the ...
4 years, 3 months ago (2016-09-12 10:36:07 UTC) #24
mlamouri (slow - plz ping)
lgtm but can you add tests for MSE/MediaStream? https://codereview.chromium.org/2293273002/diff/200001/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp File third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp (right): https://codereview.chromium.org/2293273002/diff/200001/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp#newcode653 third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp:653: if ...
4 years, 3 months ago (2016-09-12 11:06:25 UTC) #25
kdsilva
@clamy: Could you rubber stamp the content code? @foolip: Could you rubber stamp the Webkit ...
4 years, 3 months ago (2016-09-12 13:20:58 UTC) #29
clamy
content/ lgtm.
4 years, 3 months ago (2016-09-12 14:12:29 UTC) #30
foolip
rs lgtm
4 years, 3 months ago (2016-09-12 15:46:32 UTC) #31
kdsilva
https://codereview.chromium.org/2293273002/diff/200001/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp File third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp (right): https://codereview.chromium.org/2293273002/diff/200001/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp#newcode655 third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp:655: } On 2016/09/12 11:06:25, mlamouri wrote: > style: no ...
4 years, 3 months ago (2016-09-12 17:25:49 UTC) #34
mlamouri (slow - plz ping)
tests lgtm https://codereview.chromium.org/2293273002/diff/220001/third_party/WebKit/LayoutTests/media/video-controls-download-button-not-displayed-mse.html File third_party/WebKit/LayoutTests/media/video-controls-download-button-not-displayed-mse.html (right): https://codereview.chromium.org/2293273002/diff/220001/third_party/WebKit/LayoutTests/media/video-controls-download-button-not-displayed-mse.html#newcode17 third_party/WebKit/LayoutTests/media/video-controls-download-button-not-displayed-mse.html:17: v.srcObject = null; Remove `v.srcObject=null`
4 years, 3 months ago (2016-09-12 17:33:07 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2293273002/240001
4 years, 3 months ago (2016-09-12 17:37:08 UTC) #38
kdsilva
https://codereview.chromium.org/2293273002/diff/220001/third_party/WebKit/LayoutTests/media/video-controls-download-button-not-displayed-mse.html File third_party/WebKit/LayoutTests/media/video-controls-download-button-not-displayed-mse.html (right): https://codereview.chromium.org/2293273002/diff/220001/third_party/WebKit/LayoutTests/media/video-controls-download-button-not-displayed-mse.html#newcode17 third_party/WebKit/LayoutTests/media/video-controls-download-button-not-displayed-mse.html:17: v.srcObject = null; On 2016/09/12 17:33:07, mlamouri wrote: > ...
4 years, 3 months ago (2016-09-12 17:37:54 UTC) #39
commit-bot: I haz the power
Committed patchset #10 (id:240001)
4 years, 3 months ago (2016-09-12 19:20:55 UTC) #41
commit-bot: I haz the power
4 years, 3 months ago (2016-09-12 19:22:39 UTC) #43
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/ee3c3c6bf22c61bbf5e6be043ac20d9e8bf91ff2
Cr-Commit-Position: refs/heads/master@{#417996}

Powered by Google App Engine
This is Rietveld 408576698