Chromium Code Reviews
Descriptionmash: 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 #
Messages
Total messages: 18 (8 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||