Implement apps v2 custom window frame.
commitf733f2680c94fad910ce9686aa2645bc90ebc160
authorjamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 14 May 2014 06:10:16 +0000 (14 06:10 +0000)
committerjamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 14 May 2014 06:10:16 +0000 (14 06:10 +0000)
tree1b43738a891b6713022c2d648b91c33733955d6a
parent79e70d0fe37628603f793961269e74b9c6117e8b
Implement apps v2 custom window frame.

The default apps v2 container is pretty basic. We want to provide something that looks prettier and also implements some functionality specific to our use-case:

* When connected to a host, a disconnect icon is added to the window controls (it's therefore no longer needed in the tool-bar).
* When connected to a host, maximize == full-screen.
* In full-screen mode, the window controls are still accessible, but are auto-hidden near the top-left corner (but not obscuring it, since it's often a hot-spot on the server).
* For touch-screen devices with no concept of hover, clicking the "stub" will also reveal the controls.

There should be no change to the v1 UX, but I don't plan on landing this CL before the M36 branch point, just in case.

BUG=134213

Review URL: https://codereview.chromium.org/265393005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270342 0039d316-1c4b-4281-b951-d872f2087c98
21 files changed:
remoting/remoting.gyp
remoting/remoting_webapp_files.gypi
remoting/resources/drag.webp [new file with mode: 0644]
remoting/resources/icon_close.webp [new file with mode: 0644]
remoting/resources/icon_disconnect.webp [new file with mode: 0644]
remoting/resources/icon_maximize_restore.webp [new file with mode: 0644]
remoting/resources/icon_minimize.webp [new file with mode: 0644]
remoting/resources/remoting_strings.grd
remoting/webapp/background.js
remoting/webapp/client_session.js
remoting/webapp/event_handlers.js
remoting/webapp/fullscreen_v2.js
remoting/webapp/html/template_main.html
remoting/webapp/html/toolbar.html
remoting/webapp/html/window_frame.html [new file with mode: 0644]
remoting/webapp/js_proto/chrome_proto.js
remoting/webapp/main.css
remoting/webapp/remoting.js
remoting/webapp/toolbar.css
remoting/webapp/window_frame.css [new file with mode: 0644]
remoting/webapp/window_frame.js [new file with mode: 0644]