Enable ‘window-controls’ element Mac, Windows, Linux, Chrome OS
Enables using ‘window-controls’ HTML elements in packaged apps. #enable-app-window-controls
When you’re developing a Chrome App with no frame at all like the one below, wouldn’t that be great to have an easy way to get some default “close” and “maximize” buttons out of the box?
Thanks to a new chrome://flags/#enable-app-window-controls flag in the last chromium build, it can be done by simply inserting
to your html code.
Behind the scenes, this
is actually a Shadow DOM element. By the way, here’s a really good presentation about Web Components: http://html5-demos.appspot.com/static/webcomponents/index.html