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

Unified Diff: chrome/browser/resources/guest_session_tab.html

Issue 4010004: Changed new tab content for Guest Session. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome
Patch Set: merge Created 10 years, 2 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/guest_session_tab.html
diff --git a/chrome/browser/resources/guest_session_tab.html b/chrome/browser/resources/guest_session_tab.html
new file mode 100644
index 0000000000000000000000000000000000000000..1d3ac21374e57ad2911fe3f73ff51e5bc1ab77c3
--- /dev/null
+++ b/chrome/browser/resources/guest_session_tab.html
@@ -0,0 +1,69 @@
+<!DOCTYPE html>
+<html i18n-values="dir:textdirection;bookmarkbarattached:bookmarkbarattached">
+<head>
+<title i18n-content="title"></title>
+<style>
+body {
+ margin:10px 8px 10px 8px;
+}
+html[dir="ltr"] .icon {
+ float:right;
+ margin:0 6px 0 3px;
+ -webkit-transform: scale(-1, 1);
+}
+html[dir="rtl"] .icon {
+ float:left;
+ margin:0 3px 0 6px;
+}
+.content {
+ border-radius: 5px 5px;
+ background-color:#eee;
+ color:black;
+ padding:10px 10px 10px 10px;
+ max-width:600px;
+ margin-left:auto;
+ margin-right:auto;
+ margin-top:66px;
+}
+.extensionsmessage {
+ color:black;
+ padding:10px 10px 10px 10px;
+ max-width:600px;
+ margin-left:auto;
+ margin-right:auto;
+ margin-top:5px;
+}
+.extensionicon {
+ float:left;
+ margin:10px 5px 0 0px;
+ width:30px;
+}
+</style>
+<script>
+// Until themes can clear the cache, force-reload the theme stylesheet.
+document.write('<link id="incognitothemecss" rel="stylesheet" ' +
+ 'href="chrome://theme/css/newincognitotab.css?' +
+ Date.now() + '">');
+</script>
+</head>
+<body>
+<div class="content" i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize">
+ <img src="shared/images/guest_icon_standalone.png" class="icon" />
+ <span i18n-values=".innerHTML:content"></span>
+</div>
+</body>
+<script>
+function themeChanged() {
+ document.getElementById('incognitothemecss').href =
+ 'chrome://theme/css/newincognitotab.css?' + Date.now();
+}
+
+function bookmarkBarAttached() {
+ document.documentElement.setAttribute("bookmarkbarattached", "true");
+}
+
+function bookmarkBarDetached() {
+ document.documentElement.setAttribute("bookmarkbarattached", "false");
+}
+</script>
+</html>
« no previous file with comments | « chrome/browser/dom_ui/ntp_resource_cache.cc ('k') | chrome/browser/resources/shared/images/guest_icon_standalone.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698