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

Unified Diff: chrome/browser/ui/views/about_chrome_view.cc

Issue 10453101: Convert most of the rest of chrome to ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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: chrome/browser/ui/views/about_chrome_view.cc
diff --git a/chrome/browser/ui/views/about_chrome_view.cc b/chrome/browser/ui/views/about_chrome_view.cc
index bd4c96d2ad53e91dbbafb3236388e8859985bdee..8108e9b16f7b572908a1ee2f3f105ace3ce082e2 100644
--- a/chrome/browser/ui/views/about_chrome_view.cc
+++ b/chrome/browser/ui/views/about_chrome_view.cc
@@ -148,15 +148,16 @@ void AboutChromeView::Init() {
throbber_->set_owned_by_client();
throbber_->SetVisible(false);
- SkBitmap* success_image = rb.GetBitmapNamed(IDR_UPDATE_UPTODATE);
+ gfx::ImageSkia* success_image = rb.GetImageSkiaNamed(IDR_UPDATE_UPTODATE);
success_indicator_.SetImage(*success_image);
success_indicator_.set_owned_by_client();
- SkBitmap* update_available_image = rb.GetBitmapNamed(IDR_UPDATE_AVAILABLE);
+ gfx::ImageSkia* update_available_image = rb.GetImageSkiaNamed(
+ IDR_UPDATE_AVAILABLE);
update_available_indicator_.SetImage(*update_available_image);
update_available_indicator_.set_owned_by_client();
- SkBitmap* timeout_image = rb.GetBitmapNamed(IDR_UPDATE_FAIL);
+ gfx::ImageSkia* timeout_image = rb.GetImageSkiaNamed(IDR_UPDATE_FAIL);
timeout_indicator_.SetImage(*timeout_image);
timeout_indicator_.set_owned_by_client();
@@ -164,12 +165,12 @@ void AboutChromeView::Init() {
update_label_.set_owned_by_client();
// Regular view controls we draw by ourself. First, we add the background
- // image for the dialog. We have two different background bitmaps, one for
- // LTR UIs and one for RTL UIs. We load the correct bitmap based on the UI
+ // image for the dialog. We have two different background images, one for
+ // LTR UIs and one for RTL UIs. We load the correct image based on the UI
// layout of the view.
about_dlg_background_logo_ = new views::ImageView();
- SkBitmap* about_background_logo = rb.GetBitmapNamed(base::i18n::IsRTL() ?
- IDR_ABOUT_BACKGROUND_RTL : IDR_ABOUT_BACKGROUND);
+ gfx::ImageSkia* about_background_logo = rb.GetImageSkiaNamed(
+ base::i18n::IsRTL() ? IDR_ABOUT_BACKGROUND_RTL : IDR_ABOUT_BACKGROUND);
about_dlg_background_logo_->SetImage(*about_background_logo);
AddChildView(about_dlg_background_logo_);
@@ -425,8 +426,8 @@ void AboutChromeView::OnPaint(gfx::Canvas* canvas) {
// Draw the background image color (and the separator) across the dialog.
// This will become the background for the logo image at the top of the
// dialog.
- SkBitmap* background = ui::ResourceBundle::GetSharedInstance().GetBitmapNamed(
- IDR_ABOUT_BACKGROUND_COLOR);
+ gfx::ImageSkia* background = ui::ResourceBundle::GetSharedInstance().
+ GetImageSkiaNamed(IDR_ABOUT_BACKGROUND_COLOR);
canvas->TileImageInt(*background, 0, 0, dialog_dimensions_.width(),
background->height());
« no previous file with comments | « chrome/browser/ui/toolbar/wrench_menu_model.cc ('k') | chrome/browser/ui/views/autocomplete/autocomplete_result_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698