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

Issue 7598014: Adjust GetLeft/RightSelectionModel return, cursor on edit. (Closed)

Created:
9 years, 4 months ago by msw
Modified:
9 years, 4 months ago
Reviewers:
xji
CC:
chromium-reviews, dhollowa, oshima
Visibility:
Public.

Description

Rename GetLeft/RightCursorPosition to GetLeft/RightSelectionModel. Discard selection from the the GetLeft/RightSelectionModel return value. Update the cursor properly on edits. BUG=90426 TEST=--use-pure-views cursor movement, position after editing. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95945

Patch Set 1 #

Patch Set 2 : Fix caret placement API for RTL text edits. #

Total comments: 10

Patch Set 3 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -83 lines) Patch
M ui/gfx/render_text.h View 1 2 3 chunks +13 lines, -10 lines 0 comments Download
M ui/gfx/render_text.cc View 1 2 5 chunks +56 lines, -73 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
msw
PTAL, thanks!
9 years, 4 months ago (2011-08-08 22:21:25 UTC) #1
xji
http://codereview.chromium.org/7598014/diff/3001/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): http://codereview.chromium.org/7598014/diff/3001/ui/gfx/render_text.cc#newcode186 ui/gfx/render_text.cc:186: sel.set_caret_placement(SelectionModel::TRAILING); RenderText::ClearSelection() probably wont work after the change? http://codereview.chromium.org/7598014/diff/3001/ui/gfx/render_text.cc#newcode192 ...
9 years, 4 months ago (2011-08-08 23:56:13 UTC) #2
msw
Comments addressed; PTAL, thanks! http://codereview.chromium.org/7598014/diff/3001/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): http://codereview.chromium.org/7598014/diff/3001/ui/gfx/render_text.cc#newcode186 ui/gfx/render_text.cc:186: sel.set_caret_placement(SelectionModel::TRAILING); On 2011/08/08 23:56:13, xji ...
9 years, 4 months ago (2011-08-09 01:07:42 UTC) #3
xji
9 years, 4 months ago (2011-08-09 01:13:19 UTC) #4
lgtm

Powered by Google App Engine
This is Rietveld 408576698