diff options
author | mihaip@chromium.org <mihaip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-06 04:33:13 +0000 |
---|---|---|
committer | mihaip@chromium.org <mihaip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-06 04:33:13 +0000 |
commit | 0e4ee1bde8c498c0986aacc868396d7d5b2711c8 (patch) | |
tree | 0c301fed95b55d5215a410ff99b6ca459e12299c /chrome/browser/extensions/extension_install_ui.cc | |
parent | 1eb5a2298dbc3dc3d30272847cdaa3e6b4d2791d (diff) | |
download | chromium_src-0e4ee1bde8c498c0986aacc868396d7d5b2711c8.zip chromium_src-0e4ee1bde8c498c0986aacc868396d7d5b2711c8.tar.gz chromium_src-0e4ee1bde8c498c0986aacc868396d7d5b2711c8.tar.bz2 |
Implement the inline extensions/apps install UI for Cocoa.
This required a new .xib (ExtensionInstallPromptInline) that shows store data
(star rating, number of reviews, number of users). Current .xibs
(ExtensionInstallPrompt and ExtensionInstallPromptNoWarnings) were rearranged
slightly to have the icon on the right and use a bulleted list for the list
of permissions (instead of a box) per Cole's mock.
This is the Cocoa side of r99407 (views) and r99205 (GTK).
BUG=93380
TEST=no
Review URL: http://codereview.chromium.org/7835039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99695 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_install_ui.cc')
-rw-r--r-- | chrome/browser/extensions/extension_install_ui.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/extensions/extension_install_ui.cc b/chrome/browser/extensions/extension_install_ui.cc index 7d464a4..74d2eb0 100644 --- a/chrome/browser/extensions/extension_install_ui.cc +++ b/chrome/browser/extensions/extension_install_ui.cc @@ -38,6 +38,7 @@ #include "grit/generated_resources.h" #include "grit/theme_resources.h" #include "ui/base/l10n/l10n_util.h" +#include "ui/base/resource/resource_bundle.h" static const int kTitleIds[ExtensionInstallUI::NUM_PROMPT_TYPES] = { IDS_EXTENSION_INSTALL_PROMPT_TITLE, @@ -149,16 +150,17 @@ void ExtensionInstallUI::Prompt::AppendRatingStars( rating_fractional = 0; } + ResourceBundle& rb = ResourceBundle::GetSharedInstance(); int i; for (i = 0; i < rating_integer; i++) { - appender(IDR_EXTENSIONS_RATING_STAR_ON, data); + appender(rb.GetBitmapNamed(IDR_EXTENSIONS_RATING_STAR_ON), data); } if (rating_fractional) { - appender(IDR_EXTENSIONS_RATING_STAR_HALF_LEFT, data); + appender(rb.GetBitmapNamed(IDR_EXTENSIONS_RATING_STAR_HALF_LEFT), data); i++; } for (; i < kMaxExtensionRating; i++) { - appender(IDR_EXTENSIONS_RATING_STAR_OFF, data); + appender(rb.GetBitmapNamed(IDR_EXTENSIONS_RATING_STAR_OFF), data); } } |