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

Unified Diff: chrome/browser/cocoa/ui_localizer.h

Issue 164260: ObjC classes generated by the build and used in Xib files is already getting ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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
« no previous file with comments | « chrome/browser/app_controller_mac.mm ('k') | chrome/browser/cocoa/ui_localizer.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/ui_localizer.h
===================================================================
--- chrome/browser/cocoa/ui_localizer.h (revision 23016)
+++ chrome/browser/cocoa/ui_localizer.h (working copy)
@@ -5,30 +5,14 @@
#ifndef CHROME_BROWSER_COCOA_UI_LOCALIZER_H_
#define CHROME_BROWSER_COCOA_UI_LOCALIZER_H_
-#include "base/basictypes.h"
-#include "base/string16.h"
#import "third_party/GTM/AppKit/GTMUILocalizer.h"
@class NSString;
-namespace ui_localizer {
-
-struct ResourceMap {
- const char* const name;
- unsigned int label_id;
- unsigned int label_arg_id;
-};
-
-NSString* LocalizedStringForKeyFromMapList(NSString* key,
- const ResourceMap* map_list,
- size_t map_list_len);
-
-} // namespace ui_localizer
-
// A base class for generated localizers.
//
-// To use this, have the build run generate_localizer on your xib file (see
-// chrome.gyp). Then add an instance of the generated subclass to the xib.
+// To use this, include your xib file in the list generate_localizer scans (see
+// chrome.gyp). Then add an instance of ChromeUILocalizer to the xib.
// Connect the owner_ outlet of the instance to the "File's Owner" of the xib.
// It expects the owner_ outlet to be an instance or subclass of
// NSWindowController or NSViewController. It will then localize any items in
« no previous file with comments | « chrome/browser/app_controller_mac.mm ('k') | chrome/browser/cocoa/ui_localizer.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698