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

Unified Diff: ui/views/window/custom_frame_view.cc

Issue 10382144: Change SetImage, SetBackground, and SetToggledImage to take in a gfx::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
« no previous file with comments | « ui/views/examples/button_example.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/custom_frame_view.cc
diff --git a/ui/views/window/custom_frame_view.cc b/ui/views/window/custom_frame_view.cc
index 33974a34645726a1858c3f95a1082e6e0967b4f4..f4dd9dd4a6bf4a0e2b590eba5ce24adca1868b39 100644
--- a/ui/views/window/custom_frame_view.cc
+++ b/ui/views/window/custom_frame_view.cc
@@ -490,11 +490,11 @@ void CustomFrameView::LayoutWindowControls() {
ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
close_button_->SetImage(CustomButton::BS_NORMAL,
- rb.GetImageNamed(normal_part).ToSkBitmap());
+ rb.GetImageNamed(normal_part).ToImageSkia());
close_button_->SetImage(CustomButton::BS_HOT,
- rb.GetImageNamed(hot_part).ToSkBitmap());
+ rb.GetImageNamed(hot_part).ToImageSkia());
close_button_->SetImage(CustomButton::BS_PUSHED,
- rb.GetImageNamed(pushed_part).ToSkBitmap());
+ rb.GetImageNamed(pushed_part).ToImageSkia());
}
void CustomFrameView::LayoutTitleBar() {
@@ -538,11 +538,11 @@ ImageButton* CustomFrameView::InitWindowCaptionButton(
ImageButton* button = new ImageButton(this);
button->SetAccessibleName(l10n_util::GetStringUTF16(accessibility_string_id));
button->SetImage(CustomButton::BS_NORMAL,
- rb.GetImageNamed(normal_image_id).ToSkBitmap());
+ rb.GetImageNamed(normal_image_id).ToImageSkia());
button->SetImage(CustomButton::BS_HOT,
- rb.GetImageNamed(hot_image_id).ToSkBitmap());
+ rb.GetImageNamed(hot_image_id).ToImageSkia());
button->SetImage(CustomButton::BS_PUSHED,
- rb.GetImageNamed(pushed_image_id).ToSkBitmap());
+ rb.GetImageNamed(pushed_image_id).ToImageSkia());
AddChildView(button);
return button;
}
« no previous file with comments | « ui/views/examples/button_example.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698