neo icon indicating copy to clipboard operation
neo copied to clipboard

Consider using the window placement API?

Open LifeIsStrange opened this issue 4 years ago • 4 comments

https://web.dev/multi-screen-window-placement/ It would be nice to remember window position

LifeIsStrange avatar Nov 30 '21 15:11 LifeIsStrange

Hi @LifeIsStrange,

I actually chatted about this topic with the author Thomas ( @tomayac ) a while ago on Twitter. I definitely like the API, except for being limited to Chromium at that point in time (did this change?).

Sadly, both of us have not found the time yet to create a PoC version & demo.

Implementation-wise it should be pretty straight forward. We need a new optional main thread addon, similar to the ones here: https://github.com/neomjs/neo/tree/dev/src/main/addon and create methods which honor the API and expose these as remotes (remote method access) to the App worker.

In case someone wants to create a PR, it would be appreciated.

Best regards, Tobias

tobiu avatar Nov 30 '21 21:11 tobiu

(FYI @michaelwasserman and @quisquous.)

tomayac avatar Dec 01 '21 12:12 tomayac

Thanks for your interest! Chromium is wrapping up the second Origin Trial in M-96 and would appreciate any feedback before pursuing a stable release. See the explainer and/or draft spec for API details. Feel free to file github issues, leave feedback, or reach out with any questions. Developer feedback and support motivates other browser vendors to consider adopting APIs like this.

michaelwasserman avatar Dec 15 '21 19:12 michaelwasserman

@tobiu to be clear I have not the time/will to implement the feature although I am curious about this API

LifeIsStrange avatar Dec 15 '21 20:12 LifeIsStrange