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

Issue 10783015: Add ability to store hidpi theme images in data pack (Closed)

Created:
8 years, 5 months ago by pkotwicz
Modified:
8 years, 4 months ago
Reviewers:
Elliot Glaysher, sky
CC:
chromium-reviews, asanka, tfarina, Randy Smith (Not in Mondays), ben+watch_chromium.org, sail
Visibility:
Public.

Description

Chrome does not support hidpi themes other than the default. However, Chrome generates images which are a combination of the toolbar icon from the default theme + a tint. Added the ability for themes to store hidpi assets in the data pack such that the few hidpi assets which are generated are preserved when a user closes Chrome and reopens it. Repro steps/steps for testing: 1) Run chrome with --force-device-scale-factor=2 2) Change the theme. 3) Close Chrome and relaunch with --force-device-scale-factor=2 4) Ensure that the toolbar buttons are still hidpi Test=Manual, see instructions above Bug=136888 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150054

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+418 lines, -173 lines) Patch
M chrome/browser/themes/browser_theme_pack.h View 1 2 3 4 5 6 7 8 7 chunks +46 lines, -21 lines 0 comments Download
M chrome/browser/themes/browser_theme_pack.cc View 1 2 3 4 5 6 7 8 21 chunks +274 lines, -123 lines 0 comments Download
M chrome/browser/themes/browser_theme_pack_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/themes/theme_service.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/themes/theme_service.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm View 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view_unittest.mm View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/download/background_theme.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/download/background_theme.mm View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/theme_source.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M ui/base/theme_provider.h View 2 chunks +4 lines, -1 line 0 comments Download
M ui/gfx/image/image_skia.cc View 1 2 3 4 5 6 7 2 chunks +12 lines, -12 lines 0 comments Download
M ui/gfx/image/image_skia_operations.h View 1 2 3 4 5 6 2 chunks +19 lines, -0 lines 0 comments Download
M ui/gfx/image/image_skia_operations.cc View 1 2 3 4 5 6 7 8 3 chunks +34 lines, -1 line 0 comments Download
M ui/gfx/image/image_skia_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -3 lines 0 comments Download
M ui/views/widget/default_theme_provider.h View 1 chunk +3 lines, -1 line 0 comments Download
M ui/views/widget/default_theme_provider.cc View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
pkotwicz
8 years, 5 months ago (2012-07-15 19:17:14 UTC) #1
pkotwicz
As a quick summary of my change. I store the 1x and the 2x theme ...
8 years, 5 months ago (2012-07-15 19:28:17 UTC) #2
Elliot Glaysher
On 2012/07/15 19:28:17, pkotwicz wrote: > As a quick summary of my change. I store ...
8 years, 5 months ago (2012-07-16 17:04:06 UTC) #3
pkotwicz
Sorry for taking so long. I have updated the patch such that it is thread ...
8 years, 5 months ago (2012-07-20 01:45:55 UTC) #4
pkotwicz
I think I have addressed your concerns off line. However, to answer in the code ...
8 years, 5 months ago (2012-07-20 18:09:04 UTC) #5
Elliot Glaysher
http://codereview.chromium.org/10783015/diff/21001/chrome/browser/themes/browser_theme_pack.cc File chrome/browser/themes/browser_theme_pack.cc (right): http://codereview.chromium.org/10783015/diff/21001/chrome/browser/themes/browser_theme_pack.cc#newcode41 chrome/browser/themes/browser_theme_pack.cc:41: const int kThemePackVersion = 24; Do you need to ...
8 years, 5 months ago (2012-07-20 18:17:14 UTC) #6
pkotwicz
http://codereview.chromium.org/10783015/diff/21001/chrome/browser/themes/browser_theme_pack.cc File chrome/browser/themes/browser_theme_pack.cc (right): http://codereview.chromium.org/10783015/diff/21001/chrome/browser/themes/browser_theme_pack.cc#newcode41 chrome/browser/themes/browser_theme_pack.cc:41: const int kThemePackVersion = 24; You're right I don't ...
8 years, 5 months ago (2012-07-20 20:00:45 UTC) #7
Elliot Glaysher
On 2012/07/20 20:00:45, pkotwicz wrote: > http://codereview.chromium.org/10783015/diff/21001/chrome/browser/themes/browser_theme_pack.cc > File chrome/browser/themes/browser_theme_pack.cc (right): > > http://codereview.chromium.org/10783015/diff/21001/chrome/browser/themes/browser_theme_pack.cc#newcode41 > ...
8 years, 5 months ago (2012-07-23 21:37:15 UTC) #8
Elliot Glaysher
looks like you uploaded the change. lgtm.
8 years, 5 months ago (2012-07-25 22:37:19 UTC) #9
pkotwicz
Changes as requested. erg@, thanks for reviewing! Sky for OWNERS
8 years, 5 months ago (2012-07-26 00:36:42 UTC) #10
sky
LGTM
8 years, 4 months ago (2012-08-02 20:34:16 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/10783015/40003
8 years, 4 months ago (2012-08-05 19:08:14 UTC) #12
commit-bot: I haz the power
8 years, 4 months ago (2012-08-05 20:07:46 UTC) #13
Change committed as 150054

Powered by Google App Engine
This is Rietveld 408576698