refactor: remove InspectableWebContentsViewMac in favor of the Views version (#41326)

This commit is contained in:
Jeremy Rose 2024-03-04 09:32:40 -08:00 committed by GitHub
parent 814ba71dc1
commit e67ab9a93d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 304 additions and 956 deletions

View file

@ -242,6 +242,7 @@ NativeWindowMac::NativeWindowMac(const gin_helper::Dictionary& options,
params.bounds = bounds;
params.delegate = this;
params.type = views::Widget::InitParams::TYPE_WINDOW;
params.headless_mode = true;
params.native_widget =
new ElectronNativeWidgetMac(this, windowType, styleMask, widget());
widget()->Init(std::move(params));