summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/history.html
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/resources/history.html')
-rw-r--r--chrome/browser/resources/history.html74
1 files changed, 3 insertions, 71 deletions
diff --git a/chrome/browser/resources/history.html b/chrome/browser/resources/history.html
index a33b821..c9ecac7 100644
--- a/chrome/browser/resources/history.html
+++ b/chrome/browser/resources/history.html
@@ -4,6 +4,7 @@
<meta charset="utf-8">
<title jscontent="title"></title>
<link rel="icon" href="../../app/theme/history_favicon.png">
+<script src="local_strings.js"></script>
<script>
///////////////////////////////////////////////////////////////////////////////
// Globals:
@@ -37,45 +38,6 @@ var pageState;
var deleteQueue = [];
var deleteInFlight = false;
-///////////////////////////////////////////////////////////////////////////////
-// localStrings:
-/**
- * We get strings into the page by using JSTemplate to populate some elements
- * with localized content, then reading the content of those elements into
- * this global strings object.
- * @param {Node} node The DOM node containing all our strings.
- */
-function LocalStrings(node) {
- this.strings_ = {};
-
- var children = node.children;
- for (var i = 0, child; child = children[i]; i++) {
- var id = child.id;
- if (id) {
- this.strings_[id] = child.innerHTML;
- }
- }
-}
-
-/**
- * Gets a localized string by its id.
- * @param {string} s The id of the string we want
- * @return {string} The localized string
- */
-LocalStrings.prototype.getString = function(s) {
- return this.strings_[s] || '';
-}
-
-/**
- * Returns a formatted localized string (where all %s contents are replaced
- * by the second argument).
- * @param {string} s The id of the string we want
- * @param {string} d The string to include in the formatted string
- * @return {string} The formatted string.
- */
-LocalStrings.prototype.formatString = function(s, d) {
- return this.getString(s).replace(/\%s/, d);
-}
///////////////////////////////////////////////////////////////////////////////
// Page:
@@ -805,31 +767,8 @@ function historyDeleted() {
historyView.reload();
}
</script>
+<link rel="stylesheet" href="dom_ui.css">
<style>
-body {
- background-color:white;
- color:black;
- margin:10px;
-}
-.header {
- overflow:auto;
- clear:both;
-}
-.header .logo {
- float:left;
-}
-.header .form {
- float:left;
- margin-top:22px;
- margin-left:12px;
-}
-html[dir='rtl'] .logo {
- float:right;
-}
-html[dir='rtl'] .form {
- float:right;
- margin-right:12px;
-}
#results-summary {
margin-top:12px;
border-top:1px solid #9cc2ef;
@@ -909,14 +848,7 @@ html[dir='rtl'] .entry .title a {
padding-top:24px;
margin-left:18px;
}
-.page-navigation {
- padding:8px;
- background-color:#ebeff9;
- margin-right:4px;
-}
-.footer {
- height:24px;
-}
+
</style>
</head>
<body onload="load();" jsvalues=".style.fontFamily:fontfamily;.style.fontSize:fontsize">