chore: fix typos (#32985)
This commit is contained in:
parent
069cde09fb
commit
1e8da899a3
14 changed files with 20 additions and 20 deletions
|
@ -51,7 +51,7 @@
|
|||
|
||||
// This view would inform Chromium to resize the hosted views::View.
|
||||
//
|
||||
// The overrided methods should behave the same with BridgedContentView.
|
||||
// The overridden methods should behave the same with BridgedContentView.
|
||||
@interface ElectronAdaptedContentView : NSView {
|
||||
@private
|
||||
views::NativeWidgetMacNSWindowHost* bridge_host_;
|
||||
|
@ -373,7 +373,7 @@ NativeWindowMac::NativeWindowMac(const gin_helper::Dictionary& options,
|
|||
if (traffic_light_position_) {
|
||||
[buttons_proxy_ setMargin:*traffic_light_position_];
|
||||
} else if (title_bar_style_ == TitleBarStyle::kHiddenInset) {
|
||||
// For macOS >= 11, while this value does not match offical macOS apps
|
||||
// For macOS >= 11, while this value does not match official macOS apps
|
||||
// like Safari or Notes, it matches titleBarStyle's old implementation
|
||||
// before Electron <= 12.
|
||||
[buttons_proxy_ setMargin:gfx::Point(12, 11)];
|
||||
|
@ -381,7 +381,7 @@ NativeWindowMac::NativeWindowMac(const gin_helper::Dictionary& options,
|
|||
if (title_bar_style_ == TitleBarStyle::kCustomButtonsOnHover) {
|
||||
[buttons_proxy_ setShowOnHover:YES];
|
||||
} else {
|
||||
// customButtonsOnHover does not show buttons initialiy.
|
||||
// customButtonsOnHover does not show buttons initially.
|
||||
InternalSetWindowButtonVisibility(true);
|
||||
}
|
||||
}
|
||||
|
@ -562,7 +562,7 @@ void NativeWindowMac::Hide() {
|
|||
}
|
||||
}
|
||||
|
||||
// Deattach the window from the parent before.
|
||||
// Detach the window from the parent before.
|
||||
if (parent())
|
||||
InternalSetParentWindow(parent(), false);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue