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

Issue 1400383002: Separate desktop and mobile media player controls image resources.

Created:
5 years, 2 months ago by liberato (no reviews please)
Modified:
4 years, 9 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/src.git@new_media_ui_stale_pngs
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Separate desktop and mobile media player controls image resources. blink_image_resources.grd now references separate files for mobile and desktop image resources for the post-M46 clank media player UI. For example, "mediaplayer_play_new.png" becomes "mediaplayer_play_mobile_new.png", and "mediaplayer_play_desktop_new.png" has been added with the desktop version of the resource. The grd file uses a variable to select between them, so that the resource names are identical internally, and so that both variants aren't packaged up with chrome. The pre-M46 files (e.g., mediaplayer_play.png) are unaffected. BUG=543180

Patch Set 1 #

Patch Set 2 : switched to var expansion in grd, added actual desktop resources. #

Patch Set 3 : updated fullscreen filenames to match the others. #

Total comments: 1

Patch Set 4 : scaled down just to full screen enter + exit. #

Patch Set 5 : added desktop variants. #

Messages

Total messages: 7 (1 generated)
jochen (gone - plz use gerrit)
why are the desktop versions so small?
5 years, 2 months ago (2015-10-20 09:58:59 UTC) #2
philipj_slow
Are the _new suffixes actually needed now?
5 years, 2 months ago (2015-10-20 11:21:13 UTC) #3
liberato (no reviews please)
On 2015/10/20 11:21:13, philipj wrote: > Are the _new suffixes actually needed now? small icons: ...
5 years, 2 months ago (2015-10-20 15:02:09 UTC) #4
philipj_slow
I would like someone with more experience with the build system to take a look ...
5 years, 2 months ago (2015-10-21 11:19:49 UTC) #5
liberato (no reviews please)
On 2015/10/21 11:19:49, philipj wrote: > I would like someone with more experience with the ...
5 years, 2 months ago (2015-10-21 14:03:02 UTC) #6
philipj_slow
5 years, 2 months ago (2015-10-22 08:03:39 UTC) #7
On 2015/10/21 14:03:02, liberato wrote:
> On 2015/10/21 11:19:49, philipj wrote:
> > I would like someone with more experience with the build system to take a
look
> > at this. I have no doubt that it works, but don't know if it's frowned upon
in
> > general to introduce new grit variables, or if there's already other ways of
> > achieving the same goal.
> > 
> > Given that the end goal is to have the very same resources on both Android
and
> > Desktop, won't this CL have to be reverted soonish? Otherwise files will
have
> to
> > be duplicated, right?
> > 
> >
>
https://codereview.chromium.org/1400383002/diff/40001/third_party/WebKit/publ...
> > File third_party/WebKit/public/BUILD.gn (right):
> > 
> >
>
https://codereview.chromium.org/1400383002/diff/40001/third_party/WebKit/publ...
> > third_party/WebKit/public/BUILD.gn:9: [ rebase_path("blink_headers.gypi") ],
> > This and a bunch of other changes in this file looks unintentional, right?
> 
> grit: i'll find out.  the example follows things we've done elsewhere (e.g.,
>
https://code.google.com/p/chromium/codesearch#chromium/src/ui/keyboard/keyboa...),
> so i'm hoping it's okay here too.
> 
> revert: unfortunately, maybe not.  after trying the mobile ui on desktop,
> consensus was that it was too white spacey.  in the ensuing adjustments, some
of
> the resources changed.  i'm not sure that i will be able to unify them.  this
> seemed like a really easy way to let me make progress without blocking on
that,
> and without breaking anything.
> 
> before i do anything else with this, i'll see if i can factor all the resource
> differences into css changes instead.

Oh, well I do agree that there's too much padding on Desktop. If it's just a
matter of having less padding around the graphics it should indeed be possible
to do it with just CSS.

Powered by Google App Engine
This is Rietveld 408576698