Skip to content

refactor: remove FramelessView::Init() - #51008

Merged
codebytere merged 3 commits into
mainfrom
refactor/remove-frameless-view-init
Apr 14, 2026
Merged

codebytere merged 3 commits into
mainfrom
refactor/remove-frameless-view-init

Conversation

@ckerr

@ckerr ckerr commented Apr 13, 2026 •

Copy link
Copy Markdown
Member

Description of Change

Small PR to simplify FramelessView instantiation.

All the FramelessView subclasses do the same thing: instantiate, then immediately call Init(). This PR combines this into a single step: it removes Init() and moves Init's arguments into the constructor.

Checklist

Release Notes

Notes: none

@ckerr ckerr added semver/none target/42-x-y PR should also be added to the "42-x-y" branch. labels Apr 13, 2026
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Apr 13, 2026
@ckerr
ckerr force-pushed the refactor/remove-frameless-view-init branch from 89c6f03 to b31d9fd Compare April 13, 2026 14:04
@ckerr
ckerr force-pushed the refactor/remove-frameless-view-init branch from b31d9fd to dad9b39 Compare April 13, 2026 17:10
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Apr 14, 2026
@codebytere
codebytere merged commit c306557 into main Apr 14, 2026
65 checks passed
@codebytere
codebytere deleted the refactor/remove-frameless-view-init branch April 14, 2026 14:06
@release-clerk

release-clerk Bot commented Apr 14, 2026

Copy link
Copy Markdown

No Release Notes

@trop

trop Bot commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

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

@trop trop Bot added needs-manual-bp/42-x-y and removed target/42-x-y PR should also be added to the "42-x-y" branch. labels Apr 14, 2026
@trop

trop Bot commented May 18, 2026

Copy link
Copy Markdown
Contributor

@ckerr has manually backported this PR to "42-x-y", please check out #51681

jkleinsc pushed a commit that referenced this pull request May 19, 2026
* refactor: remove FramelessView::Init()

move to constructor instead

* refactor: make FramelessView::window_ const

refactor: make FramelessView::frame_ const

* refactor: simplify NativeWindowViews::CreateFrameView() logic branches
@trop trop Bot added merged/42-x-y PR was merged to the "42-x-y" branch. and removed in-flight/42-x-y labels May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged/42-x-y PR was merged to the "42-x-y" branch. semver/none

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants