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

Unified Diff: views/controls/textfield/textfield_views_model.h

Issue 7461102: modification to RenderText for inheritance/SelectionModel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync and change non-const reference to pointer Created 9 years, 5 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
Index: views/controls/textfield/textfield_views_model.h
===================================================================
--- views/controls/textfield/textfield_views_model.h (revision 95171)
+++ views/controls/textfield/textfield_views_model.h (working copy)
@@ -134,10 +134,10 @@
void MoveCursorLeft(gfx::BreakType break_type, bool select);
void MoveCursorRight(gfx::BreakType break_type, bool select);
- // Moves the cursor to the specified |position|.
- // If |select| is true, it updates the selection accordingly.
+ // Moves the cursor to the specified cursor position in |selection|.
+ // Update selection to selection range in |selection|.
// The current composition text will be confirmed.
- bool MoveCursorTo(size_t position, bool select);
+ bool MoveCursorTo(gfx::SelectionModel* selection);
// Helper function to call MoveCursorTo on the TextfieldViewsModel.
bool MoveCursorTo(const gfx::Point& point, bool select);

Powered by Google App Engine
This is Rietveld 408576698