Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(584)

Unified Diff: ui/gfx/render_text.h

Issue 2660593002: Paint text cursor in LAYER_SOLID_COLOR (Closed)
Patch Set: comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/ash/accessibility/ax_tree_source_aura_unittest.cc ('k') | ui/gfx/render_text.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text.h
diff --git a/ui/gfx/render_text.h b/ui/gfx/render_text.h
index 36bec3e9408db25fb71abd41b3b184d8eccc1714..bcb731444c7df86757d2c673fbc0960f0bac1e1e 100644
--- a/ui/gfx/render_text.h
+++ b/ui/gfx/render_text.h
@@ -250,12 +250,6 @@ class GFX_EXPORT RenderText {
bool cursor_enabled() const { return cursor_enabled_; }
void SetCursorEnabled(bool cursor_enabled);
- bool cursor_visible() const { return cursor_visible_; }
- void set_cursor_visible(bool visible) { cursor_visible_ = visible; }
-
- SkColor cursor_color() const { return cursor_color_; }
- void set_cursor_color(SkColor color) { cursor_color_ = color; }
-
SkColor selection_color() const { return selection_color_; }
void set_selection_color(SkColor color) { selection_color_ = color; }
@@ -453,9 +447,6 @@ class GFX_EXPORT RenderText {
void Draw(Canvas* canvas);
- // Draws a cursor at |position|.
- void DrawCursor(Canvas* canvas, const SelectionModel& position);
-
// Gets the SelectionModel from a visual point in local coordinates.
virtual SelectionModel FindCursorPosition(const Point& point) = 0;
@@ -765,12 +756,6 @@ class GFX_EXPORT RenderText {
// for the cursor when positioning text.
bool cursor_enabled_;
- // The cursor visibility.
- bool cursor_visible_;
-
- // The color used for the cursor.
- SkColor cursor_color_;
-
// The color used for drawing selected text.
SkColor selection_color_;
« no previous file with comments | « chrome/browser/ui/ash/accessibility/ax_tree_source_aura_unittest.cc ('k') | ui/gfx/render_text.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698