-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[headless] Added expected window bounds tracking on Windows
Windows clamps newly created platform window to the desktop work area. This results in unexpected behavior in headless mode in which host system display parameters should not be considered and headless Chrome window is supposed to be either default 800x600 or the size specified by --window-size switch. This is how old headless behaves on all platforms and new headless behaves on Linux, thanks to Ozone/headless. This CL introduces expected window size tracking: the requested window size is remembered when the platform window is created and after that it is changing only when SetBounds()/SetSize() are called irrespective to the platform window size. Upper layers observe the expected window size. Bug: 1416398 Change-Id: Ieb094f756bfdf25a8b7c57c3120951a34f9256ee Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4252005 Reviewed-by: Scott Violet <sky@chromium.org> Commit-Queue: Peter Kvitek <kvitekp@chromium.org> Cr-Commit-Position: refs/heads/main@{#1107080}
- Loading branch information
Peter Kvitek
authored and
Chromium LUCI CQ
committed
Feb 18, 2023
1 parent
91b2e66
commit fad2345
Showing
4 changed files
with
194 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters