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

Issue 10855154: Update browserAction.setIcon and pageAction.setIcon for hidpi (Closed)

Created:
8 years, 4 months ago by tbarzic
Modified:
8 years, 3 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Update browserAction.setIcon and pageAction.setIcon for hidpi added support to defining icon as dictionary of paths/imageDatas with keys 19, 38. (new optional details parameters details.imageDataSet, details.pathSet) Dictionary values define icon's imageSkia representations for 1x and 2x scale respectively. BUG=138025 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155856

Patch Set 1 #

Patch Set 2 : .. #

Patch Set 3 : .. #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : almost there #

Patch Set 8 : added tests #

Patch Set 9 : missing an icon #

Patch Set 10 : nits #

Total comments: 33

Patch Set 11 : rebase #

Patch Set 12 : feedback #

Patch Set 13 : nits #

Total comments: 18

Patch Set 14 : .. #

Total comments: 3

Patch Set 15 : rebase #

Patch Set 16 : . #

Total comments: 1

Patch Set 17 : rebase #

Patch Set 18 : nit from sky #

Patch Set 19 : rebase #

Patch Set 20 : . #

Patch Set 21 : rebase #

Patch Set 22 : rebase #

Patch Set 23 : few nits #

Patch Set 24 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+600 lines, -163 lines) Patch
M chrome/browser/extensions/api/extension_action/browser_action_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 chunks +195 lines, -21 lines 0 comments Download
M chrome/browser/extensions/api/extension_action/extension_actions_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 7 chunks +62 lines, -18 lines 0 comments Download
M chrome/browser/extensions/api/extension_action/page_action_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +37 lines, -0 lines 0 comments Download
M chrome/browser/extensions/browser_action_test_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/browser_action_test_util_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/extensions/browser_action_test_util_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/browser_action_test_util_views.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/browser_action_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/browser_action_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/browser_action.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +32 lines, -9 lines 0 comments Download
M chrome/common/extensions/api/page_action.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +34 lines, -10 lines 0 comments Download
M chrome/common/extensions/extension_action.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_action.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +5 lines, -1 line 0 comments Download
M chrome/renderer/extensions/set_icon_natives.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -1 line 0 comments Download
M chrome/renderer/extensions/set_icon_natives.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +33 lines, -9 lines 0 comments Download
M chrome/renderer/resources/extensions/set_icon.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +113 lines, -44 lines 0 comments Download
A + chrome/test/data/extensions/api_test/browser_action/no_icon/background.html View 1 2 3 4 5 6 7 1 chunk +4 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/browser_action/no_icon/background.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +29 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/browser_action/no_icon/manifest.json View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
D chrome/test/data/extensions/api_test/browser_action/no_icon/update.html View 1 2 3 4 5 6 7 1 chunk +0 lines, -13 lines 0 comments Download
D chrome/test/data/extensions/api_test/browser_action/no_icon/update.js View 1 2 3 4 5 6 7 1 chunk +0 lines, -10 lines 0 comments Download
D chrome/test/data/extensions/api_test/browser_action/no_icon/update2.html View 1 2 3 4 5 6 7 1 chunk +0 lines, -11 lines 0 comments Download
D chrome/test/data/extensions/api_test/browser_action/no_icon/update2.js View 1 2 3 4 5 6 7 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/test/data/extensions/api_test/page_action/old_api/manifest.json View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
A + chrome/test/data/extensions/api_test/page_action/old_api/set_icon_index.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
A + chrome/test/data/extensions/api_test/page_action/old_api/set_icon_index.js View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
tbarzic
Please, take a look..
8 years, 4 months ago (2012-08-16 21:39:27 UTC) #1
Jeffrey Yasskin
Aaron should review the API changes, but here's what I see. http://codereview.chromium.org/10855154/diff/4011/chrome/browser/extensions/api/extension_action/browser_action_apitest.cc File chrome/browser/extensions/api/extension_action/browser_action_apitest.cc (right): ...
8 years, 4 months ago (2012-08-17 23:20:28 UTC) #2
tbarzic
http://codereview.chromium.org/10855154/diff/4011/chrome/browser/extensions/api/extension_action/browser_action_apitest.cc File chrome/browser/extensions/api/extension_action/browser_action_apitest.cc (right): http://codereview.chromium.org/10855154/diff/4011/chrome/browser/extensions/api/extension_action/browser_action_apitest.cc#newcode58 chrome/browser/extensions/api/extension_action/browser_action_apitest.cc:58: void VerifyIconState(const Extension* extension, On 2012/08/17 23:20:28, Jeffrey Yasskin ...
8 years, 4 months ago (2012-08-21 00:22:07 UTC) #3
tbarzic
http://codereview.chromium.org/10855154/diff/4011/chrome/common/extensions/api/browser_action.json File chrome/common/extensions/api/browser_action.json (right): http://codereview.chromium.org/10855154/diff/4011/chrome/common/extensions/api/browser_action.json#newcode26 chrome/common/extensions/api/browser_action.json:26: "description": "Pixel data for an image. Must be an ...
8 years, 4 months ago (2012-08-21 00:24:24 UTC) #4
Rick Byers
On 2012/08/21 00:24:24, tbarzic wrote: > http://codereview.chromium.org/10855154/diff/4011/chrome/common/extensions/api/browser_action.json > File chrome/common/extensions/api/browser_action.json (right): > > http://codereview.chromium.org/10855154/diff/4011/chrome/common/extensions/api/browser_action.json#newcode26 > ...
8 years, 4 months ago (2012-08-21 01:13:06 UTC) #5
Jeffrey Yasskin
http://codereview.chromium.org/10855154/diff/7041/chrome/browser/extensions/api/extension_action/browser_action_apitest.cc File chrome/browser/extensions/api/extension_action/browser_action_apitest.cc (right): http://codereview.chromium.org/10855154/diff/7041/chrome/browser/extensions/api/extension_action/browser_action_apitest.cc#newcode133 chrome/browser/extensions/api/extension_action/browser_action_apitest.cc:133: uint32_t action_icon_last_id = action_icon.AsBitmap().getGenerationID(); It might be nice to ...
8 years, 4 months ago (2012-08-21 20:10:38 UTC) #6
tbarzic
https://chromiumcodereview.appspot.com/10855154/diff/7041/chrome/browser/extensions/api/extension_action/browser_action_apitest.cc File chrome/browser/extensions/api/extension_action/browser_action_apitest.cc (right): https://chromiumcodereview.appspot.com/10855154/diff/7041/chrome/browser/extensions/api/extension_action/browser_action_apitest.cc#newcode133 chrome/browser/extensions/api/extension_action/browser_action_apitest.cc:133: uint32_t action_icon_last_id = action_icon.AsBitmap().getGenerationID(); On 2012/08/21 20:10:38, Jeffrey Yasskin ...
8 years, 4 months ago (2012-08-22 00:12:48 UTC) #7
Jeffrey Yasskin
LGTM, but I think you'll still need an owner's approval. Thanks! https://chromiumcodereview.appspot.com/10855154/diff/17001/chrome/browser/extensions/api/extension_action/browser_action_apitest.cc File chrome/browser/extensions/api/extension_action/browser_action_apitest.cc (right): ...
8 years, 4 months ago (2012-08-22 04:42:21 UTC) #8
tbarzic
https://chromiumcodereview.appspot.com/10855154/diff/7041/chrome/common/extensions/api/browser_action.json File chrome/common/extensions/api/browser_action.json (right): https://chromiumcodereview.appspot.com/10855154/diff/7041/chrome/common/extensions/api/browser_action.json#newcode26 chrome/common/extensions/api/browser_action.json:26: "description": "Pixel data for an image. Must be an ...
8 years, 4 months ago (2012-08-22 18:43:16 UTC) #9
Aaron Boodman
http://codereview.chromium.org/10855154/diff/7041/chrome/common/extensions/api/page_action.json File chrome/common/extensions/api/page_action.json (right): http://codereview.chromium.org/10855154/diff/7041/chrome/common/extensions/api/page_action.json#newcode80 chrome/common/extensions/api/page_action.json:80: "description": "Sets the icon for the page action. The ...
8 years, 4 months ago (2012-08-22 20:10:31 UTC) #10
tbarzic
On 2012/08/22 20:10:31, Aaron Boodman wrote: > http://codereview.chromium.org/10855154/diff/7041/chrome/common/extensions/api/page_action.json > File chrome/common/extensions/api/page_action.json (right): > > http://codereview.chromium.org/10855154/diff/7041/chrome/common/extensions/api/page_action.json#newcode80 ...
8 years, 3 months ago (2012-08-28 17:02:02 UTC) #11
Aaron Boodman
Sorry, LGTM
8 years, 3 months ago (2012-08-30 04:35:07 UTC) #12
tbarzic
sky: Can you take a look at chrome/browser/ui/*
8 years, 3 months ago (2012-08-31 18:45:38 UTC) #13
sky
LGTM with the following change. http://codereview.chromium.org/10855154/diff/31002/chrome/browser/ui/views/browser_action_view.cc File chrome/browser/ui/views/browser_action_view.cc (right): http://codereview.chromium.org/10855154/diff/31002/chrome/browser/ui/views/browser_action_view.cc#newcode417 chrome/browser/ui/views/browser_action_view.cc:417: gfx::ImageSkia BrowserActionButton::GetIconForTest() { Make ...
8 years, 3 months ago (2012-08-31 19:35:12 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tbarzic@chromium.org/10855154/43031
8 years, 3 months ago (2012-09-10 20:24:02 UTC) #15
commit-bot: I haz the power
8 years, 3 months ago (2012-09-10 23:02:04 UTC) #16
Change committed as 155856

Powered by Google App Engine
This is Rietveld 408576698