diff options
Diffstat (limited to 'chrome/browser/cocoa/l10n_util.h')
-rw-r--r-- | chrome/browser/cocoa/l10n_util.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/l10n_util.h b/chrome/browser/cocoa/l10n_util.h index 5e417a1..bb26327 100644 --- a/chrome/browser/cocoa/l10n_util.h +++ b/chrome/browser/cocoa/l10n_util.h @@ -4,6 +4,8 @@ #import <Cocoa/Cocoa.h> +#include "base/string16.h" + namespace cocoa_l10n_util { // Compare function for -[NSArray sortedArrayUsingFunction:context:] that @@ -16,4 +18,15 @@ NSInteger CompareFrameY(id view1, id view2, void* context); // anything else: do +[GTMUILocalizerAndLayoutTweaker sizeToFitView:] NSSize WrapOrSizeToFit(NSView* view); +// Walks views in top-down order, wraps each to their current width, and moves +// the latter ones down to prevent overlaps. Returns the vertical delta in view +// coordinates. +CGFloat VerticallyReflowGroup(NSArray* views); + +// Like |ReplaceStringPlaceholders(const string16&, const string16&, size_t*)|, +// but for a NSString formatString. +NSString* ReplaceNSStringPlaceholders(NSString* formatString, + const string16& a, + size_t* offset); + } // namespace cocoa_l10n_util |