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

Issue 341045: Fix up extension badge text drawing.... (Closed)

Created:
11 years, 1 month ago by Evan Stade
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, pam+watch_chromium.org, Erik does not do reviews, ben+cc_chromium.org
Visibility:
Public.

Description

Fix up extension badge text drawing. Fall abck to the system default font if the preferred font isn't available. Also, only create the SkPaint struct once, not on every paint. Also, make some more things const. BUG=25693 TEST=badge still looks good, that crash goes away (this was committed in r30631)

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -54 lines) Patch
M app/gfx/font.h View 1 2 3 chunks +3 lines, -1 line 0 comments Download
M app/gfx/font_mac.mm View 1 2 1 chunk +1 line, -1 line 0 comments Download
M app/gfx/font_skia.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M app/gfx/font_win.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M app/resource_bundle.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M app/resource_bundle.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/gtk/tabs/tab_renderer_gtk.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/views/first_run_bubble.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/views/options/languages_page_view.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/views/options/options_group_view.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/extension_action.cc View 1 2 3 chunks +71 lines, -39 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Evan Stade
http://www/~estade/no_crawl/badge_text.png I think it looks slightly worse but I couldn't make it any better (bolding ...
11 years, 1 month ago (2009-10-30 00:47:01 UTC) #1
Aaron Boodman
http://codereview.chromium.org/341045/diff/1/11 File chrome/common/extensions/extension_action.cc (right): http://codereview.chromium.org/341045/diff/1/11#newcode55 Line 55: ResourceBundle& rb = ResourceBundle::GetSharedInstance(); I think it is ...
11 years, 1 month ago (2009-10-30 01:23:27 UTC) #2
Evan Stade
http://codereview.chromium.org/341045/diff/1/11 File chrome/common/extensions/extension_action.cc (right): http://codereview.chromium.org/341045/diff/1/11#newcode55 Line 55: ResourceBundle& rb = ResourceBundle::GetSharedInstance(); On 2009/10/30 01:23:27, Aaron ...
11 years, 1 month ago (2009-10-30 01:32:32 UTC) #3
Evan Martin
Without taking a side (or noting which side this supports), I'll note that the system ...
11 years, 1 month ago (2009-10-30 01:34:51 UTC) #4
Evan Stade
On Thu, Oct 29, 2009 at 6:34 PM, <evan@chromium.org> wrote: > Without taking a side ...
11 years, 1 month ago (2009-10-30 01:40:36 UTC) #5
Aaron Boodman
On Thu, Oct 29, 2009 at 6:32 PM, <estade@chromium.org> wrote: > http://codereview.chromium.org/341045/diff/1/11 > File chrome/common/extensions/extension_action.cc ...
11 years, 1 month ago (2009-10-30 02:07:31 UTC) #6
Evan Stade
On Thu, Oct 29, 2009 at 7:07 PM, Aaron Boodman <aa@chromium.org> wrote: > On Thu, ...
11 years, 1 month ago (2009-10-30 17:41:23 UTC) #7
Evan Stade
updated. Tries Arial then falls back to system default. If we want to tweak the ...
11 years, 1 month ago (2009-10-30 17:53:01 UTC) #8
Aaron Boodman
11 years, 1 month ago (2009-10-30 18:04:29 UTC) #9
LGTM

thanks for your patience with my pixel nitpickery.

Powered by Google App Engine
This is Rietveld 408576698