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

Issue 2811703002: Move a few media controls elements into modules/media_controls/elements/. (Closed)

Created:
3 years, 8 months ago by mlamouri (slow - plz ping)
Modified:
3 years, 8 months ago
Reviewers:
haraken, whywhat, dglazkov
CC:
blink-reviews, 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, nessy, Srirama
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move a few media controls elements into modules/media_controls/elements/. This serve two purpose: move the elements implementations to modules/ but also split MediaControlElements.cpp into multiple files as it as become very messy. BUG=662761 R=avayvod@chromium.org Review-Url: https://codereview.chromium.org/2811703002 Cr-Commit-Position: refs/heads/master@{#463583} Committed: https://chromium.googlesource.com/chromium/src/+/acec8c887e478089826d2e52a93c1a173d2d1fbc

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -158 lines) Patch
M third_party/WebKit/Source/core/html/media/MediaControls.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControlElements.h View 1 chunk +0 lines, -43 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp View 1 chunk +0 lines, -97 lines 0 comments Download
M third_party/WebKit/Source/modules/media_controls/BUILD.gn View 1 chunk +6 lines, -0 lines 2 comments Download
M third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.h View 3 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.cpp View 5 chunks +13 lines, -16 lines 0 comments Download
A third_party/WebKit/Source/modules/media_controls/elements/MediaControlMuteButtonElement.h View 1 chunk +31 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/media_controls/elements/MediaControlMuteButtonElement.cpp View 1 chunk +65 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/media_controls/elements/MediaControlOverlayEnclosureElement.h View 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/media_controls/elements/MediaControlOverlayEnclosureElement.cpp View 1 chunk +34 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/media_controls/elements/MediaControlPanelEnclosureElement.h View 1 chunk +21 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/media_controls/elements/MediaControlPanelEnclosureElement.cpp View 1 chunk +17 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 22 (11 generated)
mlamouri (slow - plz ping)
avayvod@ PTAL :)
3 years, 8 months ago (2017-04-10 11:32:09 UTC) #2
whywhat
lgtm % directory structure comment https://codereview.chromium.org/2811703002/diff/1/third_party/WebKit/Source/modules/media_controls/BUILD.gn File third_party/WebKit/Source/modules/media_controls/BUILD.gn (right): https://codereview.chromium.org/2811703002/diff/1/third_party/WebKit/Source/modules/media_controls/BUILD.gn#newcode17 third_party/WebKit/Source/modules/media_controls/BUILD.gn:17: "elements/MediaControlMuteButtonElement.cpp", nit: why do ...
3 years, 8 months ago (2017-04-10 17:50:48 UTC) #8
mlamouri (slow - plz ping)
haraken@, see comment below. avayvod@ is concerned about the sub-dir. I tend to love having ...
3 years, 8 months ago (2017-04-10 19:07:23 UTC) #10
haraken
On 2017/04/10 19:07:23, mlamouri wrote: > haraken@, see comment below. avayvod@ is concerned about the ...
3 years, 8 months ago (2017-04-11 01:34:44 UTC) #11
dglazkov
On 2017/04/11 at 01:34:44, haraken wrote: > On 2017/04/10 19:07:23, mlamouri wrote: > > haraken@, ...
3 years, 8 months ago (2017-04-11 02:55:51 UTC) #12
mlamouri (slow - plz ping)
Thanks for the feedback :)
3 years, 8 months ago (2017-04-11 08:42:57 UTC) #14
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/2811703002/1
3 years, 8 months ago (2017-04-11 08:43:32 UTC) #16
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/acec8c887e478089826d2e52a93c1a173d2d1fbc
3 years, 8 months ago (2017-04-11 09:15:29 UTC) #19
whywhat
On 2017/04/10 at 19:07:23, mlamouri wrote: > haraken@, see comment below. avayvod@ is concerned about ...
3 years, 8 months ago (2017-04-11 15:04:10 UTC) #20
whywhat
On 2017/04/11 at 15:04:10, whywhat wrote: > On 2017/04/10 at 19:07:23, mlamouri wrote: > > ...
3 years, 8 months ago (2017-04-11 15:05:22 UTC) #21
mlamouri (slow - plz ping)
3 years, 8 months ago (2017-04-11 15:06:51 UTC) #22
Message was sent while issue was closed.
On 2017/04/11 at 15:05:22, avayvod wrote:
> On 2017/04/11 at 15:04:10, whywhat wrote:
> > On 2017/04/10 at 19:07:23, mlamouri wrote:
> > > haraken@, see comment below. avayvod@ is concerned about the sub-dir. I
tend to love having sub-directories so I thought you could help us decide :)
> > > 
> > >
https://codereview.chromium.org/2811703002/diff/1/third_party/WebKit/Source/m...
> > > File third_party/WebKit/Source/modules/media_controls/BUILD.gn (right):
> > > 
> > >
https://codereview.chromium.org/2811703002/diff/1/third_party/WebKit/Source/m...
> > > third_party/WebKit/Source/modules/media_controls/BUILD.gn:17:
"elements/MediaControlMuteButtonElement.cpp",
> > > On 2017/04/10 at 17:50:47, whywhat wrote:
> > > > nit: why do you think having a separate subdir for elements is
justified?
> > > > I'd err on keeping the directory depth as low as possible
> > > 
> > > There will likely be around a dozen elements in there and that number will
grow. I'm worried that it would pollute the top directory. +haraken@ to see what
he thinks.
> > 
> > Polluting a directory with a dozen files seems like a small cost unless you
often search in there by looking at the directory (even then, binary search is
your friend as the contents is most often sorted by alphabet).
> > Subdirectories have a cost of longer paths in includes/build files/command
line/etc. Not to mention a need for a wider code tree window in your editor and
codesearch :)
> 
> Are you planning to drop MediaControl*Element from the names at least and
putting everything into media_controls namespace?

I was thinking about it. Happy to do that! We would need to check what's the
policy for namespace in Blink though.

Powered by Google App Engine
This is Rietveld 408576698