/window-placement-demo

Primary LanguageHTMLApache License 2.0Apache-2.0

Window Placement and Screen Enumeration APIs Demo

Abstract

This is a basic demo of the proposed Screen Enumeration and Window Placement APIs.

This demo depends on recent work and unmerged changes to Chrome:

Instructions

Get this demo and host it locally:

$ cd /src
$ git clone https://github.com/michaelwasserman/window-placement-demo.git
$ cd window-placement-demo
$ python -m SimpleHTTPServer

Apply the WIP window placement changes, build and run:

$ cd /src/chromium/src
$ git cl patch -b wip_window_placement_api https://chromium-review.googlesource.com/c/chromium/src/+/1767282
$ autoninja -C out/Default chrome
$ out/Default/chrome --enable-blink-features=ScreenEnumeration -- "http://localhost:8000"

To simulate multiple displays with linux-chromeos builds, use --ash-host-window-bounds:

$ out/cros_Default/chrome --enable-blink-features=ScreenEnumeration --ash-host-window-bounds=1280x960,1285+0-1280x960 -- "http://localhost:8000"

Screen Capture

Demo screen capture: linux-chromeos with two virtual displays draws a screen-space diagram and opens windows on both displays
Demo Screen Capture - linux-chromeos with two virtual displays