| Index: ui/gfx/text_utils.h
|
| diff --git a/ui/gfx/text_utils.h b/ui/gfx/text_utils.h
|
| index 42bce4397316966d33565ff84408996ece8cec87..15bf3cadfbb4291197f09828116a9b25af9d5b6e 100644
|
| --- a/ui/gfx/text_utils.h
|
| +++ b/ui/gfx/text_utils.h
|
| @@ -10,6 +10,8 @@
|
|
|
| namespace gfx {
|
|
|
| +class FontList;
|
| +
|
| // Strip the accelerator char (typically '&') from a menu string. A double
|
| // accelerator char ('&&') will be converted to a single char. The out params
|
| // |accelerated_char_pos| and |accelerated_char_span| will be set to the index
|
| @@ -20,6 +22,11 @@ UI_EXPORT base::string16 RemoveAcceleratorChar(const base::string16& s,
|
| int* accelerated_char_pos,
|
| int* accelerated_char_span);
|
|
|
| +// Returns the number of horizontal pixels needed to display the specified
|
| +// |text| with |font_list|.
|
| +UI_EXPORT int GetStringWidth(const base::string16& text,
|
| + const FontList& font_list);
|
| +
|
| } // namespace gfx
|
|
|
| #endif // UI_GFX_TEXT_UTILS_H_
|
|
|