|
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
Total comments: 4
|
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
|
Total messages: 13 (0 generated)
|