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

Issue 5071002: Add 1px black border for ChromeOS status button. (Closed)

Created:
10 years, 1 month ago by xiyuan
Modified:
9 years, 7 months ago
Reviewers:
DaveMoore
CC:
chromium-reviews, davemoore+watch_chromium.org, ben+cc_chromium.org, Daniel Erat
Visibility:
Public.

Description

Add 1px black border for ChromeOS status button. - Move Linux's CanvasSkia::DrawStringInt into DrawStringWithHalo and added code to support text halo and change DrawStringInt to use it; - Make views::TextButton support text halo; - Use the text halo for chromeos::StatusButton; BUG=chromium-os:8657 TEST=Verify 1px black border is added to ChromeOS status buttons. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66632

Patch Set 1 #

Patch Set 2 : fix lint #

Patch Set 3 : draw text with halo into a temp bitmap then blend it in properly #

Total comments: 2

Patch Set 4 : change how common code is shared #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -69 lines) Patch
M chrome/browser/chromeos/status/status_area_button.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M gfx/canvas_skia.h View 1 1 chunk +7 lines, -5 lines 0 comments Download
M gfx/canvas_skia_linux.cc View 1 2 3 5 chunks +173 lines, -64 lines 0 comments Download
M views/controls/button/text_button.h View 2 chunks +5 lines, -0 lines 0 comments Download
M views/controls/button/text_button.cc View 4 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
xiyuan
I have added screenshots to the bug in case you want to take a look ...
10 years, 1 month ago (2010-11-17 00:03:40 UTC) #1
DaveMoore
http://codereview.chromium.org/5071002/diff/4001/gfx/canvas_skia_linux.cc File gfx/canvas_skia_linux.cc (right): http://codereview.chromium.org/5071002/diff/4001/gfx/canvas_skia_linux.cc#newcode211 gfx/canvas_skia_linux.cc:211: void CanvasSkia::DrawStringWithHalo(const std::wstring& text, I don't think this method ...
10 years, 1 month ago (2010-11-17 01:07:43 UTC) #2
xiyuan
http://codereview.chromium.org/5071002/diff/4001/gfx/canvas_skia_linux.cc File gfx/canvas_skia_linux.cc (right): http://codereview.chromium.org/5071002/diff/4001/gfx/canvas_skia_linux.cc#newcode211 gfx/canvas_skia_linux.cc:211: void CanvasSkia::DrawStringWithHalo(const std::wstring& text, On 2010/11/17 01:07:43, davemoore wrote: ...
10 years, 1 month ago (2010-11-17 17:59:22 UTC) #3
xiyuan
Please take another look. I have changed the way to share common code by using ...
10 years, 1 month ago (2010-11-17 19:55:05 UTC) #4
DaveMoore
10 years, 1 month ago (2010-11-18 00:11:59 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld 408576698