Early Draft Discussion: Delegate popup creation + action handling #50
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a super early draft of a few changes to the popup/browserActions that helped me integrate it a bit. Still need to figure out what to do with a few stale pieces now.
Major changes:
getStateWithIcons
that returns the state with the base64 URI for the icon of the avatar. This gives a good workdaround for Support crx protocol in remote sessions #41ChromeExtensionImpl.createPopup?(details: PopupViewOptions): void
. This way you can handle making your own popup instead of using the PopupViewChromeExtensionImpl.onBrowserActionUpdate?(details: BrowserActionState): void
. This way you can watch for icon/callback changes and construct your own UI without using the customElementElectronChromeExtensions.activateExtension
to manually trigger click/contextmenu if you created your own elements.Before I cleanup the code I want to make sure I'm on the right path. What are your thoughts on this?
✅ By sending this pull request, I agree to the Contributor License Agreement of this project.