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

Issue 2897553002: Do not activate TrayBubbleView by default (Closed)

Created:
3 years, 7 months ago by yawano
Modified:
3 years, 6 months ago
CC:
chromium-reviews, groby+bubble_chromium.org, sadrul, tfarina, hcarmona+bubble_chromium.org, kalyank, rouslan+bubble_chromium.org, oshima, yoshiki, yhanada
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not activate TrayBubbleView by default - Activating a TrayBubbleView brings an Android window to onPause state. - This CL sets can_set_activate to false and makes TrayBubbleView not activated by default. - If the TrayBubbleView is not activated, it cannot capture key events for moving focus or closing the view by keyboard. TrayBubbleView tries to register accelerators at the global level to capture those key events. - Activates the TrayBubbleView by default if keyboard navigation accessibility feature (e.g. spoken feedback) is enabled. BUG=726588, 731748 TEST=Follow steps described in the issue Review-Url: https://codereview.chromium.org/2897553002 Cr-Commit-Position: refs/heads/master@{#481421} Committed: https://chromium.googlesource.com/chromium/src/+/c97f341f1a2f6f359ba1a7c8687aa58af6f7033c

Patch Set 1 #

Patch Set 2 : Add comment. #

Patch Set 3 : Rename method. #

Patch Set 4 : Use accelerators. #

Patch Set 5 : Rebase. #

Patch Set 6 : Remove unused code. #

Patch Set 7 : Unregister accelerators when delegate is reset. #

Patch Set 8 : Add comment. #

Total comments: 13

Patch Set 9 : Rebase. #

Patch Set 10 : Address comments and fix other issues. #

Patch Set 11 : Revert changes in accelerator_controller.cc. #

Patch Set 12 : Do not activate the widget explicitly. #

Patch Set 13 : Do not enable extra keyboard accessibility for non-persistent view. #

Patch Set 14 : Do not enable extra keyboard accessibility for persistent system bubble, and remove unnecessary code. #

Patch Set 15 : Remove unnecessary code. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -71 lines) Patch
M ash/system/ime_menu/ime_menu_tray.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M ash/system/ime_menu/ime_menu_tray.cc View 1 2 3 4 5 6 7 8 9 4 chunks +18 lines, -2 lines 0 comments Download
M ash/system/palette/palette_tray.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M ash/system/palette/palette_tray.cc View 1 2 3 4 5 6 7 8 9 4 chunks +19 lines, -2 lines 0 comments Download
M ash/system/tray/system_tray.h View 1 2 3 4 5 6 7 8 9 4 chunks +5 lines, -7 lines 0 comments Download
M ash/system/tray/system_tray.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +24 lines, -37 lines 2 comments Download
M ash/system/tray/system_tray_bubble.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -3 lines 0 comments Download
M ash/system/tray/system_tray_bubble.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +1 line, -12 lines 0 comments Download
M ash/system/web_notification/web_notification_tray.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M ash/system/web_notification/web_notification_tray.cc View 1 2 3 4 5 6 7 8 9 3 chunks +18 lines, -1 line 0 comments Download
M ui/message_center/views/message_bubble_base.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/views/bubble/tray_bubble_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +32 lines, -3 lines 0 comments Download
M ui/views/bubble/tray_bubble_view.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +87 lines, -3 lines 0 comments Download

Messages

