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

Issue 1156993013: New media playback UI. (Closed)

Created:
5 years, 6 months ago by liberato (no reviews please)
Modified:
5 years, 4 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-html_chromium.org, blink-reviews-paint_chromium.org, blink-reviews-rendering, blink-reviews-style_chromium.org, dglazkov+blink, dshwang, eae+blinkwatch, eric.carlson_apple.com, feature-media-reviews_chromium.org, gasubic, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, rwlbuis, nessy, slimming-paint-reviews_chromium.org, vcarbune.chromium, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Optionally replace media playback UI (Off by default) This CL adds a new media playback UI (crbug.com/446450), hidden behind RuntimeEnabledFeatures::newMediaPlaybackUi . By default, the behavior should be unchanged. https://codereview.chromium.org/1266813002 enables this UI as the default for clank only. To see the new clank UI on other platforms, run with --enable-blink-features=newMediaPlaybackUi . The desktop UI is still being revised. This CL does not rebaseline the layout tests since the feature is off by default. Once the desktop UI is finalized in a future CL, the runtime feature and the code for the old UI will be removed. BUG=446350, 488625, 487344 Screenshots can be found here: https://code.google.com/p/chromium/issues/detail?id=446350#c74 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200116

Patch Set 1 #

Patch Set 2 : Cleaned up comments, etc. #

Patch Set 3 : Rebased. #

Patch Set 4 : Turned off New UI as default #

Patch Set 5 : Turned off debug unless new ui is enabled. #

Patch Set 6 : Fixed volume slider in current UI case. #

Patch Set 7 : Fixed clobbered assets. #

Patch Set 8 : Updated slider paint #

Patch Set 9 : updated button paint #

Patch Set 10 : Rebased. #

Patch Set 11 : Updated for new GraphicsContext changes. #

Patch Set 12 : Removed debug rectangles. #

Patch Set 13 : Fixed disabled player state. #

Patch Set 14 : Fixed display of zoom slider and narrow players. #

Patch Set 15 : Fixed tests (thanks, trybots!) and duration display. #

Total comments: 6

Patch Set 16 : New volume icons. #

Patch Set 17 : Rebased. #

Total comments: 34

Patch Set 18 : manual rebaseline. #

Total comments: 62

Patch Set 19 : addressed (some) cl feedback. #

Patch Set 20 : fixed some tests from previous CL. #

Total comments: 111

Patch Set 21 : lots of cl feedback, turned feature to off by default. #

Patch Set 22 : fixed broken unit test, rebaselined another. #

Patch Set 23 : fixed two test failures -- need tryOverlayCast after all :) #

Patch Set 24 : cleaned up volume / mute hiding logic. #

Total comments: 14

Patch Set 25 : Moved allow* to Internals.idl. #

Patch Set 26 : cl feedback, tried to fix weird linker error. #

Patch Set 27 : added websettings, added white background to overlay cast, updated overlay cast behavior. #

Patch Set 28 : git rebase-no-matic. #

Patch Set 29 : rebased, again. #

Patch Set 30 : Fixed my own broken unit test. They really work! #

Total comments: 5

Patch Set 31 : cl feedback. #

Patch Set 32 : minor decrufting. #

Total comments: 53

Patch Set 33 : added batched updates for control visibility, cl feedback #

Patch Set 34 : Added batched updates for controls visibility, more cl feedback. #

Patch Set 35 : fixed some failing tests. #

Patch Set 36 : fixed more unit tests, rebased. #

Patch Set 37 : only call clientWidth() from reset to try to fix layout tests. #

Patch Set 38 : switched to click special case in slider thumb. #

Patch Set 39 : removed slider click handling, since deferring desktop. #

Patch Set 40 : removed panelWidth check and unused method declaration. #

Patch Set 41 : Added WebRuntimeFeature, updated CL description #

Patch Set 42 : actually got the other CL number right... #

Total comments: 11

