Skip to content

chore: use ScopedPumpMessagesInPrivateModes in tray - #18977

Merged
codebytere merged 3 commits into
masterfrom
tray-pump-follow-up
Jun 26, 2019
Merged

codebytere merged 3 commits into
masterfrom
tray-pump-follow-up

Conversation

@codebytere

@codebytere codebytere commented Jun 25, 2019 •

Copy link
Copy Markdown
Member

Description of Change

This is a follow-up of #18880 to use base::ScopedPumpMessagesInPrivateModes in the Tray's popUpContextMenu implementation. I considered using electron::UnresponsiveSuppressor suppressor so that we don't emit unresponsive event when showing the Tray menu, but i don't think that's something that would occur enough to warrant its being added at this time.

I also removed base::mac::ScopedSendingEvent sendingEventScoper, which i originally included in that I was concerned about pumping through window.close(), but windows aren't coupled to Trays in the way that context menus are so i no longer believe that to be necessary.

cc @deepak1556 @ckerr @deepak1556

Checklist

Release Notes

Notes: none

@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Jun 25, 2019
@codebytere codebytere mentioned this pull request Jun 25, 2019
4 tasks done
@codebytere codebytere changed the title chore: use ScopedPumpMessagesInPrivateModes in tray [wip] chore: use ScopedPumpMessagesInPrivateModes in tray Jun 25, 2019
@codebytere
codebytere force-pushed the tray-pump-follow-up branch from 7b445ee to f871d13 Compare June 25, 2019 18:19
@codebytere codebytere changed the title [wip] chore: use ScopedPumpMessagesInPrivateModes in tray chore: use ScopedPumpMessagesInPrivateModes in tray Jun 25, 2019
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Jun 26, 2019
@codebytere
codebytere merged commit 6243dba into master Jun 26, 2019
@release-clerk

release-clerk Bot commented Jun 26, 2019

Copy link
Copy Markdown

No Release Notes

@codebytere
codebytere deleted the tray-pump-follow-up branch June 26, 2019 17:18
deermichel pushed a commit that referenced this pull request Jun 26, 2019
* chore: use ScopedPumpMessagesInPrivateModes in tray

* revert refcounting of AtomMenuModel

* Prefer WeakPtr for posting tasks to handle unexpected destruction
deermichel pushed a commit that referenced this pull request Jun 26, 2019
* chore: use ScopedPumpMessagesInPrivateModes in tray

* revert refcounting of AtomMenuModel

* Prefer WeakPtr for posting tasks to handle unexpected destruction
deermichel pushed a commit that referenced this pull request Jul 2, 2019
* chore: use ScopedPumpMessagesInPrivateModes in tray

* revert refcounting of AtomMenuModel

* Prefer WeakPtr for posting tasks to handle unexpected destruction
deermichel pushed a commit that referenced this pull request Jul 2, 2019
* chore: use ScopedPumpMessagesInPrivateModes in tray

* revert refcounting of AtomMenuModel

* Prefer WeakPtr for posting tasks to handle unexpected destruction
deermichel pushed a commit that referenced this pull request Jul 10, 2019
* chore: use ScopedPumpMessagesInPrivateModes in tray

* revert refcounting of AtomMenuModel

* Prefer WeakPtr for posting tasks to handle unexpected destruction
deermichel pushed a commit that referenced this pull request Jul 18, 2019
* chore: use ScopedPumpMessagesInPrivateModes in tray

* revert refcounting of AtomMenuModel

* Prefer WeakPtr for posting tasks to handle unexpected destruction
deermichel pushed a commit that referenced this pull request Jul 31, 2019
* chore: use ScopedPumpMessagesInPrivateModes in tray

* revert refcounting of AtomMenuModel

* Prefer WeakPtr for posting tasks to handle unexpected destruction
MarshallOfSound pushed a commit that referenced this pull request Jul 31, 2019
* restore stash

revert

some things work others dont

tracking area for rescue

manual popup

restore drag n drop

cleanup

* fix: make tray not block main process (#18880)

* fix: make tray not block main process

* make AtomMenuModel refcounted

* add support for ansi codes in title

add remove TODOs

* chore: use ScopedPumpMessagesInPrivateModes in tray (#18977)

* chore: use ScopedPumpMessagesInPrivateModes in tray

* revert refcounting of AtomMenuModel

* Prefer WeakPtr for posting tasks to handle unexpected destruction

* cleanup .h

* cleanup .mm

* add imports

add missing include

* fix: crash when tray popup called twice (#18999)

* remove highlightMode and TODOs

* remove unnecessary copy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants