summaryrefslogtreecommitdiffstats
path: root/remoting/webapp/html/window_frame.html
diff options
context:
space:
mode:
authorjamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-14 06:10:16 +0000
committerjamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-14 06:10:16 +0000
commitf733f2680c94fad910ce9686aa2645bc90ebc160 (patch)
tree1b43738a891b6713022c2d648b91c33733955d6a /remoting/webapp/html/window_frame.html
parent79e70d0fe37628603f793961269e74b9c6117e8b (diff)
downloadchromium_src-f733f2680c94fad910ce9686aa2645bc90ebc160.zip
chromium_src-f733f2680c94fad910ce9686aa2645bc90ebc160.tar.gz
chromium_src-f733f2680c94fad910ce9686aa2645bc90ebc160.tar.bz2
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
Diffstat (limited to 'remoting/webapp/html/window_frame.html')
-rw-r--r--remoting/webapp/html/window_frame.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/remoting/webapp/html/window_frame.html b/remoting/webapp/html/window_frame.html
new file mode 100644
index 0000000..3b24d48
--- /dev/null
+++ b/remoting/webapp/html/window_frame.html
@@ -0,0 +1,29 @@
+<!--
+Copyright 2014 The Chromium Authors. All rights reserved.
+Use of this source code is governed by a BSD-style license that can be
+found in the LICENSE file.
+-->
+<div id="title-bar" class="title-bar apps-v2-only">
+ <span class="window-title">&nbsp;</span>
+ <span class="window-controls-hover-target">
+ <div class="window-controls">
+ <span i18n-title="DISCONNECT_MYSELF_BUTTON"
+ class="window-control window-disconnect">
+ <img src="icon_disconnect.webp">
+ </span>
+ <span i18n-title="MINIMIZE_WINDOW"
+ class="window-control window-minimize">
+ <img src="icon_minimize.webp">
+ </span>
+ <span i18n-title="MAXIMIZE_WINDOW"
+ class="window-control window-maximize-restore">
+ <img src="icon_maximize_restore.webp">
+ </span>
+ <span i18n-title="CLOSE_WINDOW"
+ class="window-control window-close">
+ <img src="icon_close.webp">
+ </span>
+ </div>
+ <div class="window-controls-stub">&nbsp;</div>
+ </span>
+</div>