コード例 #1
0
        /// <summary>
        /// Sends a notification to the browser that the root window has been moved or resized.<para/>
        /// This function is only used when window rendering is disabled.
        /// </summary>
        public void NotifyRootMovedOrResized()
        {
            CefBrowserHost browserHost = this.BrowserObject?.Host;

            if (browserHost is null || !browserHost.IsWindowRenderingDisabled)
            {
                return;
            }

            browserHost.NotifyMoveOrResizeStarted();
            UpdateOffscreenViewLocation();
            browserHost.NotifyScreenInfoChanged();
        }