summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/incognito_tab.html
blob: 78b7c20089f3b4a690646e28013810736549ed86 (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
<!DOCTYPE html>
<html i18n-values="dir:textdirection;bookmarkbarattached:bookmarkbarattached">
<head>
<title i18n-content="title"></title>
<link rel="stylesheet" href="incognito_tab.css">
<script>
// Until themes can clear the cache, force-reload the theme stylesheet.
document.write('<link id="incognitothemecss" rel="stylesheet" ' +
               'href="chrome://theme/css/incognito_new_tab_theme.css?' +
               Date.now() + '">');
</script>
</head>
<body>
<div class="content"
    i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize">
  <img src="shared/images/otr_icon_standalone.png" class="icon">
  <span i18n-values=".innerHTML:content"></span>
  <div class="extensions-message">
    <div class="extension-icon"></div>
    <span i18n-values=".innerHTML:extensionsmessage"></span>
  </div>
</div>
</body>
<script src="chrome://resources/js/cr.js"></script>
<script>
cr.define('ntp', function() {
  'use strict';
  /**
   * Set whether the bookmarks bar is attached or not.
   * @param {boolean} attached Whether the bar is attached or not.
   */
  function setBookmarkBarAttached(attached) {
    document.documentElement.setAttribute('bookmarkbarattached', !!attached);
  }

  function themeChanged() {
    document.getElementById('incognitothemecss').href =
        'chrome://theme/css/incognito_new_tab_theme.css?' + Date.now();
  }

  return {
    setBookmarkBarAttached: setBookmarkBarAttached,
    themeChanged: themeChanged,
  };
});
</script>
</html>