Patch Set 43 : cl feedback, rebased. #

Total comments: 3

Patch Set 44 : made batch counter static, moved NON_COPYABLE, made miniumWidth 48 in all cases. #

Patch Set 45 : ...because i compiled release. #

Total comments: 10

Patch Set 46 : deflaked some tests. #

Patch Set 47 : re-added a few deflaked tests. #

Patch Set 48 : Rebased to land.... Of course i'm serious, and don't call me Shirley. #

Patch Set 49 : Modified css. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M Source/core/css/mediaControlsNew.css View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 97 (27 generated)
liberato (no reviews please)
Hello This CL provides an new media playback UI (see BUG). It is off by ...
5 years, 6 months ago (2015-06-08 21:29:15 UTC) #3
DaleCurtis
Nice work! Can you post some screen shots to the bugs of the new controls? ...
5 years, 6 months ago (2015-06-08 21:39:17 UTC) #5
aurimas (slooooooooow)
On 2015/06/08 at 21:39:17, dalecurtis wrote: > Nice work! Can you post some screen shots ...
5 years, 6 months ago (2015-06-08 21:59:29 UTC) #6
liberato (no reviews please)
On 2015/06/08 21:39:17, DaleCurtis wrote: > Nice work! Can you post some screen shots to ...
5 years, 6 months ago (2015-06-08 22:00:20 UTC) #7
liberato (no reviews please)
On 2015/06/08 21:59:29, aurimas wrote: > On 2015/06/08 at 21:39:17, dalecurtis wrote: > > Nice ...
5 years, 6 months ago (2015-06-08 22:08:49 UTC) #8
DaleCurtis
Looks really nice! I do worry about all the magic values everywhere, is there any ...
5 years, 6 months ago (2015-06-11 00:54:29 UTC) #9
liberato (no reviews please)
thanks for the feedback. overarching reply: blink-in-js looks better all the time. -fl https://codereview.chromium.org/1156993013/diff/270001/Source/core/css/CSSDefaultStyleSheets.cpp File ...
5 years, 6 months ago (2015-06-11 01:06:52 UTC) #10
liberato (no reviews please)
thanks for the feedback. overarching reply: blink-in-js looks better all the time. -fl
5 years, 6 months ago (2015-06-11 01:06:55 UTC) #11
jochen (gone - plz use gerrit)
could you please send an intent to implement mail for this feature? also, there should ...
5 years, 6 months ago (2015-06-17 08:53:34 UTC) #13
philipj_slow
I've made a build with this and it looks quite nice! Is the plan to ...
5 years, 6 months ago (2015-06-17 12:52:25 UTC) #14
liberato (no reviews please)
philipj: thanks for the feedback. side by side css: the plan is for the *new.css ...
5 years, 6 months ago (2015-06-17 17:07:26 UTC) #15
philipj_slow
Stumbled upon this, might be relevant to the font question: https://codereview.chromium.org/1130613002
5 years, 6 months ago (2015-06-18 12:12:39 UTC) #16
liberato (no reviews please)
this new patch addresses some of the CL feedback. Still need to diff against most ...
5 years, 6 months ago (2015-06-19 21:52:41 UTC) #17
liberato (no reviews please)
On 2015/06/19 21:52:41, liberato wrote: > this new patch addresses some of the CL feedback. ...
5 years, 6 months ago (2015-06-19 22:00:16 UTC) #18
liberato (no reviews please)
This version gets a resize event for the HTMLMediaElement, and updates controls visibility based on ...
5 years, 6 months ago (2015-06-22 22:26:14 UTC) #19
liberato (no reviews please)
hi all i've merged mediaControls.css from ToT (one block was added, one was subsumed into ...
5 years, 6 months ago (2015-06-22 23:05:53 UTC) #20
liberato (no reviews please)
after more thought, there will be another small update to this. It will convert the ...
5 years, 6 months ago (2015-06-22 23:59:51 UTC) #21
liberato (no reviews please)
fixed some broken tests, and decided against the runtime features polarity switch. it was just ...
5 years, 6 months ago (2015-06-23 16:22:36 UTC) #22
liberato (no reviews please)
here's the almost most recent stuff. there are changes in-flight to simplify the control hiding ...
5 years, 5 months ago (2015-07-03 05:48:11 UTC) #23
liberato (no reviews please)
here's the almost most recent stuff. there are changes in-flight to simplify the control hiding ...
5 years, 5 months ago (2015-07-03 05:48:12 UTC) #24
liberato (no reviews please)
here's the almost most recent stuff. there are changes in-flight to simplify the control hiding ...
5 years, 5 months ago (2015-07-03 05:48:14 UTC) #25
liberato (no reviews please)
simplified the control hiding logic. added a sync update to show / hide controls rather ...
5 years, 5 months ago (2015-07-04 05:19:41 UTC) #26
liberato (no reviews please)
This version fixes a test crash in virtual/android/fullscreen/video-scrolled-iframe.html . While stopping DOM objects, HTMLMediaElement tries ...
5 years, 5 months ago (2015-07-04 18:11:14 UTC) #27
liberato (no reviews please)
minor updates, added a unit test to make sure that control drop order doesn't change ...
5 years, 5 months ago (2015-07-07 17:00:33 UTC) #28
liberato (no reviews please)
there is no work in-flight for this CL. everything is pending review feedback and the ...
5 years, 5 months ago (2015-07-07 17:16:43 UTC) #29
liberato (no reviews please)
this addresses the two test failures in the previous revision. the mac failure was due ...
5 years, 5 months ago (2015-07-07 18:53:01 UTC) #30
liberato (no reviews please)
fixed the unit test i added -- i replaced console.log with consoleWrite(). failed on mac ...
5 years, 5 months ago (2015-07-07 20:26:25 UTC) #31
fs
Some higher-level comments mostly revolving around the "selective visibility" stuff. https://codereview.chromium.org/1156993013/diff/710001/Source/core/html/shadow/MediaControls.cpp File Source/core/html/shadow/MediaControls.cpp (right): https://codereview.chromium.org/1156993013/diff/710001/Source/core/html/shadow/MediaControls.cpp#newcode244 ...
5 years, 5 months ago (2015-07-08 09:31:00 UTC) #52
philipj_slow
There will be many comments, so I'll send them in batches. In addition to the ...
5 years, 5 months ago (2015-07-08 10:31:52 UTC) #53
philipj_slow
Some comments on the new test. It also looks like more tests and more code ...
5 years, 5 months ago (2015-07-08 14:37:34 UTC) #54
philipj_slow
Reviewed somewhat carefully up to MediaControls.cpp https://codereview.chromium.org/1156993013/diff/710001/Source/core/html/shadow/MediaControlElementTypes.cpp File Source/core/html/shadow/MediaControlElementTypes.cpp (right): https://codereview.chromium.org/1156993013/diff/710001/Source/core/html/shadow/MediaControlElementTypes.cpp#newcode120 Source/core/html/shadow/MediaControlElementTypes.cpp:120: int minWidthInPixels = ...
5 years, 5 months ago (2015-07-08 15:06:38 UTC) #55
philipj_slow
The Chromium-side CL https://codereview.chromium.org/1145053006/ has been removed, is there a new CL? Reviewing this really ...
5 years, 5 months ago (2015-07-09 07:42:11 UTC) #56
philipj_slow
Finished reviewing MediaControls.cpp https://codereview.chromium.org/1156993013/diff/750001/Source/core/html/shadow/MediaControlElementTypes.h File Source/core/html/shadow/MediaControlElementTypes.h (right): https://codereview.chromium.org/1156993013/diff/750001/Source/core/html/shadow/MediaControlElementTypes.h#newcode78 Source/core/html/shadow/MediaControlElementTypes.h:78: private: Move these things to the ...
5 years, 5 months ago (2015-07-09 08:56:11 UTC) #57
fs
https://codereview.chromium.org/1156993013/diff/750001/Source/core/html/shadow/MediaControls.cpp File Source/core/html/shadow/MediaControls.cpp (right): https://codereview.chromium.org/1156993013/diff/750001/Source/core/html/shadow/MediaControls.cpp#newcode614 Source/core/html/shadow/MediaControls.cpp:614: if (panelWidth == 0 || panelWidth == m_panelWidth) On ...
5 years, 5 months ago (2015-07-09 09:31:17 UTC) #58
liberato (no reviews please)
thanks for all the feedback. i've not addressed all of the most recent, but only ...
5 years, 5 months ago (2015-07-09 12:10:55 UTC) #59
liberato (no reviews please)
thanks for all the feedback. i've not addressed all of the most recent, but only ...
5 years, 5 months ago (2015-07-09 12:10:57 UTC) #60
fs
https://codereview.chromium.org/1156993013/diff/750001/Source/core/html/shadow/MediaControls.cpp File Source/core/html/shadow/MediaControls.cpp (right): https://codereview.chromium.org/1156993013/diff/750001/Source/core/html/shadow/MediaControls.cpp#newcode618 Source/core/html/shadow/MediaControls.cpp:618: m_panelWidthChangedTimer.startOneShot(0, FROM_HERE); On 2015/07/09 12:10:57, liberato wrote: > On ...
5 years, 5 months ago (2015-07-09 12:25:39 UTC) #61
philipj_slow
On 2015/07/09 12:10:57, liberato wrote: > thanks for all the feedback. i've not addressed all ...
5 years, 5 months ago (2015-07-09 12:26:42 UTC) #62
fs
On 2015/07/09 12:26:42, philipj wrote: > On 2015/07/09 12:10:57, liberato wrote: > > thanks for ...
5 years, 5 months ago (2015-07-09 12:43:50 UTC) #63
philipj_slow
Phew, all done, for this pass at least :) https://codereview.chromium.org/1156993013/diff/750001/Source/core/html/shadow/SliderThumbElement.cpp File Source/core/html/shadow/SliderThumbElement.cpp (right): https://codereview.chromium.org/1156993013/diff/750001/Source/core/html/shadow/SliderThumbElement.cpp#newcode231 Source/core/html/shadow/SliderThumbElement.cpp:231: ...
5 years, 5 months ago (2015-07-09 13:40:57 UTC) #64
blink-reviews
> > In manual testing, is the problem with a timeout observable? if i construct ...
5 years, 5 months ago (2015-07-09 14:42:07 UTC) #65
philipj_slow
On 2015/07/09 14:42:07, blink-reviews wrote: > > > > In manual testing, is the problem ...
5 years, 5 months ago (2015-07-09 15:00:44 UTC) #66
liberato (no reviews please)
On 2015/07/09 15:00:44, philipj wrote: > On 2015/07/09 14:42:07, blink-reviews wrote: > > > > ...
5 years, 5 months ago (2015-07-09 17:14:53 UTC) #67
liberato (no reviews please)
this CL addresses all outstanding feedback. please let me know if i've missed anything. Big ...
5 years, 5 months ago (2015-07-09 22:35:36 UTC) #68
philipj_slow
https://codereview.chromium.org/1156993013/diff/750001/Source/core/html/shadow/MediaControls.cpp File Source/core/html/shadow/MediaControls.cpp (right): https://codereview.chromium.org/1156993013/diff/750001/Source/core/html/shadow/MediaControls.cpp#newcode94 Source/core/html/shadow/MediaControls.cpp:94: // +-MediaControlTimelineElement (-webkit-media-controls-timeline) (if !RTE::newMediaPlaybackUi()) On 2015/07/09 22:35:34, liberato ...
5 years, 5 months ago (2015-07-09 23:18:37 UTC) #69
liberato (no reviews please)
refactored the show / hide volume / mute controls logic. added tests for it. it ...
5 years, 5 months ago (2015-07-10 07:20:30 UTC) #70
philipj_slow
https://codereview.chromium.org/1156993013/diff/830001/Source/core/frame/Settings.in File Source/core/frame/Settings.in (right): https://codereview.chromium.org/1156993013/diff/830001/Source/core/frame/Settings.in#newcode369 Source/core/frame/Settings.in:369: forceAllowHiddenAudioElements initial=false Setting that are for testing only can ...
5 years, 5 months ago (2015-07-10 14:21:35 UTC) #71
philipj_slow
https://codereview.chromium.org/1156993013/diff/750001/Source/core/html/shadow/MediaControls.cpp File Source/core/html/shadow/MediaControls.cpp (right): https://codereview.chromium.org/1156993013/diff/750001/Source/core/html/shadow/MediaControls.cpp#newcode618 Source/core/html/shadow/MediaControls.cpp:618: m_panelWidthChangedTimer.startOneShot(0, FROM_HERE); On 2015/07/09 12:25:39, fs wrote: > On ...
5 years, 5 months ago (2015-07-10 14:51:59 UTC) #72
liberato (no reviews please)
moved test-only flags to Internals.idl. there's a patch at: https://drive.google.com/a/chromium.org/file/d/0B7ROFckpOJrgQzh2aHlDbmswRGM/view?usp=sharing thanks -fl https://codereview.chromium.org/1156993013/diff/830001/Source/core/frame/Settings.in File Source/core/frame/Settings.in ...
5 years, 5 months ago (2015-07-10 15:32:20 UTC) #73
philipj_slow
https://codereview.chromium.org/1156993013/diff/950001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/1156993013/diff/950001/Source/core/html/HTMLMediaElement.cpp#newcode3589 Source/core/html/HTMLMediaElement.cpp:3589: if (mediaControls()) ensureMediaControls() instead of the null check would ...
5 years, 5 months ago (2015-07-14 11:16:22 UTC) #74
liberato (no reviews please)
a link to the patch: https://drive.google.com/a/chromium.org/file/d/0B7ROFckpOJrgSlA2cGNtOW5ZNEk/view?usp=sharing this one: https://codereview.chromium.org/1226063007/ sets the feature to stable. thanks ...
5 years, 5 months ago (2015-07-14 22:10:37 UTC) #75
philipj_slow
Took another pass. Sorry if some issues have been discussed once or twice already, it's ...
5 years, 5 months ago (2015-07-21 12:02:21 UTC) #76
philipj_slow
The problem of inconsistent hiding of the controls when dragging the mouse outside of the ...
5 years, 5 months ago (2015-07-21 12:04:21 UTC) #77
liberato (no reviews please)
added batched updates for controls visibility, to control how often we update it. some inner ...
5 years, 4 months ago (2015-07-27 20:26:09 UTC) #78
philipj_slow
Gone through the comments, haven't looked much at the code changes yet. https://codereview.chromium.org/1156993013/diff/990001/Source/core/css/mediaControlsAndroidNew.css File Source/core/css/mediaControlsAndroidNew.css ...
5 years, 4 months ago (2015-07-28 15:23:49 UTC) #79
liberato (no reviews please)
https://codereview.chromium.org/1156993013/diff/990001/Source/core/html/shadow/MediaControls.cpp File Source/core/html/shadow/MediaControls.cpp (right): https://codereview.chromium.org/1156993013/diff/990001/Source/core/html/shadow/MediaControls.cpp#newcode612 Source/core/html/shadow/MediaControls.cpp:612: if (panelWidth == 0) On 2015/07/28 15:23:49, philipj wrote: ...
5 years, 4 months ago (2015-07-30 05:54:23 UTC) #80
philipj_slow
https://codereview.chromium.org/1156993013/diff/990001/Source/core/html/shadow/MediaControls.cpp File Source/core/html/shadow/MediaControls.cpp (right): https://codereview.chromium.org/1156993013/diff/990001/Source/core/html/shadow/MediaControls.cpp#newcode612 Source/core/html/shadow/MediaControls.cpp:612: if (panelWidth == 0) On 2015/07/30 05:54:23, liberato wrote: ...
5 years, 4 months ago (2015-08-03 13:10:46 UTC) #81
philipj_slow
OK, quickly approaching (or have we passed?) the point where landing this and iterating is ...
5 years, 4 months ago (2015-08-03 13:52:35 UTC) #82
philipj_slow
Just one issue overlooked it seems. https://codereview.chromium.org/1156993013/diff/1190001/Source/core/html/shadow/MediaControls.h File Source/core/html/shadow/MediaControls.h (right): https://codereview.chromium.org/1156993013/diff/1190001/Source/core/html/shadow/MediaControls.h#newcode164 Source/core/html/shadow/MediaControls.h:164: int m_batchDepth; On ...
5 years, 4 months ago (2015-08-04 11:54:53 UTC) #83
liberato (no reviews please)
i forgot to publish comments yesterday. that explains it! anyway, only other change besides feedback ...
5 years, 4 months ago (2015-08-04 15:07:00 UTC) #85
philipj_slow
https://codereview.chromium.org/1156993013/diff/1190001/Source/core/html/shadow/MediaControls.h File Source/core/html/shadow/MediaControls.h (right): https://codereview.chromium.org/1156993013/diff/1190001/Source/core/html/shadow/MediaControls.h#newcode164 Source/core/html/shadow/MediaControls.h:164: int m_batchDepth; On 2015/08/04 15:07:00, liberato wrote: > On ...
5 years, 4 months ago (2015-08-04 15:15:59 UTC) #86
liberato (no reviews please)
i believe that this is up to date with all CL feedback. thanks -fl https://codereview.chromium.org/1156993013/diff/1190001/Source/core/html/shadow/MediaControls.h ...
5 years, 4 months ago (2015-08-05 06:11:36 UTC) #87
philipj_slow
LGTM with minor final nits. THANK YOU for having patience, I haven't been as responsive ...
5 years, 4 months ago (2015-08-05 08:41:05 UTC) #88
jochen (gone - plz use gerrit)
do you need a rubberstamp from me, or does philip already cover everything?
5 years, 4 months ago (2015-08-05 10:18:56 UTC) #89
philipj_slow
An extra look at platform/ and web/ wouldn't hurt.
5 years, 4 months ago (2015-08-05 10:53:50 UTC) #90
jochen (gone - plz use gerrit)
lgtm with comment https://codereview.chromium.org/1156993013/diff/1270001/public/web/WebRuntimeFeatures.h File public/web/WebRuntimeFeatures.h (right): https://codereview.chromium.org/1156993013/diff/1270001/public/web/WebRuntimeFeatures.h#newcode161 public/web/WebRuntimeFeatures.h:161: BLINK_EXPORT static void enableNewMediaPlaybackUi(bool); this shouldn't ...
5 years, 4 months ago (2015-08-05 10:58:45 UTC) #91
liberato (no reviews please)
yay! philipj: thanks for all your help! i appreciate the large amount of the work ...
5 years, 4 months ago (2015-08-05 16:36:40 UTC) #92
jochen (gone - plz use gerrit)
using the web runtime feature for enabling the UI on android only is ok
5 years, 4 months ago (2015-08-06 14:26:01 UTC) #93
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1156993013/1330001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1156993013/1330001
5 years, 4 months ago (2015-08-06 17:23:12 UTC) #96
commit-bot: I haz the power
5 years, 4 months ago (2015-08-06 20:19:35 UTC) #97
Message was sent while issue was closed.
Committed patchset #48 (id:1330001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=200116

Powered by Google App Engine
This is Rietveld 408576698