Closed jkim-julie closed 6 years ago
@msisov, HeadlessNativeDisplayDelegate is created. When I checked headless without ozone, window size is set with defalut value at https://cs.chromium.org/chromium/src/headless/public/headless_browser.cc?rcl=28b6d51b55308bc3d8562414859640161d0d3e93&l=50 and can be set with command line argument, at https://cs.chromium.org/chromium/src/headless/public/headless_browser.cc?rcl=28b6d51b55308bc3d8562414859640161d0d3e93&l=160
And then HeadlessScreen is created at https://cs.chromium.org/chromium/src/headless/lib/browser/headless_browser_impl_aura.cc?rcl=28b6d51b55308bc3d8562414859640161d0d3e93&l=23 and it calls SetScreenInstance().
This CL doesn't include the part for respecting argument window size. I need to consider how to make it.
PTAL.
@msisov , the branch was updated. PTAL.
Updated branch and fixed nits.
This CL created HeadlessNativeDisplayDelegate for ozone/headless. DesktopScreenOzone keeps it at delegate_ and communicate it.
With thie CL, we can launch chromium with '--ozone-platform=headless'.