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

Issue 2342343003: views: provide feedback when editing fails (Closed)

Created:
4 years, 3 months ago by Elly Fong-Jones
Modified:
4 years, 3 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, James Su, shuchen+watch_chromium.org, yusukes+watch_chromium.org, nona+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

views: provide feedback when editing fails If a user selects text in a readonly textfield, all editing operations will silently fail. This change adds a new callback, Textfield::OnKeypressUnhandled, which serves to provide feedback in this case. Currently feedback is only implemented for Mac in the form of a system error beep. BUG=647523 Committed: https://crrev.com/c7da74b7ca322b813d757e0c050aa7fd479ee278 Cr-Commit-Position: refs/heads/master@{#419473}

Patch Set 1 #

Total comments: 2

Patch Set 2 : OnEditFailed -> OnKeypressUnhandled #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -0 lines) Patch
M ui/views/controls/textfield/textfield.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 3 chunks +12 lines, -0 lines 0 comments Download
M ui/views/style/platform_style.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/style/platform_style.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/style/platform_style_mac.mm View 1 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
Elly Fong-Jones
sky: ptal? :)
4 years, 3 months ago (2016-09-16 16:43:06 UTC) #3
sky
https://codereview.chromium.org/2342343003/diff/1/ui/views/controls/textfield/textfield.h File ui/views/controls/textfield/textfield.h (right): https://codereview.chromium.org/2342343003/diff/1/ui/views/controls/textfield/textfield.h#newcode395 ui/views/controls/textfield/textfield.h:395: // Called whenever an editing operation fails to provide ...
4 years, 3 months ago (2016-09-16 17:34:37 UTC) #4
Elly Fong-Jones
sky: ptal? :) https://codereview.chromium.org/2342343003/diff/1/ui/views/controls/textfield/textfield.h File ui/views/controls/textfield/textfield.h (right): https://codereview.chromium.org/2342343003/diff/1/ui/views/controls/textfield/textfield.h#newcode395 ui/views/controls/textfield/textfield.h:395: // Called whenever an editing operation ...
4 years, 3 months ago (2016-09-19 11:28:57 UTC) #6
sky
Thanks LGTM
4 years, 3 months ago (2016-09-19 15:10:50 UTC) #7
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/2342343003/20001
4 years, 3 months ago (2016-09-19 15:25:27 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-19 16:10:51 UTC) #11
commit-bot: I haz the power
4 years, 3 months ago (2016-09-19 16:12:45 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c7da74b7ca322b813d757e0c050aa7fd479ee278
Cr-Commit-Position: refs/heads/master@{#419473}

Powered by Google App Engine
This is Rietveld 408576698