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 1934123004: mash: Fix shelf overflow bubble not closing on click outside its bounds (Closed)

Created:
4 years, 7 months ago by James Cook
Modified:
4 years, 7 months ago
Reviewers:
msw, sky
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@2openoverflow
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: Fix shelf overflow bubble not closing on click outside its bounds * Add screen location to views::PointerWatcher notifications. * Convert OverflowBubble from a global ui::EventHandler to a PointerWatcher, which allows it to work on mus. Add/remove the PointerWatcher in the constructor/destructor which ensures it is properly cleaned up when the widget is destroyed (unlike the previous pre-target handler). BUG=595851, 608508 TEST=existing ash_unittests for overflow bubble. For mash, shrink the window to show overflow arrow, click to spawn it, click outside bubble to close it. Committed: https://crrev.com/e27b07278681ba98ec911b145968315b5eb63440 Cr-Commit-Position: refs/heads/master@{#391334}

Patch Set 1 #

Total comments: 2

Patch Set 2 : add screen coordinates, fix observer cleanup #

Total comments: 2

Patch Set 3 : rebase #

Patch Set 4 : review comments 2 #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -51 lines) Patch
M ash/pointer_watcher_delegate_aura.h View 1 2 chunks +10 lines, -0 lines 0 comments Download
M ash/pointer_watcher_delegate_aura.cc View 1 2 chunks +14 lines, -2 lines 0 comments Download
M ash/shelf/overflow_bubble.h View 1 2 3 3 chunks +8 lines, -7 lines 0 comments Download
M ash/shelf/overflow_bubble.cc View 1 2 3 5 chunks +11 lines, -18 lines 0 comments Download
M ash/system/tray/tray_event_filter.h View 1 2 chunks +10 lines, -3 lines 0 comments Download
M ash/system/tray/tray_event_filter.cc View 1 2 chunks +13 lines, -13 lines 0 comments Download
M ui/views/mus/window_manager_connection.cc View 1 1 chunk +12 lines, -4 lines 0 comments Download
M ui/views/mus/window_manager_connection_unittest.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M ui/views/pointer_watcher.h View 1 2 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
James Cook
msw, please take a look
4 years, 7 months ago (2016-04-30 21:08:16 UTC) #2
msw
https://codereview.chromium.org/1934123004/diff/1/ash/shelf/overflow_bubble.cc File ash/shelf/overflow_bubble.cc (right): https://codereview.chromium.org/1934123004/diff/1/ash/shelf/overflow_bubble.cc#newcode70 ash/shelf/overflow_bubble.cc:70: aura::client::GetScreenPositionClient(root)->ConvertPointToScreen( Will this work? What is the coordinate system ...
4 years, 7 months ago (2016-05-02 17:18:13 UTC) #3
James Cook
https://codereview.chromium.org/1934123004/diff/1/ash/shelf/overflow_bubble.cc File ash/shelf/overflow_bubble.cc (right): https://codereview.chromium.org/1934123004/diff/1/ash/shelf/overflow_bubble.cc#newcode70 ash/shelf/overflow_bubble.cc:70: aura::client::GetScreenPositionClient(root)->ConvertPointToScreen( On 2016/05/02 17:18:13, msw wrote: > Will this ...
4 years, 7 months ago (2016-05-02 17:48:35 UTC) #4
James Cook
msw, please take another look. I added screen coordinates to the PointerWatcher notifications, which also ...
4 years, 7 months ago (2016-05-03 16:37:42 UTC) #7
msw
lgtm with a nit https://codereview.chromium.org/1934123004/diff/20001/ash/shelf/overflow_bubble.cc File ash/shelf/overflow_bubble.cc (right): https://codereview.chromium.org/1934123004/diff/20001/ash/shelf/overflow_bubble.cc#newcode66 ash/shelf/overflow_bubble.cc:66: const ui::LocatedEvent& event, nit: |event| ...
4 years, 7 months ago (2016-05-03 17:26:47 UTC) #8
James Cook
sky, can I get OWNERS? https://codereview.chromium.org/1934123004/diff/20001/ash/shelf/overflow_bubble.cc File ash/shelf/overflow_bubble.cc (right): https://codereview.chromium.org/1934123004/diff/20001/ash/shelf/overflow_bubble.cc#newcode66 ash/shelf/overflow_bubble.cc:66: const ui::LocatedEvent& event, On ...
4 years, 7 months ago (2016-05-03 17:35:53 UTC) #10
sky
LGTM
4 years, 7 months ago (2016-05-03 18:01:08 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1934123004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1934123004/80001
4 years, 7 months ago (2016-05-03 18:50:08 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-03 19:59:35 UTC) #16
commit-bot: I haz the power
4 years, 7 months ago (2016-05-03 20:01:38 UTC) #18
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e27b07278681ba98ec911b145968315b5eb63440
Cr-Commit-Position: refs/heads/master@{#391334}

Powered by Google App Engine
This is Rietveld 408576698