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

Issue 2330403002: Do not activate system tray bubble by default (Closed)

Created:
4 years, 3 months ago by oshima
Modified:
4 years, 3 months ago
CC:
chromium-reviews, groby+bubble_chromium.org, hcarmona+bubble_chromium.org, kalyank, msw+watch_chromium.org, rouslan+bubble_chromium.org, sadrul, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not activate system tray bubble by default * Open SystemTrayBubble in inactive state by default, and explicitly close the bubble after executing action. * SystemTray::ActivationObserver to close the bubble if a window other than system tray or popup notification is activated. I'll revisit this after this CL as going through all notification is a huge task. * Introduced KeyEventWatcher so that SystemTrayBubble can close,or start keyboard navigation on esc/tab/alt-tab. * Explicitly activate in following conditions - The focus is requested on the item. - Accelerator is used to open the bubble (for accessibility) BUG=120680 TEST=manual. SystemTrayTest.Activation. Updated a few other tests to increase coverage. Committed: https://crrev.com/d69e8cbbe0412fabce0c091e6d19d9ac9d1fea00 Cr-Commit-Position: refs/heads/master@{#420794}

Patch Set 1 : Do not activate system tray bubble #

Patch Set 2 : Do not activate system tray bubble #

Total comments: 53

Patch Set 3 : Do not activate system tray bubble by default #

Patch Set 4 : Do not activate system tray bubble by default #

Total comments: 13

Patch Set 5 : rebase #

Total comments: 2

Patch Set 6 : Do not activate system tray bubble by default #

Unified diffs Side-by-side diffs Delta from patch set Stats (+427 lines, -80 lines) Patch
M ash/BUILD.gn View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M ash/accelerators/accelerator_controller_delegate_aura.cc View 1 chunk +5 lines, -2 lines 0 comments Download
A ash/aura/key_event_watcher_aura.h View 1 1 chunk +36 lines, -0 lines 0 comments Download
A + ash/aura/key_event_watcher_aura.cc View 1 chunk +5 lines, -7 lines 0 comments Download
M ash/aura/wm_shell_aura.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ash/aura/wm_shell_aura.cc View 2 chunks +5 lines, -0 lines 0 comments Download
A ash/common/key_event_watcher.h View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
A ash/common/key_event_watcher.cc View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
M ash/common/shelf/shelf_layout_manager.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/common/system/audio/volume_view.h View 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/system/audio/volume_view.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/system/chromeos/bluetooth/tray_bluetooth.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ash/common/system/chromeos/ime_menu/ime_list_view.cc View 3 chunks +7 lines, -6 lines 0 comments Download
M ash/common/system/chromeos/network/network_state_list_detailed_view.cc View 3 chunks +8 lines, -1 line 0 comments Download
M ash/common/system/chromeos/settings/tray_settings.cc View 1 2 3 chunks +13 lines, -9 lines 0 comments Download
M ash/common/system/chromeos/tray_caps_lock.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M ash/common/system/chromeos/tray_tracing.cc View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M ash/common/system/date/date_default_view.h View 2 chunks +2 lines, -1 line 0 comments Download
M ash/common/system/date/date_default_view.cc View 3 chunks +8 lines, -6 lines 0 comments Download
M ash/common/system/date/date_view.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/system/date/date_view.cc View 4 chunks +10 lines, -4 lines 0 comments Download
M ash/common/system/date/tray_date.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/system/tray/actionable_view.h View 1 2 3 chunks +11 lines, -1 line 0 comments Download
M ash/common/system/tray/actionable_view.cc View 3 chunks +9 lines, -1 line 0 comments Download
M ash/common/system/tray/hover_highlight_view.cc View 1 chunk +3 lines, -1 line 0 comments Download
M ash/common/system/tray/system_tray.h View 1 2 3 4 5 chunks +27 lines, -3 lines 0 comments Download
M ash/common/system/tray/system_tray.cc View 1 2 3 4 10 chunks +92 lines, -1 line 0 comments Download
M ash/common/system/tray/system_tray_bubble.cc View 1 2 chunks +10 lines, -2 lines 0 comments Download
M ash/common/system/tray/system_tray_unittest.cc View 1 2 4 chunks +41 lines, -0 lines 0 comments Download
M ash/common/system/tray/tray_background_view.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ash/common/system/tray/tray_event_filter.cc View 1 2 5 2 chunks +12 lines, -13 lines 0 comments Download
M ash/common/system/tray/tray_item_more.h View 1 2 3 4 2 chunks +0 lines, -3 lines 0 comments Download
M ash/common/system/tray/tray_item_more.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/common/system/tray_accessibility.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M ash/common/system/update/tray_update.cc View 1 2 3 4 3 chunks +4 lines, -2 lines 0 comments Download
M ash/common/wm_shell.h View 2 chunks +3 lines, -0 lines 0 comments Download
M ash/mus/bridge/wm_shell_mus.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/mus/bridge/wm_shell_mus.cc View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M ash/system/web_notification/web_notification_tray_unittest.cc View 1 2 3 chunks +6 lines, -0 lines 0 comments Download
M ui/views/bubble/tray_bubble_view.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/bubble/tray_bubble_view.cc View 3 chunks +2 lines, -5 lines 0 comments Download

