Chromium Code Reviews
Description[Mac] Use a nonactivating panel for notifications so that mouse down doesn't activate Chrome.
Currently, pressing the mouse button over a notification brings Chrome
to the front, even though the tab which sent the notification won't be
shown unless it calls `window.focus()` from its onclick listener.
This CL switches notifications to use NSPanel, which can receive mouse
events without activating the application.
Notifications were previously switched away from NSPanel to work around
crbug.com/459306. I tried fairly hard to repro that issue with this CL,
and couldn't. If it comes back, I feel okay about reverting this change
or taking another crack at its root cause.
BUG=653868
Committed: https://crrev.com/629a5d065848adbac50931ae305a3d8597578e4d
Cr-Commit-Position: refs/heads/master@{#424505}
Patch Set 1 #Patch Set 2 : Use the old constant, the new one isn't in our current SDK #Patch Set 3 : Rebase #Patch Set 4 : Make notifications visible on all spaces, change a couple of flags to be appropriate for NSPanel #Patch Set 5 : Actually, let's move "show on all spaces" into a separate CL #Patch Set 6 : Rebase #Patch Set 7 : Rebase #Patch Set 8 : Make dependent on bugfix CL #
Total comments: 1
Messages
Total messages: 18 (8 generated)
|