Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(522)

Unified Diff: chrome/browser/resources/vr_shell/vr_shell_ui.html

Issue 2363553003: VrShell: implement insecure content warning display (Closed)
Patch Set: Try to mark dependent CL Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/vr_shell/vr_shell_ui.html
diff --git a/chrome/browser/resources/vr_shell/vr_shell_ui.html b/chrome/browser/resources/vr_shell/vr_shell_ui.html
index 4cd5ace00c6038e043499b80c96dafd6d48160ae..f8272afe89b54fc1f4e331f23a5e4bb1c6706bd8 100644
--- a/chrome/browser/resources/vr_shell/vr_shell_ui.html
+++ b/chrome/browser/resources/vr_shell/vr_shell_ui.html
@@ -17,6 +17,58 @@ found in the LICENSE file.
<link rel="stylesheet" href="vr_shell_ui.css">
</head>
<body>
+<!-- IDS_WEBSITE_SETTINGS_INSECURE_WEBVR_CONTENT_TRANSIENT message -->
+<div id="not-secure-verbose" style="
+ width: 256px;
+ height: 128px;
+ background: rgba(0,0,0,0);
+ position: absolute;
+ left: 0px;
+ top: 0px;
+"><div style="
+ position: absolute;
+ background-color: rgba(0, 0, 0, 0.5);
+ width: 251px;
+ height: 100px;
+ left: 50%;
+ top: 50%;
+ transform: translate(-50%, -50%);
+ padding: 3px;
+ border-radius: 3px;
+"><span style="
+ font-family: sans-serif;
+ font-size: 15px;
+ text-align: center;
+ color: white;
+ width: 251px;
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ transform: translate(-50%, -50%);
+">$i18n{insecureWebVrContentTransient}</span></div></div></body>
+<!-- IDS_WEBSITE_SETTINGS_INSECURE_WEBVR_CONTENT_PERMANENT message -->
+<div id="not-secure-small" style="
+ width: 128px;
+ height: 64px;
+ background: rgba(0,0,0,0);
+ position: absolute;
+ left: 256px;
+ top: 0px;
+"><span style="
+ background: white;
+ position: absolute;
+ width: 100px;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+ color: #444;
+ padding: 3px;
+ border-radius: 3px;
+ font-family: sans-serif;
+ font-size: 16px;
+ text-align: center;
+ box-shadow: 0px 0px 5px rgba(0,0,0,0.3);
+"><span>&#x24d8;</span> $i18n{insecureWebVrContentPermanent}</span></div>
Dan Beam 2016/09/27 20:28:43 can you put these style="" attributes into a <styl
</body>
<!-- Run script after creating body, to let it add its own elements. -->

Powered by Google App Engine
This is Rietveld 408576698