diff options
author | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-30 19:06:18 +0000 |
---|---|---|
committer | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-30 19:06:18 +0000 |
commit | 288488c29bc8eabd5f2c34c0fd1b07fe7b006dd0 (patch) | |
tree | 4812393424a6e72cec9bf19e9d0d4503596bfce5 /chrome/browser | |
parent | 83ea6a5478117210a3c0835a296600d9b2230464 (diff) | |
download | chromium_src-288488c29bc8eabd5f2c34c0fd1b07fe7b006dd0.zip chromium_src-288488c29bc8eabd5f2c34c0fd1b07fe7b006dd0.tar.gz chromium_src-288488c29bc8eabd5f2c34c0fd1b07fe7b006dd0.tar.bz2 |
Page Info Window
- Localize title
- Localize button
- Autosize button to text
- Localize headings
- Fetch the page info good/bad images from the resource bundle
Stop including the page info good/bad images in the app bundle.
TEST=Page Info dialog is localized and the button isn't clipped.
BUG=20230
BUG=20536
Review URL: http://codereview.chromium.org/246048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27641 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/cocoa/page_info_window_controller.mm | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/chrome/browser/cocoa/page_info_window_controller.mm b/chrome/browser/cocoa/page_info_window_controller.mm index d8eb7c7..4fa8cb2 100644 --- a/chrome/browser/cocoa/page_info_window_controller.mm +++ b/chrome/browser/cocoa/page_info_window_controller.mm @@ -4,6 +4,7 @@ #import "chrome/browser/cocoa/page_info_window_controller.h" +#include "app/resource_bundle.h" #include "base/mac_util.h" #include "base/values.h" #include "chrome/browser/browser_process.h" @@ -31,13 +32,9 @@ NSString* nibpath = [bundle pathForResource:@"PageInfo" ofType:@"nib"]; if ((self = [super initWithWindowNibPath:nibpath owner:self])) { // Load the image refs. - NSImage* img = [[NSImage alloc] initByReferencingFile: - [bundle pathForResource:@"pageinfo_good" ofType:@"png"]]; - goodImg_.reset(img); - - img = [[NSImage alloc] initByReferencingFile: - [bundle pathForResource:@"pageinfo_bad" ofType:@"png"]]; - badImg_.reset(img); + ResourceBundle& rb = ResourceBundle::GetSharedInstance(); + goodImg_.reset([rb.GetNSImageNamed(IDR_PAGEINFO_GOOD) retain]); + badImg_.reset([rb.GetNSImageNamed(IDR_PAGEINFO_BAD) retain]); } return self; } |