Total messages: 60 (29 generated)
yawano
PTAL. stevenjb@: All files dmazzoni@: Accessibility part. This CL changes TrayBubbleView to put focus on ...
3 years, 7 months ago (2017-05-19 03:31:50 UTC) #2
yawano
Uploaded new patch set to add comment.
3 years, 7 months ago (2017-05-19 04:24:09 UTC) #3
dmazzoni
Normally we don't change focus behavior just based on spoken feedback. Is the issue with ...
3 years, 7 months ago (2017-05-19 19:34:41 UTC) #4
yawano
I agree that it's better not to change focus behavior depending on whether user is ...
3 years, 7 months ago (2017-05-22 08:54:50 UTC) #5
yawano
dmazzoni@: I've filed another bug to clarify what I want to do with this CL ...
3 years, 7 months ago (2017-05-26 04:59:44 UTC) #7
yawano
Please wait to review this CL for now. I found that this CL doesn't work ...
3 years, 7 months ago (2017-05-26 07:13:46 UTC) #9
yawano
This CL is now ready for review again. stevenjb@, dmazzoni@, PTAL. Thank you!
3 years, 6 months ago (2017-06-07 04:07:01 UTC) #10
stevenjb
At a quick glance it looks like the overridden methods just do the same thing ...
3 years, 6 months ago (2017-06-08 16:32:45 UTC) #11
yawano
On 2017/06/08 16:32:45, stevenjb wrote: > At a quick glance it looks like the overridden ...
3 years, 6 months ago (2017-06-09 01:20:48 UTC) #12
stevenjb
Apologies, lots going on this week so when I looked at this before it was ...
3 years, 6 months ago (2017-06-09 15:35:01 UTC) #14
James Cook
Please write a more detailed CL description, including why you are making the change and ...
3 years, 6 months ago (2017-06-09 16:06:13 UTC) #15
yawano
I prefer to keep the copy/paste codes in each use case implementations (e.g. ime_menu_tray). Those ...
3 years, 6 months ago (2017-06-12 09:11:04 UTC) #17
James Cook
LGTM. Please add crbug.com/731748 to the BUG= line and comment in that bug about which ...
3 years, 6 months ago (2017-06-12 16:38:20 UTC) #18
stevenjb
As long as we have a plan to remove/reduce the duplicate code, lgtm.
3 years, 6 months ago (2017-06-12 16:43:14 UTC) #19
dmazzoni
The only think I'm slightly worried about is that we're changing the behavior based on ...
3 years, 6 months ago (2017-06-12 17:00:47 UTC) #20
yawano
On 2017/06/12 17:00:47, dmazzoni wrote: > The only think I'm slightly worried about > is ...
3 years, 6 months ago (2017-06-13 01:03:45 UTC) #21
yawano
On 2017/06/12 16:38:20, James Cook wrote: > LGTM. Please add crbug.com/731748 to the BUG= line ...
3 years, 6 months ago (2017-06-14 05:55:06 UTC) #24
yawano
On 2017/06/13 01:03:45, yawano wrote: > On 2017/06/12 17:00:47, dmazzoni wrote: > > The only ...
3 years, 6 months ago (2017-06-15 00:39:53 UTC) #25
dmazzoni
On 2017/06/15 00:39:53, yawano wrote: > On 2017/06/13 01:03:45, yawano wrote: > > On 2017/06/12 ...
3 years, 6 months ago (2017-06-15 06:05:06 UTC) #26
yawano
On 2017/06/15 06:05:06, dmazzoni wrote: > On 2017/06/15 00:39:53, yawano wrote: > > On 2017/06/13 ...
3 years, 6 months ago (2017-06-15 06:44:38 UTC) #27
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/2897553002/170013
3 years, 6 months ago (2017-06-15 06:45:18 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/407366)
3 years, 6 months ago (2017-06-15 08:10:03 UTC) #31
yawano
Patch set 10 has failed to pass test cases. PTAL again. stevenjb@: all files. dmazzoni@: ...
3 years, 6 months ago (2017-06-20 10:36:18 UTC) #46
stevenjb
Delta from PS 10 lgtm
3 years, 6 months ago (2017-06-20 16:07:55 UTC) #49
dmazzoni
still lgtm with one suggestion https://codereview.chromium.org/2897553002/diff/270001/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): https://codereview.chromium.org/2897553002/diff/270001/ash/system/tray/system_tray.cc#newcode587 ash/system/tray/system_tray.cc:587: // Do not enable ...
3 years, 6 months ago (2017-06-20 16:32:54 UTC) #50
yawano
Thank you! https://codereview.chromium.org/2897553002/diff/270001/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): https://codereview.chromium.org/2897553002/diff/270001/ash/system/tray/system_tray.cc#newcode587 ash/system/tray/system_tray.cc:587: // Do not enable extra keyboard accessibility ...
3 years, 6 months ago (2017-06-21 01:20:04 UTC) #51
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/2897553002/270001
3 years, 6 months ago (2017-06-22 01:13:54 UTC) #54
commit-bot: I haz the power
Committed patchset #15 (id:270001) as https://chromium.googlesource.com/chromium/src/+/c97f341f1a2f6f359ba1a7c8687aa58af6f7033c
3 years, 6 months ago (2017-06-22 03:07:36 UTC) #57
vabr (Chromium)
A revert of this CL (patchset #15 id:270001) has been created in https://codereview.chromium.org/2948223002/ by vabr@chromium.org. ...
3 years, 6 months ago (2017-06-22 09:02:35 UTC) #58
vabr (Chromium)
On 2017/06/22 09:02:35, vabr (Chromium) wrote: > A revert of this CL (patchset #15 id:270001) ...
3 years, 6 months ago (2017-06-22 11:21:16 UTC) #59
yawano
3 years, 6 months ago (2017-06-23 10:01:50 UTC) #60
Message was sent while issue was closed.
On 2017/06/22 11:21:16, vabr (Chromium) wrote:
> On 2017/06/22 09:02:35, vabr (Chromium) wrote:
> > A revert of this CL (patchset #15 id:270001) has been created in
> > https://codereview.chromium.org/2948223002/ by mailto:vabr@chromium.org.
> > 
> > The reason for reverting is: Speculative revert. I suspect this broke the
> > interactive_ui_tests on Linux ChromiumOS MSan Tests
> >
>
(https://build.chromium.org/p/chromium.memory/builders/Linux%20ChromiumOS%20MS...).
> > The tests now time out, and the log contains lines with:
> > 
> > Still waiting for the following processes to finish:
> > 	./interactive_ui_tests --brave-new-test-launcher --cfi-diag=0
> > --gtest_also_run_disabled_tests
> >
>
--gtest_filter=TestAsNormalAndGuestUser/SpokenFeedbackTest.NavigateSystemTray/0
> > --single_process --test-launcher-bot-mode
> > --test-launcher-print-test-stdio=always
> > --test-launcher-summary-output=/b/s/w/ioS9oZeu/output.json
> > --user-data-dir=/b/s/w/it1bN0Em/.org.chromium.Chromium.iOqw8e/dOj481Q
> > .
> 
> The revert seems to have fixed the interactive_ui_tests, in
>
https://build.chromium.org/p/chromium.memory/builders/Linux%20ChromiumOS%20MS...,
> so I'm leaving it in.

I've investigated the cause and this CL has a bug. I'm going to write a
follow-up CL next week. Thank you!

Powered by Google App Engine
This is Rietveld 408576698