| Index: ui/gfx/render_text.h
|
| diff --git a/ui/gfx/render_text.h b/ui/gfx/render_text.h
|
| index da3607d9e11f8ed7109d2033f28903f7171b9d19..4b29f8f8ef77d3fc1ffc571237d9742e94d6a4a4 100644
|
| --- a/ui/gfx/render_text.h
|
| +++ b/ui/gfx/render_text.h
|
| @@ -42,6 +42,7 @@ struct UI_EXPORT StyleRange {
|
| SkColor foreground;
|
| bool strike;
|
| bool underline;
|
| + bool password; // make all glyphs look the same (password mode)
|
| ui::Range range;
|
| };
|
|
|
| @@ -73,6 +74,10 @@ class UI_EXPORT RenderText {
|
| const string16& text() const { return text_; }
|
| void SetText(const string16& text);
|
|
|
| + // Like text() except that regions with the password property set are
|
| + // replaced with asterisks or bullets.
|
| + string16 GetCensoredText() const;
|
| +
|
| const SelectionModel& selection_model() const { return selection_model_; }
|
|
|
| bool cursor_visible() const { return cursor_visible_; }
|
|
|