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

Issue 630002: Allow the Mac theme provider to give default colors/tints if requested. (Closed)

Created:
10 years, 10 months ago by Avi (use Gerrit)
Modified:
9 years, 7 months ago
Visibility:
Public.

Description

Allow the Mac theme provider to give default colors/tints if requested. Switch the download shelf's "open downloads" link to directly use the theme provider. BUG=http://crbug.com/35554 TEST=no visible change in normal mode; incognito mode still being worked on Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=39279

Patch Set 1 #

Patch Set 2 : merge #

Patch Set 3 : merge #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -82 lines) Patch
M app/theme_provider.h View 1 chunk +9 lines, -6 lines 0 comments Download
M chrome/browser/browser_theme_provider.h View 4 chunks +17 lines, -4 lines 1 comment Download
M chrome/browser/browser_theme_provider.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/browser_theme_provider_mac.mm View 4 chunks +69 lines, -29 lines 0 comments Download
M chrome/browser/cocoa/bookmark_bar_toolbar_view_unittest.mm View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/cocoa/browser_theme_provider_init.mm View 5 chunks +13 lines, -18 lines 0 comments Download
M chrome/browser/cocoa/download_shelf_controller.mm View 4 chunks +14 lines, -22 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Avi (use Gerrit)
This is a continuation from http://codereview.chromium.org/611001 ; I dunno why gcl decided to make a ...
10 years, 10 months ago (2010-02-17 21:27:36 UTC) #1
Miranda Callahan
Yes, LGTM, looks like it will work great. Thanks!
10 years, 10 months ago (2010-02-17 22:12:58 UTC) #2
Nico
10 years, 10 months ago (2010-02-17 22:22:40 UTC) #3
http://codereview.chromium.org/630002/diff/5001/5003
File chrome/browser/browser_theme_provider.h (right):

http://codereview.chromium.org/630002/diff/5001/5003#newcode121
chrome/browser/browser_theme_provider.h:121: virtual NSImage*
GetNSImageNamed(int id, bool allow_default) const;
How about using an enum instead of a bool? Makes the calling sites nicer:

  frobonator->GetNSImageNamed(theImage, kDefaultImage);
  frobonator->GetNSImageNamed(theImage, kDefaultAsNull);

Powered by Google App Engine
This is Rietveld 408576698