summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/incognito_tab.html
blob: 9b493ddb57a121d231c811e8512ddcc67aa358e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html i18n-values="dir:textdirection;bookmarkbarattached:bookmarkbarattached">
<head>
<title i18n-content="title"></title>
<style>
body {
  margin:10px 8px 10px 8px;
}
.icon {
  float:right;
  margin:0px 6px 0px 3px;
}
.content {
  -webkit-border-radius: 5px 5px;
  background-color:#eee;
  color:black;
  padding:10px 10px 10px 10px;
  max-width:600px;
  margin-left:auto;
  margin-right:auto;
}
</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="../../app/theme/otr_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>