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

Unified Diff: ui/views/controls/tree/tree_view_views.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_views.cc
diff --git a/ui/views/controls/tree/tree_view_views.cc b/ui/views/controls/tree/tree_view_views.cc
index 524b76377fd44e09ce20c361959d0954d4b85b66..20634e9a29f3ee03ca7973b45059388245cffdc0 100644
--- a/ui/views/controls/tree/tree_view_views.cc
+++ b/ui/views/controls/tree/tree_view_views.cc
@@ -60,10 +60,10 @@ TreeView::TreeView()
set_background(Background::CreateSolidBackground(SK_ColorWHITE));
closed_icon_ = *ui::ResourceBundle::GetSharedInstance().GetImageNamed(
(base::i18n::IsRTL() ? IDR_FOLDER_CLOSED_RTL
- : IDR_FOLDER_CLOSED)).ToSkBitmap();
+ : IDR_FOLDER_CLOSED)).ToImageSkia();
open_icon_ = *ui::ResourceBundle::GetSharedInstance().GetImageNamed(
(base::i18n::IsRTL() ? IDR_FOLDER_OPEN_RTL
- : IDR_FOLDER_OPEN)).ToSkBitmap();
+ : IDR_FOLDER_OPEN)).ToImageSkia();
text_offset_ = closed_icon_.width() + kImagePadding + kImagePadding +
kArrowRegionSize;
}
@@ -639,7 +639,7 @@ void TreeView::PaintRow(gfx::Canvas* canvas,
PaintExpandControl(canvas, bounds, node->is_expanded());
// Paint the icon.
- SkBitmap icon;
+ gfx::ImageSkia icon;
int icon_index = model_->GetIconIndex(node->model_node());
if (icon_index != -1)
icon = icons_[icon_index];

Powered by Google App Engine
This is Rietveld 408576698