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

Issue 133443011: Add text field change handling for autofill preview in textarea element. (Closed)

Created:
6 years, 10 months ago by ziran.sun
Modified:
6 years, 9 months ago
CC:
blink-reviews, dglazkov+blink, adamk+blink_chromium.org, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Add text field change handling for autofill preview in textarea element. Extend textarea setSuggestedValue() function to handle the dispaly when initiate autofill from textarea element. R=isherman@chromium.org, tkent@chromium.org BUG=332557 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168720

Patch Set 1 #

Total comments: 11

Patch Set 2 : Update code as per review comments #

Patch Set 3 : Wrap selectionStart, selectionEnd and editingValue for TextArea element #

Patch Set 4 : Alphabetical order correction for include files #

Patch Set 5 : Move selectionStart(), selectionEnd() and editingValue methods to WebFormControlElement interface. #

Patch Set 6 : Wrap text #

Total comments: 12

Patch Set 7 : Update code as per review comments from tkent and jamesr #

Total comments: 8

Patch Set 8 : Update code as per tkent's comments #

Total comments: 6

Patch Set 9 : Update documentation as per tkent's review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -21 lines) Patch
M Source/core/html/HTMLTextAreaElement.cpp View 1 2 3 4 5 6 3 chunks +11 lines, -2 lines 0 comments Download
M Source/core/page/ChromeClient.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M Source/web/ChromeClientImpl.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M Source/web/ChromeClientImpl.cpp View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
M Source/web/WebFormControlElement.cpp View 1 2 3 4 5 6 2 chunks +30 lines, -0 lines 0 comments Download
M Source/web/WebInputElement.cpp View 1 2 3 4 2 chunks +0 lines, -15 lines 0 comments Download
M Source/web/tests/WebViewTest.cpp View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
M public/web/WebAutofillClient.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M public/web/WebFormControlElement.h View 1 2 3 4 5 6 7 8 1 chunk +14 lines, -0 lines 0 comments Download
M public/web/WebInputElement.h View 1 2 3 4 2 chunks +0 lines, -4 lines 0 comments Download

Messages

Total messages: 42 (0 generated)
ziran.sun
Relevant review link - https://codereview.chromium.org/140093005 Thanks!
6 years, 10 months ago (2014-02-05 15:30:00 UTC) #1
abarth-chromium
https://codereview.chromium.org/133443011/diff/1/public/web/WebTextAreaElement.h File public/web/WebTextAreaElement.h (right): https://codereview.chromium.org/133443011/diff/1/public/web/WebTextAreaElement.h#newcode59 public/web/WebTextAreaElement.h:59: BLINK_EXPORT void setSelectionRange(int, int); Can you give these parameters ...
6 years, 10 months ago (2014-02-05 19:08:13 UTC) #2
tkent
https://codereview.chromium.org/133443011/diff/1/Source/core/html/HTMLTextAreaElement.cpp File Source/core/html/HTMLTextAreaElement.cpp (right): https://codereview.chromium.org/133443011/diff/1/Source/core/html/HTMLTextAreaElement.cpp#newcode451 Source/core/html/HTMLTextAreaElement.cpp:451: updatePlaceholderVisibility(false); nit: we can merge updatePlaceholderVisibility calls into one. ...
6 years, 10 months ago (2014-02-06 00:05:45 UTC) #3
ziran.sun
Updated code as per review comments. https://codereview.chromium.org/133443011/diff/1/Source/core/html/HTMLTextAreaElement.cpp File Source/core/html/HTMLTextAreaElement.cpp (right): https://codereview.chromium.org/133443011/diff/1/Source/core/html/HTMLTextAreaElement.cpp#newcode451 Source/core/html/HTMLTextAreaElement.cpp:451: updatePlaceholderVisibility(false); On 2014/02/06 ...
6 years, 10 months ago (2014-02-06 10:32:16 UTC) #4
tkent
https://codereview.chromium.org/133443011/diff/1/public/web/WebAutofillClient.h File public/web/WebAutofillClient.h (right): https://codereview.chromium.org/133443011/diff/1/public/web/WebAutofillClient.h#newcode62 public/web/WebAutofillClient.h:62: virtual void textFieldDidChange(const WebFormControlElement&) { } On 2014/02/06 10:32:17, ...
6 years, 10 months ago (2014-02-07 06:04:08 UTC) #5
ziran.sun
On 2014/02/07 06:04:08, tkent wrote: > https://codereview.chromium.org/133443011/diff/1/public/web/WebAutofillClient.h > File public/web/WebAutofillClient.h (right): > > https://codereview.chromium.org/133443011/diff/1/public/web/WebAutofillClient.h#newcode62 > ...
6 years, 10 months ago (2014-02-07 10:43:12 UTC) #6
tkent
lgtm
6 years, 10 months ago (2014-02-10 00:01:09 UTC) #7
Ilya Sherman
Ziran, is this ready to land? Should we check the CQ box?
6 years, 10 months ago (2014-02-14 02:12:32 UTC) #8
ziran.sun
On 2014/02/14 02:12:32, Ilya Sherman wrote: > Ziran, is this ready to land? Should we ...
6 years, 10 months ago (2014-02-14 18:58:58 UTC) #9
ziran.sun
Code updated. Please review. Thanks!
6 years, 10 months ago (2014-02-25 16:10:46 UTC) #10
Ilya Sherman
On 2014/02/25 16:10:46, ziran.sun wrote: > Code updated. Please review. What's changed, other than rebasing ...
6 years, 10 months ago (2014-02-25 22:52:04 UTC) #11
ziran.sun
On 2014/02/25 22:52:04, Ilya Sherman wrote: > On 2014/02/25 16:10:46, ziran.sun wrote: > > Code ...
6 years, 10 months ago (2014-02-26 10:46:36 UTC) #12
Ilya Sherman
On 2014/02/26 10:46:36, ziran.sun wrote: > On 2014/02/25 22:52:04, Ilya Sherman wrote: > > On ...
6 years, 10 months ago (2014-02-26 21:40:01 UTC) #13
tkent
> I see. Perhaps it would make more sense to instead create a > WebTextFormControlElement ...
6 years, 9 months ago (2014-02-27 22:44:07 UTC) #14
Ilya Sherman
On 2014/02/27 22:44:07, tkent wrote: > > I see. Perhaps it would make more sense ...
6 years, 9 months ago (2014-02-27 22:53:02 UTC) #15
tkent
On 2014/02/27 22:53:02, Ilya Sherman wrote: > On 2014/02/27 22:44:07, tkent wrote: > > > ...
6 years, 9 months ago (2014-02-27 23:29:47 UTC) #16
Ilya Sherman
On 2014/02/27 23:29:47, tkent wrote: > On 2014/02/27 22:53:02, Ilya Sherman wrote: > > On ...
6 years, 9 months ago (2014-02-27 23:34:12 UTC) #17
ziran.sun
On 2014/02/27 23:34:12, Ilya Sherman wrote: > On 2014/02/27 23:29:47, tkent wrote: > > On ...
6 years, 9 months ago (2014-03-03 19:12:12 UTC) #18
ziran.sun
Updated code. Please review. Thanks!
6 years, 9 months ago (2014-03-03 19:13:16 UTC) #19
tkent
https://codereview.chromium.org/133443011/diff/360001/Source/core/html/HTMLTextAreaElement.cpp File Source/core/html/HTMLTextAreaElement.cpp (left): https://codereview.chromium.org/133443011/diff/360001/Source/core/html/HTMLTextAreaElement.cpp#oldcode443 Source/core/html/HTMLTextAreaElement.cpp:443: setFormControlValueMatchesRenderer(true); Why do you remove this? https://codereview.chromium.org/133443011/diff/360001/Source/web/WebFormControlElement.cpp File Source/web/WebFormControlElement.cpp ...
6 years, 9 months ago (2014-03-04 00:15:55 UTC) #20
jamesr
https://codereview.chromium.org/133443011/diff/360001/public/web/WebAutofillClient.h File public/web/WebAutofillClient.h (right): https://codereview.chromium.org/133443011/diff/360001/public/web/WebAutofillClient.h#newcode52 public/web/WebAutofillClient.h:52: virtual void textFieldDidChange(const WebFormControlElement&) { } If so then ...
6 years, 9 months ago (2014-03-04 00:26:32 UTC) #21
ziran.sun
Update code as per review comments from tkent and jamesr. Please review. Thanks! https://codereview.chromium.org/133443011/diff/360001/Source/core/html/HTMLTextAreaElement.cpp File ...
6 years, 9 months ago (2014-03-04 12:12:39 UTC) #22
jamesr
On 2014/03/04 12:12:39, ziran.sun wrote: > So once both Blink and Chromium side code are ...
6 years, 9 months ago (2014-03-04 21:36:05 UTC) #23
tkent
https://codereview.chromium.org/133443011/diff/370001/Source/web/ChromeClientImpl.cpp File Source/web/ChromeClientImpl.cpp (right): https://codereview.chromium.org/133443011/diff/370001/Source/web/ChromeClientImpl.cpp#newcode917 Source/web/ChromeClientImpl.cpp:917: m_webView->autofillClient()->textFieldDidChange(WebFormControlElement(&element)); Please call textFieldDidChange(WebInputElement(...)) too if |element| is <input>. ...
6 years, 9 months ago (2014-03-04 23:43:57 UTC) #24
ziran.sun
Update code as per tkent's comments. All review comments have been addressed. Please review. Thanks! ...
6 years, 9 months ago (2014-03-05 14:29:01 UTC) #25
tkent
https://codereview.chromium.org/133443011/diff/390001/Source/core/page/ChromeClient.h File Source/core/page/ChromeClient.h (right): https://codereview.chromium.org/133443011/diff/390001/Source/core/page/ChromeClient.h#newcode246 Source/core/page/ChromeClient.h:246: // TODO(ziran.sun): This function is to be removed once ...
6 years, 9 months ago (2014-03-05 23:18:39 UTC) #26
ziran.sun
Updated documentations as per tkent's review comments. Please review. Thanks!
6 years, 9 months ago (2014-03-06 10:02:12 UTC) #27
tkent
lgtm
6 years, 9 months ago (2014-03-07 01:21:35 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ziran.sun@samsung.com/133443011/410001
6 years, 9 months ago (2014-03-07 01:21:49 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 04:52:47 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink
6 years, 9 months ago (2014-03-07 04:52:48 UTC) #31
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 9 months ago (2014-03-07 04:56:17 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ziran.sun@samsung.com/133443011/410001
6 years, 9 months ago (2014-03-07 04:56:29 UTC) #33
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 07:23:15 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink
6 years, 9 months ago (2014-03-07 07:23:15 UTC) #35
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 9 months ago (2014-03-07 07:27:14 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ziran.sun@samsung.com/133443011/410001
6 years, 9 months ago (2014-03-07 07:27:26 UTC) #37
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 07:29:33 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink
6 years, 9 months ago (2014-03-07 07:29:34 UTC) #39
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 9 months ago (2014-03-07 07:31:24 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ziran.sun@samsung.com/133443011/410001
6 years, 9 months ago (2014-03-07 07:31:37 UTC) #41
commit-bot: I haz the power
6 years, 9 months ago (2014-03-07 08:36:58 UTC) #42
Message was sent while issue was closed.
Change committed as 168720

Powered by Google App Engine
This is Rietveld 408576698