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

Issue 151153: Allow getting the theme tint as a value so that it can be applied independent... (Closed)

Created:
11 years, 5 months ago by Avi (use Gerrit)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, Ben Goodger (Google)
Visibility:
Public.

Description

Allow getting the theme tint as a value so that it can be applied independent of the theme provider. Since the Mac needs it to tint its vector resources it's added to the Mac. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=19751

Patch Set 1 #

Total comments: 7

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -34 lines) Patch
M app/theme_provider.h View 1 2 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/browser_theme_provider.h View 4 chunks +13 lines, -4 lines 0 comments Download
M chrome/browser/browser_theme_provider.cc View 6 chunks +44 lines, -25 lines 0 comments Download
M chrome/browser/browser_theme_provider_gtk.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser_theme_provider_mac.mm View 1 1 chunk +38 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Avi (use Gerrit)
erik: theme code pink: mac stuff
11 years, 5 months ago (2009-07-01 16:28:53 UTC) #1
pink (ping after 24hrs)
mac stuff LGTM
11 years, 5 months ago (2009-07-01 16:43:25 UTC) #2
Erik does not do reviews
LGTM - just comment nits and a question http://codereview.chromium.org/151153/diff/1/2 File app/theme_provider.h (right): http://codereview.chromium.org/151153/diff/1/2#newcode75 Line 75: ...
11 years, 5 months ago (2009-07-01 16:51:05 UTC) #3
pink (ping after 24hrs)
http://codereview.chromium.org/151153/diff/1/4 File chrome/browser/browser_theme_provider.h (right): http://codereview.chromium.org/151153/diff/1/4#newcode185 Line 185: typedef std::map<int, NSColor*> NSColorMap; I thought about this ...
11 years, 5 months ago (2009-07-01 16:55:56 UTC) #4
Avi (use Gerrit)
11 years, 5 months ago (2009-07-01 18:41:04 UTC) #5
All items addressed unless otherwise noted.

http://codereview.chromium.org/151153/diff/1/2
File app/theme_provider.h (right):

http://codereview.chromium.org/151153/diff/1/2#newcode77
Line 77: // theme provider and should not be freed.
On 2009/07/01 16:51:06, Erik Kay wrote:
> Why does this need to be explicitly spelled out?

(shrug) It's kinda paralleling the comment above for the other platform. No big
deal; will remove.

http://codereview.chromium.org/151153/diff/1/4
File chrome/browser/browser_theme_provider.h (right):

http://codereview.chromium.org/151153/diff/1/4#newcode185
Line 185: typedef std::map<int, NSColor*> NSColorMap;
It's done to parallel how the other platforms are doing things. Since this is a
shared header, I'm trying to keep the ObjC-isms down to a minimum anyway.

Powered by Google App Engine
This is Rietveld 408576698