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

Issue 138363004: Views Textfield fixes and cleanup. (Closed)

Created:
6 years, 11 months ago by msw
Modified:
6 years, 11 months ago
Reviewers:
sky, pfeldman
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, jam, nkostylev+watch_chromium.org, yukishiino+watch_chromium.org, benquan, Ilya Sherman, jochen+watch_chromium.org, dyu1, penghuang+watch_chromium.org, joi+watch-content_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, Dane Wallinga, oshima+watch_chromium.org, tfarina, rouslan+autofillwatch_chromium.org, estade+watch_chromium.org, James Su, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, yusukes+watch_chromium.org, oshima
Visibility:
Public.

Description

Views Textfield fixes and cleanup. Using STYLE_OBSCURED in the ctor broke with r244436. Remove 'styles', that ctor, and IsObscured/SetObscured. Use TextInputType for password textfield configuration. (rename textfield 'obscured' identifiers to 'password') Inline STYLE_LOWERCASE to the EditSearchEngineDialog. Remove GetTextForDisplay and its related handling. Inline set_controller; remove GetController. Cleanup users and unit tests. BUG=131660, 334252 TEST=Password textfields work (show '*'s, reveal last typed char, toggle in wifi/wimax dialogs, etc.) as expected. The EditSearchEngineDialog's keyword textfield holds lowercase text as expected. R=sky@chromium.org TBR=pfeldman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245243

Patch Set 1 #

Patch Set 2 : Remove the unused controller accessor. #

Total comments: 2

Patch Set 3 : Sync and rebase. #

Patch Set 4 : Don't clobber composition text in EditSearchEngineDialog's lower-casing. #

Patch Set 5 : Remove lingering style enum uses. #

Patch Set 6 : sync and rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -369 lines) Patch
M chrome/browser/chromeos/options/passphrase_textfield.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/options/vpn_config_view.cc View 7 chunks +12 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/options/wifi_config_view.cc View 1 2 3 4 6 chunks +16 lines, -16 lines 0 comments Download
M chrome/browser/chromeos/options/wimax_config_view.cc View 1 2 3 4 3 chunks +12 lines, -11 lines 0 comments Download
M chrome/browser/ui/gtk/edit_search_engine_dialog.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/autofill/decorated_textfield.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/crypto_module_password_dialog_view.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/edit_search_engine_dialog.h View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/edit_search_engine_dialog.cc View 1 2 3 4 chunks +18 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/find_bar_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/login_view.h View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/login_view.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/password_generation_bubble_view.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/pdf_password_dialog.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/profile_chooser_view.cc View 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/shell/browser/shell_views.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ui/app_list/views/folder_header_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/app_list/views/search_box_view.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ui/views/color_chooser/color_chooser_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/button/custom_button_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/textfield/textfield.h View 1 2 3 4 5 7 chunks +13 lines, -33 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 2 3 4 5 18 chunks +29 lines, -103 lines 0 comments Download
M ui/views/controls/textfield/textfield_model_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/textfield/textfield_unittest.cc View 1 2 3 4 5 41 chunks +55 lines, -147 lines 0 comments Download
M ui/views/controls/tree/tree_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/examples/multiline_example.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/examples/textfield_example.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M ui/views/view_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
msw
Hey Scott, please take a look; thanks!
6 years, 11 months ago (2014-01-14 22:34:07 UTC) #1
sky
https://codereview.chromium.org/138363004/diff/40001/chrome/browser/ui/views/edit_search_engine_dialog.cc File chrome/browser/ui/views/edit_search_engine_dialog.cc (right): https://codereview.chromium.org/138363004/diff/40001/chrome/browser/ui/views/edit_search_engine_dialog.cc#newcode110 chrome/browser/ui/views/edit_search_engine_dialog.cc:110: sender->SelectSelectionModel(selection_model); This seems really heavyweight and easy to lose ...
6 years, 11 months ago (2014-01-14 23:17:12 UTC) #2
msw
https://codereview.chromium.org/138363004/diff/40001/chrome/browser/ui/views/edit_search_engine_dialog.cc File chrome/browser/ui/views/edit_search_engine_dialog.cc (right): https://codereview.chromium.org/138363004/diff/40001/chrome/browser/ui/views/edit_search_engine_dialog.cc#newcode110 chrome/browser/ui/views/edit_search_engine_dialog.cc:110: sender->SelectSelectionModel(selection_model); On 2014/01/14 23:17:13, sky wrote: > This seems ...
6 years, 11 months ago (2014-01-15 01:22:02 UTC) #3
sky
LGTM
6 years, 11 months ago (2014-01-15 14:12:29 UTC) #4
msw
+TBR pfeldman for content/shell/browser/shell_views.cc
6 years, 11 months ago (2014-01-15 17:45:08 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/138363004/160001
6 years, 11 months ago (2014-01-15 17:47:50 UTC) #6
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=246754
6 years, 11 months ago (2014-01-15 22:24:57 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/138363004/160001
6 years, 11 months ago (2014-01-15 22:53:32 UTC) #8
commit-bot: I haz the power
Failed to apply patch for ui/views/controls/textfield/textfield.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 11 months ago (2014-01-16 06:31:57 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/138363004/350001
6 years, 11 months ago (2014-01-16 07:07:17 UTC) #10
commit-bot: I haz the power
6 years, 11 months ago (2014-01-16 18:00:52 UTC) #11
Message was sent while issue was closed.
Change committed as 245243

Powered by Google App Engine
This is Rietveld 408576698