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

Issue 8597015: Add a new GetSystemColor method to native theme. (Closed)

Created:
9 years, 1 month ago by benrg
Modified:
9 years, 1 month ago
CC:
chromium-reviews
Visibility:
Public.

Description

Add a new GetSystemColor method to native theme. Currently it only knows about the dialog box background color. The intent is to add other colors, such as the text highlighting color (issue 100229). This CL also fixes issue 104229 by returning an opaque color on Aura. BUG=104229 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111268

Patch Set 1 : fix build breakage #

Patch Set 2 : for review #

Total comments: 4

Patch Set 3 : move hardcoded colors into constants #

Total comments: 2

Patch Set 4 : move bug-check color constant out of header file #

Total comments: 6

Patch Set 5 : small fixes #

Patch Set 6 : fix win build #

Total comments: 16

Patch Set 7 : iterate #

Patch Set 8 : rebase, no other changes #

Patch Set 9 : more code motion -- not sure what to do #

Total comments: 1

Patch Set 10 : more code motion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -28 lines) Patch
M ui/gfx/native_theme.h View 1 2 3 4 5 6 2 chunks +14 lines, -3 lines 0 comments Download
M ui/gfx/native_theme_base.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/native_theme_base.cc View 1 2 3 4 5 6 7 8 9 2 chunks +21 lines, -0 lines 0 comments Download
M ui/gfx/native_theme_gtk.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/native_theme_gtk.cc View 1 2 3 4 5 6 2 chunks +25 lines, -0 lines 0 comments Download
M ui/gfx/native_theme_win.h View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M ui/gfx/native_theme_win.cc View 1 2 3 4 5 6 7 8 9 2 chunks +19 lines, -0 lines 0 comments Download
M ui/views/window/dialog_client_view.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -23 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
James Cook
One comment below. http://codereview.chromium.org/8597015/diff/7001/ui/gfx/native_theme.h File ui/gfx/native_theme.h (right): http://codereview.chromium.org/8597015/diff/7001/ui/gfx/native_theme.h#newcode22 ui/gfx/native_theme.h:22: // platform, such as Windows or ...
9 years, 1 month ago (2011-11-18 23:22:49 UTC) #1
benrg
Moved hardcoded colors into constants. Feel free to critique my choice of names... http://codereview.chromium.org/8597015/diff/7001/ui/gfx/native_theme_base.cc File ...
9 years, 1 month ago (2011-11-19 00:20:22 UTC) #2
James Cook
One more suggestion, then I'd send it to either sky@ or ben@ for final review. ...
9 years, 1 month ago (2011-11-19 00:28:14 UTC) #3
James Cook
Were you ready for me to review this again? I didn't see an email but ...
9 years, 1 month ago (2011-11-19 03:02:45 UTC) #4
benrg
ben, can I get owner's approval on this? http://codereview.chromium.org/8597015/diff/7002/ui/gfx/native_theme.h File ui/gfx/native_theme.h (right): http://codereview.chromium.org/8597015/diff/7002/ui/gfx/native_theme.h#newcode19 ui/gfx/native_theme.h:19: const ...
9 years, 1 month ago (2011-11-21 18:32:40 UTC) #5
James Cook
LGTM, assuming Ben's OK with the overall approach. Thanks for persevering through the style-nit gauntlet!
9 years, 1 month ago (2011-11-21 18:54:08 UTC) #6
Ben Goodger (Google)
Welcome to Google, land of OCD style-guide enforcement: http://codereview.chromium.org/8597015/diff/20003/ui/gfx/native_theme.h File ui/gfx/native_theme.h (right): http://codereview.chromium.org/8597015/diff/20003/ui/gfx/native_theme.h#newcode219 ui/gfx/native_theme.h:219: kDialogBackgroundColorId ...
9 years, 1 month ago (2011-11-21 18:59:59 UTC) #7
benrg
Going to lunch; I hope this builds. http://codereview.chromium.org/8597015/diff/20003/ui/gfx/native_theme.h File ui/gfx/native_theme.h (right): http://codereview.chromium.org/8597015/diff/20003/ui/gfx/native_theme.h#newcode219 ui/gfx/native_theme.h:219: kDialogBackgroundColorId On ...
9 years, 1 month ago (2011-11-21 19:54:20 UTC) #8
benrg
PTAL. (It builds; test failures seem unrelated.)
9 years, 1 month ago (2011-11-22 00:46:33 UTC) #9
Ben Goodger (Google)
Forgot to press submit on this yesterday I guess... http://codereview.chromium.org/8597015/diff/20003/ui/gfx/native_theme_base.cc File ui/gfx/native_theme_base.cc (right): http://codereview.chromium.org/8597015/diff/20003/ui/gfx/native_theme_base.cc#newcode70 ui/gfx/native_theme_base.cc:70: ...
9 years, 1 month ago (2011-11-22 15:49:50 UTC) #10
benrg
The method orders in the .cc and .h files didn't match before my change (see ...
9 years, 1 month ago (2011-11-22 21:43:49 UTC) #11
Ben Goodger (Google)
I prefer not to make the problem worse. Please just insert it after the adjacent ...
9 years, 1 month ago (2011-11-22 22:13:13 UTC) #12
benrg
GetSystemColor is now after the previous method (but not before the next method) in all ...
9 years, 1 month ago (2011-11-22 22:30:45 UTC) #13
Ben Goodger (Google)
Thanks. LGTM.
9 years, 1 month ago (2011-11-22 22:31:42 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benrg@chromium.org/8597015/35002
9 years, 1 month ago (2011-11-22 22:35:57 UTC) #15
commit-bot: I haz the power
9 years, 1 month ago (2011-11-23 01:00:18 UTC) #16
Change committed as 111268

Powered by Google App Engine
This is Rietveld 408576698