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

Issue 10388064: Add GetImageSkiaNamed to resource_bundle and theme_provider (Closed)

Created:
8 years, 7 months ago by pkotwicz
Modified:
8 years, 7 months ago
Reviewers:
Robert Sesek, sky
CC:
chromium-reviews, asanka, mihaip-chromium-reviews_chromium.org, ben+watch_chromium.org, tfarina, Randy Smith (Not in Mondays), Aaron Boodman
Visibility:
Public.

Description

Add GetImageSkiaNamed to resource_bundle and theme_provider. This makes converting use of SkBitmap into ImageSkia easier Bug=124566 Test=Manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=136470

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fixed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -11 lines) Patch
M chrome/browser/themes/theme_service.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/themes/theme_service.cc View 1 2 chunks +13 lines, -9 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view_unittest.mm View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/download/background_theme.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/download/background_theme.mm View 1 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/gtk_theme_service.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/gtk/gtk_theme_service.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M ui/base/resource/resource_bundle.h View 1 chunk +9 lines, -0 lines 0 comments Download
M ui/base/resource/resource_bundle.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M ui/base/theme_provider.h View 2 chunks +10 lines, -0 lines 0 comments Download
M ui/views/widget/default_theme_provider.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/default_theme_provider.cc View 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
pkotwicz
Adds GetImageSkiaNamed to resource_bundle and theme_provider
8 years, 7 months ago (2012-05-10 05:15:00 UTC) #1
Robert Sesek
LGTM http://codereview.chromium.org/10388064/diff/1/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm (right): http://codereview.chromium.org/10388064/diff/1/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm#newcode194 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm:194: virtual gfx::ImageSkia* GetImageSkiaNamed(int id) const { return nil; ...
8 years, 7 months ago (2012-05-10 12:28:35 UTC) #2
sky
http://codereview.chromium.org/10388064/diff/1/ui/base/resource/resource_bundle.cc File ui/base/resource/resource_bundle.cc (right): http://codereview.chromium.org/10388064/diff/1/ui/base/resource/resource_bundle.cc#newcode217 ui/base/resource/resource_bundle.cc:217: return const_cast<gfx::ImageSkia*>(image); Why do we need this? Can't folks ...
8 years, 7 months ago (2012-05-10 15:51:10 UTC) #3
sky
LGTM http://codereview.chromium.org/10388064/diff/1/chrome/browser/themes/theme_service.cc File chrome/browser/themes/theme_service.cc (right): http://codereview.chromium.org/10388064/diff/1/chrome/browser/themes/theme_service.cc#newcode248 chrome/browser/themes/theme_service.cc:248: const gfx::Image* image = GetImageNamed(id); Add TODOs about ...
8 years, 7 months ago (2012-05-10 17:08:23 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/10388064/3002
8 years, 7 months ago (2012-05-10 21:27:06 UTC) #5
commit-bot: I haz the power
8 years, 7 months ago (2012-05-11 00:53:35 UTC) #6
Change committed as 136470

Powered by Google App Engine
This is Rietveld 408576698