chore: fix typo in NotifyWindowRequestPreferredWidth method name (#33568)

This commit is contained in:
David Sanders 2022-04-05 09:25:07 -07:00 committed by GitHub
parent 927ab3104d
commit 4615fc53ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -479,7 +479,7 @@ void NativeWindow::SetWindowControlsOverlayRect(const gfx::Rect& overlay_rect) {
overlay_rect_ = overlay_rect; overlay_rect_ = overlay_rect;
} }
void NativeWindow::NotifyWindowRequestPreferredWith(int* width) { void NativeWindow::NotifyWindowRequestPreferredWidth(int* width) {
for (NativeWindowObserver& observer : observers_) for (NativeWindowObserver& observer : observers_)
observer.RequestPreferredWidth(width); observer.RequestPreferredWidth(width);
} }

View file

@ -269,7 +269,7 @@ class NativeWindow : public base::SupportsUserData,
// Public API used by platform-dependent delegates and observers to send UI // Public API used by platform-dependent delegates and observers to send UI
// related notifications. // related notifications.
void NotifyWindowRequestPreferredWith(int* width); void NotifyWindowRequestPreferredWidth(int* width);
void NotifyWindowCloseButtonClicked(); void NotifyWindowCloseButtonClicked();
void NotifyWindowClosed(); void NotifyWindowClosed();
void NotifyWindowEndSession(); void NotifyWindowEndSession();

View file

@ -75,7 +75,7 @@ using FullScreenTransitionState =
// Get preferred width from observers. Usually the page width. // Get preferred width from observers. Usually the page width.
int preferred_width = 0; int preferred_width = 0;
shell_->NotifyWindowRequestPreferredWith(&preferred_width); shell_->NotifyWindowRequestPreferredWidth(&preferred_width);
// Never shrink from the current size on zoom. // Never shrink from the current size on zoom.
NSRect window_frame = [window frame]; NSRect window_frame = [window frame];