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

Unified Diff: chrome/browser/ui/views/page_info_bubble_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/page_info_bubble_view.cc
diff --git a/chrome/browser/ui/views/page_info_bubble_view.cc b/chrome/browser/ui/views/page_info_bubble_view.cc
index 54566686a4c0899627c94af4c481e91d2c163466..c4e0bc75c835b74aa23ec15de1edabcdcd4901f5 100644
--- a/chrome/browser/ui/views/page_info_bubble_view.cc
+++ b/chrome/browser/ui/views/page_info_bubble_view.cc
@@ -55,7 +55,7 @@ class Section : public views::View,
public:
Section(PageInfoBubbleView* owner,
const PageInfoModel::SectionInfo& section_info,
- const SkBitmap* status_icon,
+ const gfx::ImageSkia* status_icon,
bool show_cert);
virtual ~Section();
@@ -191,7 +191,8 @@ void PageInfoBubbleView::LayoutSections() {
if (count == 1 && info.type == PageInfoModel::SECTION_INFO_INTERNAL_PAGE)
only_internal_section = true;
layout->StartRow(0, 0);
- const SkBitmap* icon = model_.GetIconImage(info.icon_id)->ToSkBitmap();
+ const gfx::ImageSkia* icon = model_.GetIconImage(
+ info.icon_id)->ToImageSkia();
Section* section = new Section(this, info, icon, cert_id_ > 0);
if (info.type == PageInfoModel::SECTION_INFO_FIRST_VISIT) {
// This section is animated into view, so we need to set the height of it
@@ -239,7 +240,8 @@ gfx::Size PageInfoBubbleView::GetPreferredSize() {
int count = model_.GetSectionCount();
for (int i = 0; i < count; ++i) {
PageInfoModel::SectionInfo info = model_.GetSectionInfo(i);
- const SkBitmap* icon = model_.GetIconImage(info.icon_id)->ToSkBitmap();
+ const gfx::ImageSkia* icon = model_.GetIconImage(
+ info.icon_id)->ToImageSkia();
Section section(this, info, icon, cert_id_ > 0);
size.Enlarge(0, section.GetHeightForWidth(size.width()));
}
@@ -313,7 +315,7 @@ void PageInfoBubbleView::AnimationProgressed(const ui::Animation* animation) {
Section::Section(PageInfoBubbleView* owner,
const PageInfoModel::SectionInfo& section_info,
- const SkBitmap* state_icon,
+ const gfx::ImageSkia* state_icon,
bool show_cert)
: owner_(owner),
info_(section_info),
« no previous file with comments | « chrome/browser/ui/views/notifications/balloon_view.cc ('k') | chrome/browser/ui/views/speech_recognition_bubble_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698