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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_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/location_bar/location_bar_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc
index 0a5408f773d82ef7f2eb05268c79af69a0277146..96b3072de8681bba9d7c360832ea23eee4871bf3 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -160,7 +160,7 @@ LocationBarView::LocationBarView(Profile* profile,
painter_.reset(
views::Painter::CreateImagePainter(
*ui::ResourceBundle::GetSharedInstance().GetImageNamed(
- IDR_LOCATION_BAR_BORDER).ToSkBitmap(),
+ IDR_LOCATION_BAR_BORDER).ToImageSkia(),
gfx::Insets(kBorderRoundCornerHeight, kBorderRoundCornerWidth,
kBorderRoundCornerHeight, kBorderRoundCornerWidth),
true));
@@ -518,7 +518,7 @@ bool LocationBarView::IsLocationEntryFocusableInRootView() const {
}
gfx::Size LocationBarView::GetPreferredSize() {
- return gfx::Size(0, GetThemeProvider()->GetBitmapNamed(mode_ == POPUP ?
+ return gfx::Size(0, GetThemeProvider()->GetImageSkiaNamed(mode_ == POPUP ?
IDR_LOCATIONBG_POPUPMODE_CENTER : IDR_LOCATIONBG_C)->height());
}
@@ -781,7 +781,7 @@ void LocationBarView::OnPaint(gfx::Canvas* canvas) {
if (painter_.get()) {
painter_->Paint(canvas, size());
} else if (mode_ == POPUP) {
- canvas->TileImageInt(*GetThemeProvider()->GetBitmapNamed(
+ canvas->TileImageInt(*GetThemeProvider()->GetImageSkiaNamed(
IDR_LOCATIONBG_POPUPMODE_CENTER), 0, 0, 0, 0, width(), height());
}
// When used in the app launcher, don't draw a border, the LocationBarView has
« no previous file with comments | « chrome/browser/ui/views/location_bar/keyword_hint_view.cc ('k') | chrome/browser/ui/views/menu_item_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698