summaryrefslogtreecommitdiffstats
path: root/chrome/browser/security
diff options
context:
space:
mode:
authorinitial.commit <initial.commit@0039d316-1c4b-4281-b951-d872f2087c98>2008-07-26 23:55:29 +0000
committerinitial.commit <initial.commit@0039d316-1c4b-4281-b951-d872f2087c98>2008-07-26 23:55:29 +0000
commit09911bf300f1a419907a9412154760efd0b7abc3 (patch)
treef131325fb4e2ad12c6d3504ab75b16dd92facfed /chrome/browser/security
parent586acc5fe142f498261f52c66862fa417c3d52d2 (diff)
downloadchromium_src-09911bf300f1a419907a9412154760efd0b7abc3.zip
chromium_src-09911bf300f1a419907a9412154760efd0b7abc3.tar.gz
chromium_src-09911bf300f1a419907a9412154760efd0b7abc3.tar.bz2
Add chrome to the repository.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/security')
-rw-r--r--chrome/browser/security/resources/ssl_error.html127
-rw-r--r--chrome/browser/security/resources/ssl_roadblock.html137
-rw-r--r--chrome/browser/security/resources/ssl_roadblock_background.pngbin0 -> 367 bytes
-rw-r--r--chrome/browser/security/resources/ssl_roadblock_icon.pngbin0 -> 3040 bytes
-rw-r--r--chrome/browser/security/resources/twisty_closed.pngbin0 -> 164 bytes
-rw-r--r--chrome/browser/security/resources/twisty_closed_rtl.pngbin0 -> 240 bytes
-rw-r--r--chrome/browser/security/resources/twisty_open.pngbin0 -> 158 bytes
7 files changed, 264 insertions, 0 deletions
diff --git a/chrome/browser/security/resources/ssl_error.html b/chrome/browser/security/resources/ssl_error.html
new file mode 100644
index 0000000..123ac85
--- /dev/null
+++ b/chrome/browser/security/resources/ssl_error.html
@@ -0,0 +1,127 @@
+<html id="template_root" jsvalues="dir:textdirection">
+<head>
+<title jscontent="title"></title>
+<style type="text/css">
+body {
+ background-color:#500;
+ font-family:arial;
+ margin:0px;
+}
+.background {
+ position:absolute;
+ width:100%;
+ height:100%;
+}
+.cell {
+ padding:40px;
+}
+.box {
+ width:80%;
+ background-color:white;
+ color:black;
+ font-size:10pt;
+ line-height:16pt;
+ text-align:left;
+ padding:20px;
+ position:relative;
+ -webkit-box-shadow:3px 3px 8px #200;
+ -webkit-border-radius:5px;
+}
+html[dir='rtl'] .box {
+ text-align:right;
+}
+
+.icon {
+ position:absolute;
+}
+.title {
+ margin: 0px 77px 0px;
+ font-size:18pt;
+ margin-bottom:6pt;
+ font-weight:bold;
+ color:#660000;
+}
+.main {
+ margin:0px 80px 0px;
+}
+.submission {
+ margin:5px 5px 15px 0px;
+ padding:0px;
+}
+input {
+ margin:0px;
+}
+
+.example {
+ margin:30px 80px 0px;
+ border-top:1px solid #ccc;
+ padding-top:6pt;
+}
+.moreinfotitle {
+ margin-left:5px;
+ margin-right:5px;
+}
+</style>
+<script>
+ function toggleMoreInfo(collapse) {
+ var div_to_hide;
+ var div_to_show;
+ if (collapse) {
+ div_to_hide = document.getElementById("more_info_long");
+ div_to_show = document.getElementById("more_info_short");
+ } else {
+ div_to_hide = document.getElementById("more_info_short");
+ div_to_show = document.getElementById("more_info_long");
+ }
+ div_to_hide.style.display = "none";
+ div_to_show.style.display = "block";
+ }
+ function setDirectionSensitiveImages() {
+ if (document.getElementById("template_root").dir == 'rtl') {
+ document.getElementById("twisty_closed_rtl").style.display = "inline";
+ } else {
+ document.getElementById("twisty_closed").style.display = "inline";
+ }
+ }
+</script>
+</head>
+<body oncontextmenu="return false;">
+<script>
+document.addEventListener('DOMContentLoaded', setDirectionSensitiveImages);
+</script>
+<div class="background"><img src="ssl_roadblock_background.png" width="100%" height="100%" alt="background" /></div>
+<table width="100%" cellspacing="0" cellpadding="0">
+ <td class="cell" valign="middle" align="center">
+ <div class="box">
+ <div class="icon"><img src="ssl_roadblock_icon.png" alt="SSL Error Icon" /></div>
+ <div class="title" jscontent="headLine"></div>
+ <div class="main" jseval="this.innerHTML = $this.description;"></div>
+ <div class="main">
+ <form class="submission">
+ <input type="button" jsvalues="value:back" name="back" onClick="history.back()" />
+ </form>
+ </div>
+ <div class="example" id="more_info_short">
+ <!--
+ // The img madness here is due to the inlining of the html file
+ // resources. The script that does this looks for subresources like
+ // images and inlines them, so we need to have references to both the
+ // ltr and rtl versions statically. Just doing
+ // jsvalues="src:path_to_correct_image_set_by_c++" won't work, since
+ // the inlined version will just end up with that path string rather
+ // than the inlined image.
+ -->
+ <a href="#" onclick="toggleMoreInfo(false); return false;"><img id="twisty_closed" src="twisty_closed.png" border="0" style="display:none"/><img id="twisty_closed_rtl" src="twisty_closed_rtl.png" border="0" style="display:none"/><span jscontent="moreInfoTitle" class="moreinfotitle"></span></a>
+ </div>
+ <div class="example" id="more_info_long" style="display:none;">
+ <a href="#" onclick="toggleMoreInfo(true); return false;"><img src="twisty_open.png" border="0" /><span jscontent="moreInfoTitle" class="moreinfotitle"></span></a>
+ <p jseval="this.innerHTML = $this.moreInfo1;"></p>
+ <p jseval="this.innerHTML = $this.moreInfo2;"></p>
+ <p jseval="this.innerHTML = $this.moreInfo3;"></p>
+ <p jseval="this.innerHTML = $this.moreInfo4;"></p>
+ <p jseval="this.innerHTML = $this.moreInfo5;"></p>
+ </div>
+ </td>
+</table>
+</body>
+</html>
diff --git a/chrome/browser/security/resources/ssl_roadblock.html b/chrome/browser/security/resources/ssl_roadblock.html
new file mode 100644
index 0000000..12ce7d6
--- /dev/null
+++ b/chrome/browser/security/resources/ssl_roadblock.html
@@ -0,0 +1,137 @@
+<html id="template_root" jsvalues="dir:textdirection">
+<head>
+<title jscontent="title"></title>
+<style type="text/css">
+body {
+ background-color:#500;
+ font-family:arial;
+ margin:0px;
+}
+.background {
+ position:absolute;
+ width:100%;
+ height:100%;
+}
+.cell {
+ padding:40px;
+}
+.box {
+ width:80%;
+ background-color:white;
+ color:black;
+ font-size:10pt;
+ line-height:16pt;
+ text-align:left;
+ padding:20px;
+ position:relative;
+ -webkit-box-shadow:3px 3px 8px #200;
+ -webkit-border-radius:5px;
+}
+html[dir='rtl'] .box {
+ text-align:right;
+}
+
+.icon {
+ position:absolute;
+}
+.title {
+ margin: 0px 77px 0px;
+ font-size:18pt;
+ margin-bottom:6pt;
+ font-weight:bold;
+ color:#660000;
+}
+.main {
+ margin:0px 80px 0px;
+}
+
+.submission {
+ margin:15px 5px 15px 0px;
+ padding:0px;
+}
+input {
+ margin:0px;
+}
+.proceedbutton {
+}
+.helpbutton {
+ float:right;
+}
+.example {
+ margin:30px 80px 0px;
+ border-top:1px solid #ccc;
+ padding-top:6px;
+}
+.moreinfotitle {
+ margin-left:5px;
+ margin-right:5px;
+}
+</style>
+
+<script>
+ function $(o) {return document.getElementById(o);}
+
+ function sendCommand(cmd) {
+ window.domAutomationController.setAutomationId(1);
+ window.domAutomationController.send(cmd);
+ }
+
+ function toggleMoreInfo(collapse) {
+ if (collapse) {
+ $("more_info_long").style.display = "none";
+ $("more_info_short").style.display = "block";
+ } else {
+ $("more_info_long").style.display = "block";
+ $("more_info_short").style.display = "none";
+ }
+ }
+ function setDirectionSensitiveImages() {
+ if ($("template_root").dir == 'rtl') {
+ $("twisty_closed_rtl").style.display = "inline";
+ } else {
+ $("twisty_closed").style.display = "inline";
+ }
+ }
+</script>
+</head>
+<body oncontextmenu="return false;">
+<script>
+document.addEventListener('DOMContentLoaded', setDirectionSensitiveImages);
+</script>
+<div class="background"><img src="ssl_roadblock_background.png" width="100%" height="100%" alt="background" /></div>
+<table width="100%" cellspacing="0" cellpadding="0">
+ <td class="cell" valign="middle" align="center">
+ <div class="box">
+ <div class="icon"><img src="ssl_roadblock_icon.png" alt="SSL Error Icon" /></div>
+ <div class="title" jscontent="headLine"></div>
+ <div class="main" jseval="this.innerHTML = $this.description;"></div>
+ <div class="main">
+ <form class="submission">
+ <input type="button" jsvalues="value:proceed" name="proceed" class="proceedbutton" onClick="sendCommand(1);" />
+ <input type="button" jsvalues="value:exit" name="exit" onClick="sendCommand(0);" />
+ </form>
+ </div>
+ <div class="example" id="more_info_short">
+ <!--
+ // The img madness here is due to the inlining of the html file
+ // resources. The script that does this looks for subresources like
+ // images and inlines them, so we need to have references to both the
+ // ltr and rtl versions statically. Just doing
+ // jsvalues="src:path_to_correct_image_set_by_c++" won't work, since
+ // the inlined version will just end up with that path string rather
+ // than the inlined image.
+ -->
+ <a href="#" onclick="toggleMoreInfo(false); return false;"><img id="twisty_closed" src="twisty_closed.png" border="0" style="display:none"/><img id="twisty_closed_rtl" src="twisty_closed_rtl.png" border="0" style="display:none"/><span jscontent="moreInfoTitle" class="moreinfotitle"></span></a>
+ </div>
+ <div class="example" id="more_info_long" style="display:none;">
+ <a href="#" onclick="toggleMoreInfo(true); return false;"><img src="twisty_open.png" border="0" /><span jscontent="moreInfoTitle" class="moreinfotitle"></span></a>
+ <p jseval="this.innerHTML = $this.moreInfo1;"></p>
+ <p jseval="this.innerHTML = $this.moreInfo2;"></p>
+ <p jseval="this.innerHTML = $this.moreInfo3;"></p>
+ <p jseval="this.innerHTML = $this.moreInfo4;"></p>
+ <p jseval="this.innerHTML = $this.moreInfo5;"></p>
+ </div>
+ </td>
+</table>
+</body>
+</html>
diff --git a/chrome/browser/security/resources/ssl_roadblock_background.png b/chrome/browser/security/resources/ssl_roadblock_background.png
new file mode 100644
index 0000000..f4b5a9c
--- /dev/null
+++ b/chrome/browser/security/resources/ssl_roadblock_background.png
Binary files differ
diff --git a/chrome/browser/security/resources/ssl_roadblock_icon.png b/chrome/browser/security/resources/ssl_roadblock_icon.png
new file mode 100644
index 0000000..0f4e93a
--- /dev/null
+++ b/chrome/browser/security/resources/ssl_roadblock_icon.png
Binary files differ
diff --git a/chrome/browser/security/resources/twisty_closed.png b/chrome/browser/security/resources/twisty_closed.png
new file mode 100644
index 0000000..af44deb
--- /dev/null
+++ b/chrome/browser/security/resources/twisty_closed.png
Binary files differ
diff --git a/chrome/browser/security/resources/twisty_closed_rtl.png b/chrome/browser/security/resources/twisty_closed_rtl.png
new file mode 100644
index 0000000..797fc64
--- /dev/null
+++ b/chrome/browser/security/resources/twisty_closed_rtl.png
Binary files differ
diff --git a/chrome/browser/security/resources/twisty_open.png b/chrome/browser/security/resources/twisty_open.png
new file mode 100644
index 0000000..449bba7
--- /dev/null
+++ b/chrome/browser/security/resources/twisty_open.png
Binary files differ