| Index: ui/gfx/render_text.h
|
| diff --git a/ui/gfx/render_text.h b/ui/gfx/render_text.h
|
| index 219cab60eea0a847881b99098dc3e4acf360c370..1088281c7daf928a7da4713feb5c7b5bd7070a9d 100644
|
| --- a/ui/gfx/render_text.h
|
| +++ b/ui/gfx/render_text.h
|
| @@ -253,6 +253,17 @@ class GFX_EXPORT RenderText {
|
| selection_background_focused_color_ = color;
|
| }
|
|
|
| + SkColor selection_background_unfocused_color() const {
|
| + return selection_background_unfocused_color_;
|
| + }
|
| + void set_selection_background_unfocused_color(SkColor color) {
|
| + selection_background_unfocused_color_ = color;
|
| + }
|
| +
|
| + void set_draw_unfocused_selection(bool draw) {
|
| + draw_unfocused_selection_ = draw;
|
| + }
|
| +
|
| bool focused() const { return focused_; }
|
| void set_focused(bool focused) { focused_ = focused; }
|
|
|
| @@ -752,6 +763,12 @@ class GFX_EXPORT RenderText {
|
| // The background color used for drawing the selection when focused.
|
| SkColor selection_background_focused_color_;
|
|
|
| + // The background color used for drawing the selection when not focused.
|
| + SkColor selection_background_unfocused_color_;
|
| +
|
| + // Whether to draw the selected text regardless of focus.
|
| + bool draw_unfocused_selection_;
|
| +
|
| // The focus state of the text.
|
| bool focused_;
|
|
|
|
|