diff options
author | erikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-27 15:22:11 +0000 |
---|---|---|
committer | erikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-27 15:22:11 +0000 |
commit | 5351dbc9a7ec62aa9db14e6040856f56a9d01c0f (patch) | |
tree | 75310029e7bfdb333e11b117f4af1a5f98c7d955 /chrome/renderer/resources | |
parent | 5e38ff3d12a83ae0925ef00c3da37ce9718ac29d (diff) | |
download | chromium_src-5351dbc9a7ec62aa9db14e6040856f56a9d01c0f.zip chromium_src-5351dbc9a7ec62aa9db14e6040856f56a9d01c0f.tar.gz chromium_src-5351dbc9a7ec62aa9db14e6040856f56a9d01c0f.tar.bz2 |
When the browser doesn't have connectivity to a hosted app, display a prettier error page by default.
TEST=none
BUG=41281
Review URL: http://codereview.chromium.org/3174024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57680 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/resources')
-rw-r--r-- | chrome/renderer/resources/error_app.html | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/chrome/renderer/resources/error_app.html b/chrome/renderer/resources/error_app.html new file mode 100644 index 0000000..18265cef --- /dev/null +++ b/chrome/renderer/resources/error_app.html @@ -0,0 +1,53 @@ +<!DOCTYPE html> +<html i18n-values="dir:textdirection"> +<head> +<title i18n-content="title"> +</title> +<style> +html { + height: 100%; +} +body { + color: #000; + font-family: Helvetica, Arial, sans-serif; + background-image: -webkit-gradient( + linear, + left bottom, + left top, + color-stop(0, rgb(236,244,255)), + color-stop(0.50, rgb(255,255,255)) + ); + height: 100%; + padding: 0px; + margin: 0px; +} +#error { + position: absolute; + left: 180px; + top: 150px; + font-size: 24px; +} +#error img { + margin-right: 10px; + vertical-align: middle; +} +#name { + font-weight: bold; +} +#msg { +} +</style> +</head> + +<body id="t"> + +<div id="error" jsvalues=".title:url"> +<img jsvalues=".src:icon" width="96" height="96"> +<div style="display:inline-block; vertical-align: middle;"> +<div id="name" jsvalues=".innerText:name"></div> +<div id="msg" jsvalues=".innerText:msg"></div> +</div> +</div> + +</body> +</html> |