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

Issue 1031533002: Supports the invisible underline for native input fields. (Closed)

Created:
5 years, 9 months ago by Shu Chen
Modified:
5 years, 8 months ago
Reviewers:
msw
CC:
chromium-reviews, yusukes+watch_chromium.org, derat+watch_chromium.org, yukishiino+watch_chromium.org, tfarina, penghuang+watch_chromium.org, nona+watch_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Supports the invisible underline for native input fields. Physical keyboard autocorrect feature needs to be launched in M43, which can sets composition with invisible underline. For now, views::TextField doesn't respect the config in CompositionText for colors, background, etc. This cl is to make the RenderText not render the underline if the CompositionText is configured with transparent color. Note: this cl doesn't try to support background, colors, etc. as some TODOs like https://code.google.com/p/chromium/codesearch#chromium/src/ui/gfx/render_text.h&l=723 BUG=407576 TEST=Verified on clapper & linux_chromeos. Committed: https://crrev.com/09036bd899e6b591fae4e9665247c78d26c14bab Cr-Commit-Position: refs/heads/master@{#322942}

Patch Set 1 #

Patch Set 2 : 。 #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : revised per comments and fixed test failures. #

Total comments: 4

Patch Set 6 : revised per comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -17 lines) Patch
M ui/gfx/render_text.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M ui/gfx/render_text.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M ui/views/controls/textfield/textfield_model.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/controls/textfield/textfield_model.cc View 1 2 3 4 5 4 chunks +16 lines, -10 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
Shu Chen
Hi Mike, can you please help review this cl? Thanks
5 years, 9 months ago (2015-03-24 08:11:39 UTC) #2
msw
https://codereview.chromium.org/1031533002/diff/40001/ui/views/controls/textfield/textfield_model.cc File ui/views/controls/textfield/textfield_model.cc (right): https://codereview.chromium.org/1031533002/diff/40001/ui/views/controls/textfield/textfield_model.cc#newcode568 ui/views/controls/textfield/textfield_model.cc:568: if (composition.underlines.size() > 0 && composition.underlines[0].color != 0) nit: ...
5 years, 9 months ago (2015-03-24 20:19:01 UTC) #3
Shu Chen
Thanks for your review! https://codereview.chromium.org/1031533002/diff/40001/ui/views/controls/textfield/textfield_model.cc File ui/views/controls/textfield/textfield_model.cc (right): https://codereview.chromium.org/1031533002/diff/40001/ui/views/controls/textfield/textfield_model.cc#newcode568 ui/views/controls/textfield/textfield_model.cc:568: if (composition.underlines.size() > 0 && ...
5 years, 9 months ago (2015-03-26 04:22:14 UTC) #4
msw
https://codereview.chromium.org/1031533002/diff/80001/ui/base/ime/composition_text.cc File ui/base/ime/composition_text.cc (right): https://codereview.chromium.org/1031533002/diff/80001/ui/base/ime/composition_text.cc#newcode10 ui/base/ime/composition_text.cc:10: underlines.push_back(CompositionUnderline()); Why do we need this change? It seems ...
5 years, 9 months ago (2015-03-26 20:22:48 UTC) #5
Shu Chen
https://codereview.chromium.org/1031533002/diff/80001/ui/base/ime/composition_text.cc File ui/base/ime/composition_text.cc (right): https://codereview.chromium.org/1031533002/diff/80001/ui/base/ime/composition_text.cc#newcode10 ui/base/ime/composition_text.cc:10: underlines.push_back(CompositionUnderline()); On 2015/03/26 20:22:48, msw wrote: > Why do ...
5 years, 8 months ago (2015-03-30 03:56:21 UTC) #6
msw
lgtm
5 years, 8 months ago (2015-03-30 20:12:13 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1031533002/100001
5 years, 8 months ago (2015-03-31 00:16:40 UTC) #9
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 8 months ago (2015-03-31 01:39:45 UTC) #10
commit-bot: I haz the power
5 years, 8 months ago (2015-03-31 01:41:28 UTC) #11
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/09036bd899e6b591fae4e9665247c78d26c14bab
Cr-Commit-Position: refs/heads/master@{#322942}

Powered by Google App Engine
This is Rietveld 408576698