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

Issue 16610002: High DPI support for themes: Raw images for NTP attribution and background (Closed)

Created:
7 years, 6 months ago by sschmitz
Modified:
7 years, 6 months ago
Reviewers:
xiyuan, pkotwicz
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, estade+watch_chromium.org, arv+watch_chromium.org, pedrosimonetti+watch_chromium.org
Visibility:
Public.

Description

High DPI support for themes: Raw images for NTP attribution and background Adding support for the NTP background and attribution theme images. They are stored in the so-called raw images in BrowserThemePack. Added computation of images for missing scales from availables scales. Changed *.css and *.js files so that the URLs contain the requisite 1x or 2x indication. (This depends on Issue 248189) Reviewers: pkotwicz: overall xiyuan: for *.css and *.js BUG=133934 R=pkotwicz@chromium.org TEST=manual Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=205862

Patch Set 1 #

Total comments: 10

Patch Set 2 : review #

Total comments: 10

Patch Set 3 : minor #

Patch Set 4 : update css #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -6 lines) Patch
M chrome/browser/resources/new_incognito_tab_theme.css View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/resources/ntp4/new_tab.js View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/resources/ntp4/new_tab_theme.css View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/themes/browser_theme_pack.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/themes/browser_theme_pack.cc View 1 2 3 chunks +90 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
sschmitz
7 years, 6 months ago (2013-06-06 23:58:47 UTC) #1
pkotwicz
- I think that it is useful to write a CL introducing IDR_THEME_DETACHED_BOOKMARK_BAR_NTP_BACKGROUND before landing ...
7 years, 6 months ago (2013-06-07 14:57:15 UTC) #2
pkotwicz
A few small things https://codereview.chromium.org/16610002/diff/1/chrome/browser/themes/browser_theme_pack.cc File chrome/browser/themes/browser_theme_pack.cc (right): https://codereview.chromium.org/16610002/diff/1/chrome/browser/themes/browser_theme_pack.cc#newcode1453 chrome/browser/themes/browser_theme_pack.cc:1453: void BrowserThemePack::GenerateRawImageForAllScales(int prs_id) { Nit: ...
7 years, 6 months ago (2013-06-07 16:15:26 UTC) #3
sschmitz
On 2013/06/07 14:57:15, pkotwicz wrote: > - I think that it is useful to write ...
7 years, 6 months ago (2013-06-07 17:56:15 UTC) #4
pkotwicz
I looks like the alignment properties would make this optimization work only for certain alignment ...
7 years, 6 months ago (2013-06-07 18:18:24 UTC) #5
sschmitz
Thanks! RE: -webkit-image-set and changing ./tools/grit/grit/gather/chrome_html.py Can this wait? Or do you suggest to change ...
7 years, 6 months ago (2013-06-07 18:28:01 UTC) #6
pkotwicz
I am still concerned as to how this CL will slow down requesting ntp background ...
7 years, 6 months ago (2013-06-07 18:31:48 UTC) #7
sschmitz
Thanks for all your feedback. https://codereview.chromium.org/16610002/diff/1/chrome/browser/resources/new_incognito_tab_theme.css File chrome/browser/resources/new_incognito_tab_theme.css (right): https://codereview.chromium.org/16610002/diff/1/chrome/browser/resources/new_incognito_tab_theme.css#newcode10 chrome/browser/resources/new_incognito_tab_theme.css:10: url(chrome://theme/IDR_THEME_NTP_BACKGROUND@1x?$1) 1x, On 2013/06/07 ...
7 years, 6 months ago (2013-06-07 21:13:54 UTC) #8
pkotwicz
> RE: -webkit-image-set and changing ./tools/grit/grit/gather/chrome_html.py > > Can this wait? My preference would be ...
7 years, 6 months ago (2013-06-10 14:21:49 UTC) #9
pkotwicz
GenerateRawImageForAllSupportedScales() looks good https://codereview.chromium.org/16610002/diff/10001/chrome/browser/themes/browser_theme_pack.cc File chrome/browser/themes/browser_theme_pack.cc (right): https://codereview.chromium.org/16610002/diff/10001/chrome/browser/themes/browser_theme_pack.cc#newcode587 chrome/browser/themes/browser_theme_pack.cc:587: // any missing scale from an ...
7 years, 6 months ago (2013-06-10 15:20:10 UTC) #10
pkotwicz
LGTM
7 years, 6 months ago (2013-06-10 16:27:32 UTC) #11
sschmitz
https://codereview.chromium.org/16610002/diff/10001/chrome/browser/themes/browser_theme_pack.cc File chrome/browser/themes/browser_theme_pack.cc (right): https://codereview.chromium.org/16610002/diff/10001/chrome/browser/themes/browser_theme_pack.cc#newcode587 chrome/browser/themes/browser_theme_pack.cc:587: // any missing scale from an available scale image. ...
7 years, 6 months ago (2013-06-10 17:24:13 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sschmitz@chromium.org/16610002/19002
7 years, 6 months ago (2013-06-10 23:06:30 UTC) #13
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=8213
7 years, 6 months ago (2013-06-11 06:09:19 UTC) #14
sschmitz
Updated *.css for NTP. This should be their final form. Correct behavior depends on https://code.google.com/p/chromium/issues/detail?id=248189 ...
7 years, 6 months ago (2013-06-11 18:01:21 UTC) #15
pkotwicz
Still LGTM
7 years, 6 months ago (2013-06-11 20:48:04 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sschmitz@chromium.org/16610002/33001
7 years, 6 months ago (2013-06-11 20:48:26 UTC) #17
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=8418
7 years, 6 months ago (2013-06-11 21:02:13 UTC) #18
sschmitz
Added reviewer xiyuan@ for *.css, *.js
7 years, 6 months ago (2013-06-11 21:18:19 UTC) #19
xiyuan
css/js LGTM
7 years, 6 months ago (2013-06-11 21:21:20 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sschmitz@chromium.org/16610002/33001
7 years, 6 months ago (2013-06-11 21:22:47 UTC) #21
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 6 months ago (2013-06-12 04:22:28 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sschmitz@chromium.org/16610002/33001
7 years, 6 months ago (2013-06-12 15:33:01 UTC) #23
commit-bot: I haz the power
7 years, 6 months ago (2013-06-12 17:51:37 UTC) #24
Message was sent while issue was closed.
Change committed as 205862

Powered by Google App Engine
This is Rietveld 408576698