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

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

Issue 10834368: Convert mostly favicon related code from SkBitmap to ImageSkia and Image (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | « chrome/browser/ui/omnibox/omnibox_edit_unittest.cc ('k') | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/browser_actions_container.cc
diff --git a/chrome/browser/ui/views/browser_actions_container.cc b/chrome/browser/ui/views/browser_actions_container.cc
index 45b6fb215215fd59dae4099de4b19037d1e9f704..2df4fd20f6f453718cf3f2014651e4043ea5b5c6 100644
--- a/chrome/browser/ui/views/browser_actions_container.cc
+++ b/chrome/browser/ui/views/browser_actions_container.cc
@@ -558,7 +558,7 @@ int BrowserActionsContainer::IconWidth(bool include_padding) {
static int icon_width = 0;
if (!initialized) {
initialized = true;
- icon_width = ui::ResourceBundle::GetSharedInstance().GetBitmapNamed(
+ icon_width = ui::ResourceBundle::GetSharedInstance().GetImageSkiaNamed(
IDR_BROWSER_ACTION)->width();
}
return icon_width + (include_padding ? kItemSpacing : 0);
@@ -570,7 +570,7 @@ int BrowserActionsContainer::IconHeight() {
static int icon_height = 0;
if (!initialized) {
initialized = true;
- icon_height = ui::ResourceBundle::GetSharedInstance().GetBitmapNamed(
+ icon_height = ui::ResourceBundle::GetSharedInstance().GetImageSkiaNamed(
IDR_BROWSER_ACTION)->height();
}
return icon_height;
@@ -673,9 +673,11 @@ void BrowserActionsContainer::ModelLoaded() {
void BrowserActionsContainer::LoadImages() {
ui::ThemeProvider* tp = GetThemeProvider();
- chevron_->SetIcon(*tp->GetBitmapNamed(IDR_BROWSER_ACTIONS_OVERFLOW));
- chevron_->SetHoverIcon(*tp->GetBitmapNamed(IDR_BROWSER_ACTIONS_OVERFLOW_H));
- chevron_->SetPushedIcon(*tp->GetBitmapNamed(IDR_BROWSER_ACTIONS_OVERFLOW_P));
+ chevron_->SetIcon(*tp->GetImageSkiaNamed(IDR_BROWSER_ACTIONS_OVERFLOW));
+ chevron_->SetHoverIcon(*tp->GetImageSkiaNamed(
+ IDR_BROWSER_ACTIONS_OVERFLOW_H));
+ chevron_->SetPushedIcon(*tp->GetImageSkiaNamed(
+ IDR_BROWSER_ACTIONS_OVERFLOW_P));
}
void BrowserActionsContainer::SetContainerWidth() {
« no previous file with comments | « chrome/browser/ui/omnibox/omnibox_edit_unittest.cc ('k') | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698