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

Issue 2829823002: [Textfield] Consider select all status for select all context menu (Closed)

Created:
3 years, 8 months ago by simonhong
Modified:
3 years, 8 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, nona+watch_chromium.org, James Su, shuchen+watch_chromium.org, yusukes+watch_chromium.org, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Textfield] Consider select all status for select all context menu Disable select all context menu when text is all selected, too. BUG=670855 R=pkasting@chromium.org TEST=views_unittests --gtest_filter=TextfieldTest.ContextMenuDisplayTest Review-Url: https://codereview.chromium.org/2829823002 Cr-Commit-Position: refs/heads/master@{#466132} Committed: https://chromium.googlesource.com/chromium/src/+/51afc830d2cb4e3c15efb393ab8c8bb689159d20

Patch Set 1 #

Patch Set 2 : Add test for empty text #

Total comments: 8

Patch Set 3 : Fix TextfieldTest.ContextMenuDisplayTest failure #

Patch Set 4 : Inlining IsAllSelected() #

Patch Set 5 : Cleanup test code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M ui/views/controls/textfield/textfield.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/textfield/textfield_unittest.cc View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 18 (12 generated)
simonhong
PTAL.
3 years, 8 months ago (2017-04-19 20:40:04 UTC) #1
Peter Kasting
https://codereview.chromium.org/2829823002/diff/20001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/2829823002/diff/20001/ui/views/controls/textfield/textfield.cc#newcode357 ui/views/controls/textfield/textfield.cc:357: return !text().empty() && GetSelectedText().length() == text().length(); It seems like ...
3 years, 8 months ago (2017-04-20 00:08:31 UTC) #10
simonhong
PTAL again. https://codereview.chromium.org/2829823002/diff/20001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/2829823002/diff/20001/ui/views/controls/textfield/textfield.cc#newcode357 ui/views/controls/textfield/textfield.cc:357: return !text().empty() && GetSelectedText().length() == text().length(); On ...
3 years, 8 months ago (2017-04-20 13:11:51 UTC) #11
Peter Kasting
LGTM
3 years, 8 months ago (2017-04-20 17:11:36 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2829823002/80001
3 years, 8 months ago (2017-04-20 19:51:16 UTC) #15
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 21:11:06 UTC) #18
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/51afc830d2cb4e3c15efb393ab8c...

Powered by Google App Engine
This is Rietveld 408576698