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

Issue 1918183003: mash: Close the system tray bubble on click outside its bounds (Closed)

Created:
4 years, 8 months ago by James Cook
Modified:
4 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews, kalyank, sadrul, oshima+watch_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@pointerwatcher
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: Close the system tray bubble on click outside its bounds * Use PointerWatcher to observe for clicks outside the widget bounds * Add ScreenPositionClientMus to correctly transform the click locations This changes the behavior of the system tray bubble on classic ash. Clicks outside the bubble will now be handled (e.g. you can click outside the bubble and start dragging a window). This is consistent with the menu behavior of the hamburger menu and similar system tray bubbles on Windows. I've cleared with PM kuscher@ that we want this behavior change. Depends on https://codereview.chromium.org/1921673005/ BUG=599142 TEST=Run mash, click outside bubble, it closes. Ditto for ash. In both cases you can start a window drag, click on a web page, etc. with the same click. Committed: https://crrev.com/d6f1890e148dce5db019b2a6796f94f1e5a10be7 Cr-Commit-Position: refs/heads/master@{#390304}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 2

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -61 lines) Patch
M ash/system/chromeos/session/logout_button_tray.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ash/system/chromeos/session/logout_button_tray.cc View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M ash/system/chromeos/virtual_keyboard/virtual_keyboard_tray.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ash/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M ash/system/overview/overview_button_tray.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ash/system/overview/overview_button_tray.cc View 1 2 3 1 chunk +1 line, -5 lines 0 comments Download
M ash/system/tray/system_tray.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ash/system/tray/system_tray.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M ash/system/tray/tray_background_view.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ash/system/tray/tray_event_filter.h View 1 chunk +11 lines, -13 lines 0 comments Download
M ash/system/tray/tray_event_filter.cc View 3 chunks +16 lines, -23 lines 0 comments Download
M ash/system/web_notification/web_notification_tray.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ash/system/web_notification/web_notification_tray.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M ui/views/mus/native_widget_mus.cc View 2 chunks +28 lines, -1 line 0 comments Download

Messages

Total messages: 14 (6 generated)
James Cook
sky, please take a look. This is part 2.
4 years, 8 months ago (2016-04-26 16:42:56 UTC) #2
James Cook
sky, please take a look.
4 years, 8 months ago (2016-04-26 19:33:32 UTC) #4
sky
https://codereview.chromium.org/1918183003/diff/20001/ash/system/tray/tray_event_filter.cc File ash/system/tray/tray_event_filter.cc (left): https://codereview.chromium.org/1918183003/diff/20001/ash/system/tray/tray_event_filter.cc#oldcode51 ash/system/tray/tray_event_filter.cc:51: event->StopPropagation(); Do we not need to StopPropagation anymore?
4 years, 8 months ago (2016-04-26 21:43:38 UTC) #5
James Cook
sky, please take another look https://codereview.chromium.org/1918183003/diff/20001/ash/system/tray/tray_event_filter.cc File ash/system/tray/tray_event_filter.cc (left): https://codereview.chromium.org/1918183003/diff/20001/ash/system/tray/tray_event_filter.cc#oldcode51 ash/system/tray/tray_event_filter.cc:51: event->StopPropagation(); On 2016/04/26 21:43:38, ...
4 years, 8 months ago (2016-04-26 23:23:45 UTC) #6
sky
LGTM
4 years, 8 months ago (2016-04-26 23:41:55 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1918183003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1918183003/80001
4 years, 7 months ago (2016-04-28 04:29:42 UTC) #10
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-04-28 05:04:42 UTC) #12
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:16:18 UTC) #13
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d6f1890e148dce5db019b2a6796f94f1e5a10be7
Cr-Commit-Position: refs/heads/master@{#390304}

Powered by Google App Engine
This is Rietveld 408576698