From 4615fc53ca3af6de585de1c25ff623169cbba5d8 Mon Sep 17 00:00:00 2001 From: David Sanders Date: Tue, 5 Apr 2022 09:25:07 -0700 Subject: [PATCH] chore: fix typo in NotifyWindowRequestPreferredWidth method name (#33568) --- shell/browser/native_window.cc | 2 +- shell/browser/native_window.h | 2 +- shell/browser/ui/cocoa/electron_ns_window_delegate.mm | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shell/browser/native_window.cc b/shell/browser/native_window.cc index 1ca962fa9274..989d816c17c8 100644 --- a/shell/browser/native_window.cc +++ b/shell/browser/native_window.cc @@ -479,7 +479,7 @@ void NativeWindow::SetWindowControlsOverlayRect(const gfx::Rect& overlay_rect) { overlay_rect_ = overlay_rect; } -void NativeWindow::NotifyWindowRequestPreferredWith(int* width) { +void NativeWindow::NotifyWindowRequestPreferredWidth(int* width) { for (NativeWindowObserver& observer : observers_) observer.RequestPreferredWidth(width); } diff --git a/shell/browser/native_window.h b/shell/browser/native_window.h index 762552656a5d..febc36213fd0 100644 --- a/shell/browser/native_window.h +++ b/shell/browser/native_window.h @@ -269,7 +269,7 @@ class NativeWindow : public base::SupportsUserData, // Public API used by platform-dependent delegates and observers to send UI // related notifications. - void NotifyWindowRequestPreferredWith(int* width); + void NotifyWindowRequestPreferredWidth(int* width); void NotifyWindowCloseButtonClicked(); void NotifyWindowClosed(); void NotifyWindowEndSession(); diff --git a/shell/browser/ui/cocoa/electron_ns_window_delegate.mm b/shell/browser/ui/cocoa/electron_ns_window_delegate.mm index 1723f5c6d55e..f9b7a1170d1d 100644 --- a/shell/browser/ui/cocoa/electron_ns_window_delegate.mm +++ b/shell/browser/ui/cocoa/electron_ns_window_delegate.mm @@ -75,7 +75,7 @@ using FullScreenTransitionState = // Get preferred width from observers. Usually the page width. int preferred_width = 0; - shell_->NotifyWindowRequestPreferredWith(&preferred_width); + shell_->NotifyWindowRequestPreferredWidth(&preferred_width); // Never shrink from the current size on zoom. NSRect window_frame = [window frame];