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

Unified Diff: ui/views/controls/tree/tree_view_win.cc

Issue 10437006: Converts ui/views/controls, ui/views/examples, ui/base/models to ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/views/controls/tree/tree_view_win.cc
diff --git a/ui/views/controls/tree/tree_view_win.cc b/ui/views/controls/tree/tree_view_win.cc
index a878432795578db11143e64ab66d816963c03a20..3f982fc7ba752218173dc7730bdcff187b8efccc 100644
--- a/ui/views/controls/tree/tree_view_win.cc
+++ b/ui/views/controls/tree/tree_view_win.cc
@@ -657,16 +657,16 @@ TreeView::NodeDetails* TreeView::GetNodeDetailsByTreeItem(HTREEITEM tree_item) {
}
HIMAGELIST TreeView::CreateImageList() {
- std::vector<SkBitmap> model_images;
+ std::vector<gfx::ImageSkia> model_images;
model_->GetIcons(&model_images);
ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
bool rtl = base::i18n::IsRTL();
// Creates the default image list used for trees.
- const SkBitmap* closed_icon = rb.GetImageNamed(
- (rtl ? IDR_FOLDER_CLOSED_RTL : IDR_FOLDER_CLOSED)).ToSkBitmap();
- const SkBitmap* opened_icon = rb.GetImageNamed(
- (rtl ? IDR_FOLDER_OPEN_RTL : IDR_FOLDER_OPEN)).ToSkBitmap();
+ const gfx::ImageSkia* closed_icon = rb.GetImageNamed(
+ (rtl ? IDR_FOLDER_CLOSED_RTL : IDR_FOLDER_CLOSED)).ToImageSkia();
+ const gfx::ImageSkia* opened_icon = rb.GetImageNamed(
+ (rtl ? IDR_FOLDER_OPEN_RTL : IDR_FOLDER_OPEN)).ToImageSkia();
int width = closed_icon->width();
int height = closed_icon->height();
DCHECK(opened_icon->width() == width && opened_icon->height() == height);

Powered by Google App Engine
This is Rietveld 408576698