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

Issue 2670213002: Pass BS/Return Key Events to EditBox in Custom Notification (Closed)

Created:
3 years, 10 months ago by yoshiki
Modified:
3 years, 10 months ago
Reviewers:
dewittj
CC:
chromium-reviews, Peter Beverloo, mlamouri+watch-notifications_chromium.org, awdf+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pass BS/Return Key Events to EditBox in Custom Notification Previously, BS and return key events were consumed by the message center and the custom contents couldn't receive them. This patch adds a check if the current input mode is none or not. If the type is not none (it means the focus is on edit box), we don't handle BS/Return key events and pass them to the custom notification content. BUG=679664 TEST=manually (BS and Return keys work on custom notification) Review-Url: https://codereview.chromium.org/2670213002 Cr-Commit-Position: refs/heads/master@{#447954} Committed: https://chromium.googlesource.com/chromium/src/+/8f2d158964de19b39244ecf483be0b156cb38224

Patch Set 1 #

Patch Set 2 : Add null check #

Patch Set 3 : Added tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -1 line) Patch
M ui/message_center/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/message_center/views/custom_notification_view.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/message_center/views/custom_notification_view.cc View 1 2 chunks +22 lines, -0 lines 0 comments Download
M ui/message_center/views/custom_notification_view_unittest.cc View 1 2 5 chunks +61 lines, -1 line 0 comments Download

Messages

Total messages: 27 (22 generated)
yoshiki
Justin, PTAL. Thanks.
3 years, 10 months ago (2017-02-02 19:44:28 UTC) #7
dewittj
Any chance we can get an automated test? this lgtm as is though.
3 years, 10 months ago (2017-02-02 21:40:11 UTC) #11
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/2670213002/60001
3 years, 10 months ago (2017-02-03 06:48:58 UTC) #23
yoshiki
On 2017/02/02 21:40:11, dewittj wrote: > Any chance we can get an automated test? > ...
3 years, 10 months ago (2017-02-03 06:49:00 UTC) #24
commit-bot: I haz the power
3 years, 10 months ago (2017-02-03 07:06:08 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/8f2d158964de19b39244ecf483be...

Powered by Google App Engine
This is Rietveld 408576698