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

Issue 14264004: Re-land: NativeTextfieldViews: Show the drop cursor when dragging text (Closed)

Created:
7 years, 8 months ago by ckocagil
Modified:
7 years, 8 months ago
CC:
chromium-reviews, tfarina, James Su, penghuang+watch_chromium.org, sail+watch_chromium.org, yusukes+watch_chromium.org, Alexei Svitkine (slow)
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Re-land: NativeTextfieldViews: Show the drop cursor when dragging text First landed as r193674, reverted due to breaking tests skipped by the try bots. This CL fixes the breakage too. NativeTextfieldViews: Show the drop cursor when dragging text. Enables RenderText users to draw cursors at specified positions through RenderText::DrawCursor. Uses this method to implement the drop cursor in NativeTextfieldViews. BUG=229661 TEST=Use Views Textfield; select text in omnibox; drag it around the omnibox; a cursor should be displayed at where the text will be dropped Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194903

Patch Set 1 #

Total comments: 2

Patch Set 2 : 2 #

Patch Set 3 : 3 #

Total comments: 2

Patch Set 4 : 4 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -32 lines) Patch
M ui/gfx/render_text.h View 1 4 chunks +10 lines, -8 lines 0 comments Download
M ui/gfx/render_text.cc View 1 2 6 chunks +19 lines, -20 lines 0 comments Download
M ui/gfx/render_text_mac.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/textfield/native_textfield_views.h View 2 chunks +4 lines, -0 lines 0 comments Download
M ui/views/controls/textfield/native_textfield_views.cc View 1 2 3 3 chunks +21 lines, -3 lines 1 comment Download

Messages

Total messages: 9 (0 generated)
ckocagil
sky: native_textfield_views.* are the same, could you stamp? msw: I ended up simply returning true ...
7 years, 8 months ago (2013-04-15 10:30:35 UTC) #1
msw
LGTM, with an optional suggestion. +CC Alexei for RenderTextMac, but I think it's fine. https://codereview.chromium.org/14264004/diff/1/ui/views/controls/textfield/native_textfield_views.cc ...
7 years, 8 months ago (2013-04-15 17:14:04 UTC) #2
Alexei Svitkine (slow)
lgtm
7 years, 8 months ago (2013-04-15 17:18:30 UTC) #3
sky
LGTM
7 years, 8 months ago (2013-04-15 17:28:43 UTC) #4
ckocagil
https://codereview.chromium.org/14264004/diff/1/ui/views/controls/textfield/native_textfield_views.cc File ui/views/controls/textfield/native_textfield_views.cc (right): https://codereview.chromium.org/14264004/diff/1/ui/views/controls/textfield/native_textfield_views.cc#newcode271 ui/views/controls/textfield/native_textfield_views.cc:271: drop_cursor_position_ = GetRenderText()->FindCursorPosition(location); On 2013/04/15 17:14:04, msw wrote: > ...
7 years, 8 months ago (2013-04-15 20:41:15 UTC) #5
msw
LGTM with a nit; thanks! https://codereview.chromium.org/14264004/diff/1009/ui/views/controls/textfield/native_textfield_views.cc File ui/views/controls/textfield/native_textfield_views.cc (right): https://codereview.chromium.org/14264004/diff/1009/ui/views/controls/textfield/native_textfield_views.cc#newcode269 ui/views/controls/textfield/native_textfield_views.cc:269: drop_cursor_position_ = GetRenderText()->FindCursorPosition(location); nit: ...
7 years, 8 months ago (2013-04-15 21:05:43 UTC) #6
ckocagil
Will commit when the CQ opens. https://codereview.chromium.org/14264004/diff/1009/ui/views/controls/textfield/native_textfield_views.cc File ui/views/controls/textfield/native_textfield_views.cc (right): https://codereview.chromium.org/14264004/diff/1009/ui/views/controls/textfield/native_textfield_views.cc#newcode269 ui/views/controls/textfield/native_textfield_views.cc:269: drop_cursor_position_ = GetRenderText()->FindCursorPosition(location); ...
7 years, 8 months ago (2013-04-16 19:20:24 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ckocagil@chromium.org/14264004/15001
7 years, 8 months ago (2013-04-18 10:41:10 UTC) #8
commit-bot: I haz the power
7 years, 8 months ago (2013-04-18 12:50:43 UTC) #9
Message was sent while issue was closed.
Change committed as 194903

Powered by Google App Engine
This is Rietveld 408576698