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

Issue 10310131: Support placeholder text in NativeTextfieldViews. (Closed)

Created:
8 years, 7 months ago by xiyuan
Modified:
8 years, 7 months ago
Reviewers:
msw, oshima, sky
CC:
chromium-reviews, nkostylev+watch_chromium.org, tfarina, penghuang+watch_chromium.org, James Su, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, yusukes+watch_chromium.org
Visibility:
Public.

Description

Support placeholder text in NativeTextfieldViews. - Rename text_to_display_when_empty -> placehodler_text; - Draw placeholder text when there is no user text; BUG=none. TEST=none. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=137529

Patch Set 1 #

Patch Set 2 : fix lint #

Total comments: 4

Patch Set 3 : rebase and fix nit in #2 #

Total comments: 4

Patch Set 4 : for comments in #3 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -10 lines) Patch
M chrome/browser/chromeos/login/password_changed_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/textfield/native_textfield_views.cc View 1 3 chunks +12 lines, -1 line 0 comments Download
M ui/views/controls/textfield/textfield.h View 1 2 3 chunks +14 lines, -7 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 2 3 3 chunks +9 lines, -0 lines 0 comments Download
M ui/views/examples/textfield_example.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
xiyuan
8 years, 7 months ago (2012-05-14 18:50:42 UTC) #1
tfarina
https://chromiumcodereview.appspot.com/10310131/diff/2001/ui/views/controls/textfield/textfield.h File ui/views/controls/textfield/textfield.h (right): https://chromiumcodereview.appspot.com/10310131/diff/2001/ui/views/controls/textfield/textfield.h#newcode165 ui/views/controls/textfield/textfield.h:165: const string16& placeholder_text() { nit: I think this function ...
8 years, 7 months ago (2012-05-14 18:54:12 UTC) #2
sky
LGTM, but wait for Mike or Oshima to sign off on NativeTextfieldViews.
8 years, 7 months ago (2012-05-14 20:58:45 UTC) #3
oshima
https://chromiumcodereview.appspot.com/10310131/diff/2001/ui/views/controls/textfield/native_textfield_views.cc File ui/views/controls/textfield/native_textfield_views.cc (right): https://chromiumcodereview.appspot.com/10310131/diff/2001/ui/views/controls/textfield/native_textfield_views.cc#newcode842 ui/views/controls/textfield/native_textfield_views.cc:842: GetRenderText()->display_rect()); does this work with RTL text?
8 years, 7 months ago (2012-05-14 21:07:24 UTC) #4
xiyuan
https://chromiumcodereview.appspot.com/10310131/diff/2001/ui/views/controls/textfield/native_textfield_views.cc File ui/views/controls/textfield/native_textfield_views.cc (right): https://chromiumcodereview.appspot.com/10310131/diff/2001/ui/views/controls/textfield/native_textfield_views.cc#newcode842 ui/views/controls/textfield/native_textfield_views.cc:842: GetRenderText()->display_rect()); On 2012/05/14 21:07:24, oshima wrote: > does this ...
8 years, 7 months ago (2012-05-14 21:13:30 UTC) #5
oshima
https://chromiumcodereview.appspot.com/10310131/diff/2001/ui/views/controls/textfield/native_textfield_views.cc File ui/views/controls/textfield/native_textfield_views.cc (right): https://chromiumcodereview.appspot.com/10310131/diff/2001/ui/views/controls/textfield/native_textfield_views.cc#newcode842 ui/views/controls/textfield/native_textfield_views.cc:842: GetRenderText()->display_rect()); On 2012/05/14 21:13:30, xiyuan wrote: > On 2012/05/14 ...
8 years, 7 months ago (2012-05-14 22:05:35 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xiyuan@chromium.org/10310131/3008
8 years, 7 months ago (2012-05-14 23:33:08 UTC) #7
commit-bot: I haz the power
Try job failure for 10310131-3008 (retry) (previous was lost) on linux_rel for steps "base_unittests, browser_tests, ...
8 years, 7 months ago (2012-05-15 00:48:56 UTC) #8
msw
https://chromiumcodereview.appspot.com/10310131/diff/3008/ui/views/controls/textfield/native_textfield_views.cc File ui/views/controls/textfield/native_textfield_views.cc (right): https://chromiumcodereview.appspot.com/10310131/diff/3008/ui/views/controls/textfield/native_textfield_views.cc#newcode836 ui/views/controls/textfield/native_textfield_views.cc:836: if (model_->GetText().empty() && Should placeholder text disappear on textfield ...
8 years, 7 months ago (2012-05-15 02:29:22 UTC) #9
xiyuan
http://codereview.chromium.org/10310131/diff/3008/ui/views/controls/textfield/native_textfield_views.cc File ui/views/controls/textfield/native_textfield_views.cc (right): http://codereview.chromium.org/10310131/diff/3008/ui/views/controls/textfield/native_textfield_views.cc#newcode836 ui/views/controls/textfield/native_textfield_views.cc:836: if (model_->GetText().empty() && On 2012/05/15 02:29:22, msw wrote: > ...
8 years, 7 months ago (2012-05-15 16:20:04 UTC) #10
msw
8 years, 7 months ago (2012-05-17 19:58:04 UTC) #11
LGTM

Powered by Google App Engine
This is Rietveld 408576698