Skip to content

christianliebel/window-placement-demo

 
 

Repository files navigation

Multi-Screen Window Placement Demo

Abstract

This is a basic demo of the proposed Multi-Screen Window Placement APIs.

  • Visualize the set of connected displays
  • Open or move a popup window onto any connected display
  • Request fullscreen on any connected display
  • Swap fullscreen from one display to another

Instructions

Run the demo at https://michaelwasserman.github.io/window-placement-demo

  • Use Chrome 93+ (which supports the Multi-Screen Window Placement origin trial)
  • Or enable chrome://flags#enable-experimental-web-platform-features
  • Or run chrome --enable-blink-features=WindowPlacement

[Optional] Host this demo locally and run it:

$ git clone https://github.com/michaelwasserman/window-placement-demo.git
$ cd window-placement-demo
$ python -m SimpleHTTPServer &
$ chrome --enable-blink-features=WindowPlacement -- "http://localhost:8000"

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

$ out/cros_Default/chrome --enable-blink-features=WindowPlacement --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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 50.0%
  • HTML 47.2%
  • CSS 2.8%