OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_COCOA_UI_LOCALIZER_H_ |
| 6 #define CHROME_BROWSER_COCOA_UI_LOCALIZER_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/string16.h" |
| 10 |
| 11 @class NSString; |
| 12 |
| 13 namespace ui_localizer { |
| 14 |
| 15 // Remove the window's style accelerator marker and change "..." into an |
| 16 // ellipsis and return the result in an autoreleased NSString. |
| 17 NSString* FixUpWindowsStyleLabel(const string16& label); |
| 18 |
| 19 struct ResourceMap { |
| 20 const char* const name; |
| 21 unsigned int label_id; |
| 22 unsigned int label_arg_id; |
| 23 }; |
| 24 |
| 25 NSString* LocalizedStringForKeyFromMapList(NSString* key, |
| 26 const ResourceMap* map_list, |
| 27 size_t map_list_len); |
| 28 |
| 29 } // namespace ui_localizer |
| 30 |
| 31 #endif // CHROME_BROWSER_COCOA_UI_LOCALIZER_H_ |
OLD | NEW |