chore: fix typo in NotifyWindowRequestPreferredWidth method name (#33568)
This commit is contained in:
parent
927ab3104d
commit
4615fc53ca
3 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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];
|
||||||
|
|
Loading…
Reference in a new issue