Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: update WebContentsZoomController #39428

Merged
merged 1 commit into from
Aug 15, 2023
Merged

Conversation

codebytere
Copy link
Member

@codebytere codebytere commented Aug 9, 2023

Description of Change

Refs https://codereview.chromium.org/301733006.
Refs #8537

This PR refactors and updates our ZoomController implementation to bring it into line with the current state of components/zoom/zoom_controller.cc upstream. This is being done as a precursor to supporting tab events in chrome.tabs, which expect data be sent to observers in struct form and contain both new and old zoom values.

Relevant Changes

  • Pulls WebContentsZoomObserver into a standalone file
  • Zoom data is now sent to observers as a ZoomEventChangeData struct
  • Triggers observers through a callback set on ZoomHostMap

Checklist

Release Notes

Notes: none

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/25-x-y PR should also be added to the "25-x-y" branch. target/26-x-y PR should also be added to the "26-x-y" branch. labels Aug 9, 2023
@electron-cation electron-cation bot added new-pr 🌱 PR opened in the last 24 hours and removed new-pr 🌱 PR opened in the last 24 hours labels Aug 9, 2023
@zcbenz zcbenz merged commit 8e3dcc8 into main Aug 15, 2023
18 checks passed
@zcbenz zcbenz deleted the update-zoomcontroller branch August 15, 2023 01:33
@release-clerk
Copy link

release-clerk bot commented Aug 15, 2023

No Release Notes

@trop
Copy link
Contributor

trop bot commented Aug 15, 2023

I was unable to backport this PR to "25-x-y" cleanly;
you will need to perform this backport manually.

@trop trop bot added needs-manual-bp/25-x-y and removed target/25-x-y PR should also be added to the "25-x-y" branch. labels Aug 15, 2023
@trop
Copy link
Contributor

trop bot commented Aug 15, 2023

I have automatically backported this PR to "26-x-y", please check out #39495

@trop trop bot added in-flight/26-x-y merged/26-x-y PR was merged to the "26-x-y" branch. and removed target/26-x-y PR should also be added to the "26-x-y" branch. in-flight/26-x-y labels Aug 15, 2023
win32ss pushed a commit to win32ss/supermium-electron that referenced this pull request Sep 24, 2023
refactor: update WebContentsZoomController
SpecialAro added a commit to SpecialAro/electron that referenced this pull request Oct 27, 2023
MrHuangJser pushed a commit to MrHuangJser/electron that referenced this pull request Dec 11, 2023
refactor: update WebContentsZoomController
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/26-x-y PR was merged to the "26-x-y" branch. semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants