BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / ui_localizer.h
blob65bf67c1dae3bffd4606dc80bb5fc20d1d69c7be
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_COCOA_UI_LOCALIZER_H_
6 #define CHROME_BROWSER_UI_COCOA_UI_LOCALIZER_H_
8 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizer.h"
10 @class NSString;
12 // A base class for generated localizers.
14 // To use this, include your xib file in the list generate_localizer scans (see
15 // chrome_browser.gypi). Then add an instance of ChromeUILocalizer to the xib.
16 // Connect the owner_ outlet of the instance to the "File's Owner" of the xib.
17 // It expects the owner_ outlet to be an instance or subclass of
18 // NSWindowController or NSViewController. It will then localize any items in
19 // the NSWindowController's window and subviews, or the NSViewController's view
20 // and subviews, when awakeFromNib is called on the instance. You can
21 // optionally hook up otherObjectToLocalize_ and yetAnotherObjectToLocalize_ and
22 // those will also be localized. Strings in the xib that you want localized must
23 // start with ^IDS. The value must be a valid resource constant.
24 // Things that will be localized are:
25 // - Titles and altTitles (for menus, buttons, windows, menuitems, -tabViewItem)
26 // - -stringValue (for labels)
27 // - tooltips
28 // - accessibility help
29 // - accessibility descriptions
30 // - menus
31 @interface ChromeUILocalizer : GTMUILocalizer
32 @end
34 #endif // CHROME_BROWSER_UI_COCOA_UI_LOCALIZER_H_