diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-01 16:34:49 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-01 16:34:49 +0000 |
commit | 7d791652c7ede4209a2014d885148e2713f49bce (patch) | |
tree | c26baf12593bed381c631b81c736106809d46b44 /chrome/browser/ui/cocoa/ui_localizer.h | |
parent | 3b94427c99bdf12836fd455eeb1499fdde511e26 (diff) | |
download | chromium_src-7d791652c7ede4209a2014d885148e2713f49bce.zip chromium_src-7d791652c7ede4209a2014d885148e2713f49bce.tar.gz chromium_src-7d791652c7ede4209a2014d885148e2713f49bce.tar.bz2 |
Move browser/cocoa to browser/ui/cocoa
BUG=none
TEST=none
TBR=brettw
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67854 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/cocoa/ui_localizer.h')
-rw-r--r-- | chrome/browser/ui/cocoa/ui_localizer.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/chrome/browser/ui/cocoa/ui_localizer.h b/chrome/browser/ui/cocoa/ui_localizer.h new file mode 100644 index 0000000..6e426c4 --- /dev/null +++ b/chrome/browser/ui/cocoa/ui_localizer.h @@ -0,0 +1,35 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_UI_COCOA_UI_LOCALIZER_H_ +#define CHROME_BROWSER_UI_COCOA_UI_LOCALIZER_H_ +#pragma once + +#import "third_party/GTM/AppKit/GTMUILocalizer.h" + +@class NSString; + +// A base class for generated localizers. +// +// 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 +// the NSWindowController's window and subviews, or the NSViewController's view +// and subviews, when awakeFromNib is called on the instance. You can +// optionally hook up otherObjectToLocalize_ and yetAnotherObjectToLocalize_ and +// those will also be localized. Strings in the xib that you want localized must +// start with ^IDS. The value must be a valid resource constant. +// Things that will be localized are: +// - Titles and altTitles (for menus, buttons, windows, menuitems, -tabViewItem) +// - -stringValue (for labels) +// - tooltips +// - accessibility help +// - accessibility descriptions +// - menus +@interface ChromeUILocalizer : GTMUILocalizer +@end + +#endif // CHROME_BROWSER_UI_COCOA_UI_LOCALIZER_H_ |