Index: ui/views/cocoa/bridged_native_widget.h |
diff --git a/ui/views/cocoa/bridged_native_widget.h b/ui/views/cocoa/bridged_native_widget.h |
index a3421923cb2e489c4ed35c9f4bf1073a7dd24334..256c6a70cac32f4f1491f87dbf549fba8e8c375d 100644 |
--- a/ui/views/cocoa/bridged_native_widget.h |
+++ b/ui/views/cocoa/bridged_native_widget.h |
@@ -201,6 +201,11 @@ class VIEWS_EXPORT BridgedNativeWidget |
// scale factor. |
void UpdateLayerProperties(); |
+ // Immediately return if there is a composited frame matching |size_in_dip|. |
+ // Otherwise, asks ui::WindowResizeHelperMac to run tasks until a matching |
+ // frame is ready, or a timeout occurs. |
+ void MaybeWaitForFrame(const gfx::Size& size_in_dip); |
+ |
// Sets mouseDownCanMoveWindow on |bridged_view_| and triggers the NSWindow to |
// update its draggable region. |
void SetDraggable(bool draggable); |