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

Side by Side Diff: chrome/browser/extensions/extension_install_ui.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/extension_install_ui.h" 5 #include "chrome/browser/extensions/extension_install_ui.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 rating_integer++; 177 rating_integer++;
178 } 178 }
179 179
180 if (rating_fractional < 0.33 || rating_fractional > 0.66) { 180 if (rating_fractional < 0.33 || rating_fractional > 0.66) {
181 rating_fractional = 0; 181 rating_fractional = 0;
182 } 182 }
183 183
184 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); 184 ResourceBundle& rb = ResourceBundle::GetSharedInstance();
185 int i; 185 int i;
186 for (i = 0; i < rating_integer; i++) { 186 for (i = 0; i < rating_integer; i++) {
187 appender(rb.GetBitmapNamed(IDR_EXTENSIONS_RATING_STAR_ON), data); 187 appender(rb.GetImageSkiaNamed(IDR_EXTENSIONS_RATING_STAR_ON), data);
188 } 188 }
189 if (rating_fractional) { 189 if (rating_fractional) {
190 appender(rb.GetBitmapNamed(IDR_EXTENSIONS_RATING_STAR_HALF_LEFT), data); 190 appender(rb.GetImageSkiaNamed(IDR_EXTENSIONS_RATING_STAR_HALF_LEFT), data);
191 i++; 191 i++;
192 } 192 }
193 for (; i < kMaxExtensionRating; i++) { 193 for (; i < kMaxExtensionRating; i++) {
194 appender(rb.GetBitmapNamed(IDR_EXTENSIONS_RATING_STAR_OFF), data); 194 appender(rb.GetImageSkiaNamed(IDR_EXTENSIONS_RATING_STAR_OFF), data);
195 } 195 }
196 } 196 }
197 197
198 string16 ExtensionInstallUI::Prompt::GetRatingCount() const { 198 string16 ExtensionInstallUI::Prompt::GetRatingCount() const {
199 CHECK_EQ(INLINE_INSTALL_PROMPT, type_); 199 CHECK_EQ(INLINE_INSTALL_PROMPT, type_);
200 return l10n_util::GetStringFUTF16( 200 return l10n_util::GetStringFUTF16(
201 IDS_EXTENSION_RATING_COUNT, 201 IDS_EXTENSION_RATING_COUNT,
202 UTF8ToUTF16(base::IntToString(rating_count_))); 202 UTF8ToUTF16(base::IntToString(rating_count_)));
203 } 203 }
204 204
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 bool previous_using_native_theme) { 555 bool previous_using_native_theme) {
556 Profile* profile = tab_contents->profile(); 556 Profile* profile = tab_contents->profile();
557 return new ThemeInstalledInfoBarDelegate( 557 return new ThemeInstalledInfoBarDelegate(
558 tab_contents->infobar_tab_helper(), 558 tab_contents->infobar_tab_helper(),
559 profile->GetExtensionService(), 559 profile->GetExtensionService(),
560 ThemeServiceFactory::GetForProfile(profile), 560 ThemeServiceFactory::GetForProfile(profile),
561 new_theme, 561 new_theme,
562 previous_theme_id, 562 previous_theme_id,
563 previous_using_native_theme); 563 previous_using_native_theme);
564 } 564 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_install_ui.h ('k') | chrome/browser/extensions/extension_uninstall_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698