| Index: chrome/browser/cocoa/l10n_util.h
|
| diff --git a/chrome/browser/cocoa/l10n_util.h b/chrome/browser/cocoa/l10n_util.h
|
| index 5e417a19fbfa5dcef623f196118d0d910979b35f..bb26327872cfd4570134413bfce4f672ef6c8910 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
|
|
|