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

Unified Diff: ash/system/drive/tray_drive.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 | « ash/system/brightness/tray_brightness.cc ('k') | ash/system/ime/tray_ime.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/drive/tray_drive.cc
diff --git a/ash/system/drive/tray_drive.cc b/ash/system/drive/tray_drive.cc
index 813053dd9e9a31ac88239cc14fdd36a4ba167fe4..c9631033b21002f502310c85734b51ec829ca9dd 100644
--- a/ash/system/drive/tray_drive.cc
+++ b/ash/system/drive/tray_drive.cc
@@ -70,7 +70,7 @@ class DriveDefaultView : public TrayItemMore {
: TrayItemMore(owner) {
ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance();
- SetImage(bundle.GetImageNamed(IDR_AURA_UBER_TRAY_DRIVE).ToSkBitmap());
+ SetImage(bundle.GetImageNamed(IDR_AURA_UBER_TRAY_DRIVE).ToImageSkia());
Update(list);
}
@@ -96,11 +96,11 @@ class DriveDetailedView : public TrayDetailsView,
in_progress_img_(NULL),
done_img_(NULL),
failed_img_(NULL) {
- in_progress_img_ = ResourceBundle::GetSharedInstance().GetBitmapNamed(
+ in_progress_img_ = ResourceBundle::GetSharedInstance().GetImageSkiaNamed(
IDR_AURA_UBER_TRAY_DRIVE);
- done_img_ = ResourceBundle::GetSharedInstance().GetBitmapNamed(
+ done_img_ = ResourceBundle::GetSharedInstance().GetImageSkiaNamed(
IDR_AURA_UBER_TRAY_DRIVE_DONE);
- failed_img_ = ResourceBundle::GetSharedInstance().GetBitmapNamed(
+ failed_img_ = ResourceBundle::GetSharedInstance().GetImageSkiaNamed(
IDR_AURA_UBER_TRAY_DRIVE_FAILED);
Update(list);
@@ -173,10 +173,10 @@ class DriveDetailedView : public TrayDetailsView,
cancel_button_ = new views::ImageButton(this);
cancel_button_->SetImage(views::ImageButton::BS_NORMAL,
- ResourceBundle::GetSharedInstance().GetBitmapNamed(
+ ResourceBundle::GetSharedInstance().GetImageSkiaNamed(
IDR_AURA_UBER_TRAY_DRIVE_CANCEL));
cancel_button_->SetImage(views::ImageButton::BS_HOT,
- ResourceBundle::GetSharedInstance().GetBitmapNamed(
+ ResourceBundle::GetSharedInstance().GetImageSkiaNamed(
IDR_AURA_UBER_TRAY_DRIVE_CANCEL_HOVER));
UpdateStatus(state, progress);
@@ -266,7 +266,8 @@ class DriveDetailedView : public TrayDetailsView,
CreateSpecialRow(IDS_ASH_STATUS_TRAY_DRIVE, this);
}
- SkBitmap* GetImageForState(ash::DriveOperationStatus::OperationState state) {
+ gfx::ImageSkia* GetImageForState(
+ ash::DriveOperationStatus::OperationState state) {
switch (state) {
case ash::DriveOperationStatus::OPERATION_NOT_STARTED:
case ash::DriveOperationStatus::OPERATION_STARTED:
@@ -362,9 +363,9 @@ class DriveDetailedView : public TrayDetailsView,
// Maps operation entries to their file paths.
std::map<FilePath, RowView*> update_map_;
views::View* settings_;
- SkBitmap* in_progress_img_;
- SkBitmap* done_img_;
- SkBitmap* failed_img_;
+ gfx::ImageSkia* in_progress_img_;
+ gfx::ImageSkia* done_img_;
+ gfx::ImageSkia* failed_img_;
DISALLOW_COPY_AND_ASSIGN(DriveDetailedView);
};
« no previous file with comments | « ash/system/brightness/tray_brightness.cc ('k') | ash/system/ime/tray_ime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698