Messages

Total messages: 83 (67 generated)
oshima
jamescook@ -> ash stevenjb@ -> ui/views/bubble dmazzoni@ -> for accessibility
4 years, 3 months ago (2016-09-22 18:34:28 UTC) #43
oshima
I'd like to land this this week so PTAL.
4 years, 3 months ago (2016-09-22 18:35:14 UTC) #44
stevenjb
ui/views/bubble lgtm
4 years, 3 months ago (2016-09-22 19:21:20 UTC) #45
James Cook
I'm a little worried that you might have missed a case where the system tray ...
4 years, 3 months ago (2016-09-22 21:17:17 UTC) #46
oshima
https://codereview.chromium.org/2330403002/diff/240001/ash/aura/wm_shell_aura.h File ash/aura/wm_shell_aura.h (right): https://codereview.chromium.org/2330403002/diff/240001/ash/aura/wm_shell_aura.h#newcode75 ash/aura/wm_shell_aura.h:75: On 2016/09/22 21:17:16, James Cook wrote: > nit: no ...
4 years, 3 months ago (2016-09-23 09:37:20 UTC) #49
dmazzoni
lgtm No concerns about the code. You mention that it activates the system tray bubble ...
4 years, 3 months ago (2016-09-23 15:26:30 UTC) #55
James Cook
Just little things. Feel free to ping me on chat when you want me to ...
4 years, 3 months ago (2016-09-23 16:32:28 UTC) #59
oshima
https://codereview.chromium.org/2330403002/diff/240001/ash/common/system/tray/system_tray.cc File ash/common/system/tray/system_tray.cc (right): https://codereview.chromium.org/2330403002/diff/240001/ash/common/system/tray/system_tray.cc#newcode167 ash/common/system/tray/system_tray.cc:167: key_event_watcher_.reset(); On 2016/09/23 16:32:28, James Cook wrote: > On ...
4 years, 3 months ago (2016-09-23 19:19:54 UTC) #62
oshima
On 2016/09/23 15:26:30, dmazzoni wrote: > lgtm > > No concerns about the code. > ...
4 years, 3 months ago (2016-09-23 19:23:58 UTC) #67
James Cook
LGTM with nit. Nice patch -- it's always been odd that this "menu" activated itself. ...
4 years, 3 months ago (2016-09-23 19:41:02 UTC) #71
dmazzoni
On Fri, Sep 23, 2016 at 12:23 PM <oshima@chromium.org> wrote: > > There's another way ...
4 years, 3 months ago (2016-09-23 19:48:59 UTC) #72
oshima
On 2016/09/23 19:48:59, dmazzoni wrote: > On Fri, Sep 23, 2016 at 12:23 PM <mailto:oshima@chromium.org> ...
4 years, 3 months ago (2016-09-23 23:05:43 UTC) #75
oshima
https://codereview.chromium.org/2330403002/diff/320001/ash/common/system/tray/tray_event_filter.cc File ash/common/system/tray/tray_event_filter.cc (right): https://codereview.chromium.org/2330403002/diff/320001/ash/common/system/tray/tray_event_filter.cc#newcode59 ash/common/system/tray/tray_event_filter.cc:59: LOG(ERROR) << "Status Container"; On 2016/09/23 19:41:02, James Cook ...
4 years, 3 months ago (2016-09-23 23:06:06 UTC) #76
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/2330403002/340001
4 years, 3 months ago (2016-09-23 23:07:28 UTC) #79
commit-bot: I haz the power
Committed patchset #6 (id:340001)
4 years, 3 months ago (2016-09-24 00:03:40 UTC) #81
commit-bot: I haz the power
4 years, 3 months ago (2016-09-24 00:07:04 UTC) #83
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/d69e8cbbe0412fabce0c091e6d19d9ac9d1fea00
Cr-Commit-Position: refs/heads/master@{#420794}

Powered by Google App Engine
This is Rietveld 408576698