| Index: ui/views/controls/styled_label.h
|
| ===================================================================
|
| --- ui/views/controls/styled_label.h (revision 239550)
|
| +++ ui/views/controls/styled_label.h (working copy)
|
| @@ -5,8 +5,8 @@
|
| #ifndef UI_VIEWS_CONTROLS_STYLED_LABEL_H_
|
| #define UI_VIEWS_CONTROLS_STYLED_LABEL_H_
|
|
|
| +#include <list>
|
| #include <map>
|
| -#include <queue>
|
|
|
| #include "base/basictypes.h"
|
| #include "base/strings/string16.h"
|
| @@ -103,12 +103,13 @@
|
| gfx::Range range;
|
| RangeStyleInfo style_info;
|
| };
|
| + typedef std::list<StyleRange> StyleRanges;
|
|
|
| // Calculates how to layout child views, creates them and sets their size
|
| // and position. |width| is the horizontal space, in pixels, that the view
|
| // has to work with. If |dry_run| is true, the view hierarchy is not touched.
|
| - // The return value is the height in pixels.
|
| - int CalculateAndDoLayout(int width, bool dry_run);
|
| + // The return value is the necessary size.
|
| + gfx::Size CalculateAndDoLayout(int width, bool dry_run);
|
|
|
| // The text to display.
|
| string16 text_;
|
| @@ -121,7 +122,7 @@
|
| StyledLabelListener* listener_;
|
|
|
| // The ranges that should be linkified, sorted by start position.
|
| - std::priority_queue<StyleRange> style_ranges_;
|
| + StyleRanges style_ranges_;
|
|
|
| // A mapping from a view to the range it corresponds to in |text_|. Only views
|
| // that correspond to ranges with is_link style set will be added to the map.
|
|
|