ckerr

#47172: refactor: make NativeWindow::transparent_ const

Merged
Created: May 20, 2025, 12:28:05 PM
Merged: May 21, 2025, 12:42:08 PM
4 comments
Target: main

Description of Change

Companion refactor to #47156 that makes more fields const. This PR:

  • Makes NativeWindow::enable_larger_than_screen_ const
  • Makes NativeWindow::transparent_ const
  • Annotates NativeWindow::enable_larger_than_screen() as [[nodiscard]]
  • Annotates NativeWindow::transparent() as [[nodiscard]]
  • Uses in-class member initialization for NativeWindow::widget_

Checklist

Release Notes

Notes: none.

Backports

35-x-y
Merged
PR Number
#47197
Merged At
May 22, 2025, 11:16:43 AM
Released In
v35.5.0
Release Date
May 28, 2025, 11:03:13 AM
36-x-y
Merged
PR Number
#47199
Merged At
May 21, 2025, 3:50:00 PM
Released In
v36.3.0
Release Date
May 22, 2025, 8:18:58 AM
37-x-y
Merged
PR Number
#47198
Merged At
May 21, 2025, 3:32:52 PM
Released In
v37.0.0-alpha.6
Release Date
May 22, 2025, 10:18:26 AM

Semver Impact

Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.

Semantic Versioning helps users understand the impact of updates:

  • Major (X.y.z): Breaking changes that may require code modifications
  • Minor (x.Y.z): New features that maintain backward compatibility
  • Patch (x.y.Z): Bug fixes that don't change the API
  • None: Changes that don't affect using facing parts of Electron