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

Issue 337026: Don't scale up small browser action icons.... (Closed)

Created:
11 years, 1 month ago by Finnur
Modified:
9 years, 6 months ago
Reviewers:
Aaron Boodman
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, Erik does not do reviews, jam, pam+watch_chromium.org, darin (slow to review)
Visibility:
Public.

Description

Don't scale up small browser action icons. When creating the canvas, take cues from the image we just loaded and don't hard code it to 19x19. This way we can have smaller than 19x19 icons that show up centered within the browser icon button. This doesn't attempt to deal with scaling down images that are too large to fit the 19x19 canvas, but we haven't decided how to handle those anyway. BUG=25487 TEST=Load the api_test/browser_action_tab_specific_state extension and click on the browser action. The red square within the button should not grow in size as you click. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30072

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -8 lines) Patch
M chrome/renderer/resources/extension_process_bindings.js View 1 1 chunk +5 lines, -8 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Aaron Boodman
http://codereview.chromium.org/337026/diff/1/2 File chrome/renderer/resources/extension_process_bindings.js (right): http://codereview.chromium.org/337026/diff/1/2#newcode373 Line 373: if (!canvas) { It looks like there is ...
11 years, 1 month ago (2009-10-26 18:23:43 UTC) #1
Finnur
New patch uploaded.
11 years, 1 month ago (2009-10-26 18:36:06 UTC) #2
Aaron Boodman
11 years, 1 month ago (2009-10-26 18:45:48 UTC) #3
lgtm

Powered by Google App Engine
This is Rietveld 408576698