| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <html id="t" jsvalues="dir:textdirection;"> | 2 <html id="t" jsvalues="dir:textdirection;"> |
| 3 <head> | 3 <head> |
| 4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
| 5 <title jscontent="title"></title> | 5 <title jscontent="title"></title> |
| 6 <link rel="icon" href="../../app/theme/history_favicon.png"> | 6 <link rel="icon" href="../../app/theme/history_favicon.png"> |
| 7 <script src="local_strings.js"></script> | 7 <script src="local_strings.js"></script> |
| 8 <script> | 8 <script> |
| 9 /////////////////////////////////////////////////////////////////////////////// | 9 /////////////////////////////////////////////////////////////////////////////// |
| 10 // Globals: | 10 // Globals: |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 /** | 121 /** |
| 122 * @return {DOMObject} DOM representation for the title block. | 122 * @return {DOMObject} DOM representation for the title block. |
| 123 */ | 123 */ |
| 124 Page.prototype.getTitleDOM_ = function() { | 124 Page.prototype.getTitleDOM_ = function() { |
| 125 var node = document.createElement('div'); | 125 var node = document.createElement('div'); |
| 126 node.className = 'title'; | 126 node.className = 'title'; |
| 127 var link = document.createElement('a'); | 127 var link = document.createElement('a'); |
| 128 link.href = this.url_; | 128 link.href = this.url_; |
| 129 link.style.backgroundImage = | 129 link.style.backgroundImage = |
| 130 'url(chrome-ui://favicon/' + encodeURIForCSS(this.url_) + ')'; | 130 'url(chrome://favicon/' + encodeURIForCSS(this.url_) + ')'; |
| 131 link.appendChild(document.createTextNode(this.title_)); | 131 link.appendChild(document.createTextNode(this.title_)); |
| 132 this.highlightNodeContent_(link); | 132 this.highlightNodeContent_(link); |
| 133 | 133 |
| 134 node.appendChild(link); | 134 node.appendChild(link); |
| 135 | 135 |
| 136 if (this.starred_) { | 136 if (this.starred_) { |
| 137 node.appendChild(createElementWithClassName('div', 'starred')); | 137 node.appendChild(createElementWithClassName('div', 'starred')); |
| 138 } | 138 } |
| 139 | 139 |
| 140 return node; | 140 return node; |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 } | 546 } |
| 547 | 547 |
| 548 /** | 548 /** |
| 549 * Get the HTML representation of a page navigation link. | 549 * Get the HTML representation of a page navigation link. |
| 550 * @param {number} page The page index the navigation element should link to | 550 * @param {number} page The page index the navigation element should link to |
| 551 * @param {string} name The text content of the link | 551 * @param {string} name The text content of the link |
| 552 * @return {string} HTML representation of the pagination link | 552 * @return {string} HTML representation of the pagination link |
| 553 */ | 553 */ |
| 554 HistoryView.prototype.createPageNavHTML_ = function(page, name) { | 554 HistoryView.prototype.createPageNavHTML_ = function(page, name) { |
| 555 var hashString = PageState.getHashString(this.model_.getSearchText(), page); | 555 var hashString = PageState.getHashString(this.model_.getSearchText(), page); |
| 556 return '<a href="chrome-ui://history/' + | 556 return '<a href="chrome://history/' + |
| 557 (hashString ? '#' + hashString : '') + | 557 (hashString ? '#' + hashString : '') + |
| 558 '"' + | 558 '"' + |
| 559 'class="page-navigation"' + | 559 'class="page-navigation"' + |
| 560 'onclick="setPage(' + page + '); return false;"' + | 560 'onclick="setPage(' + page + '); return false;"' + |
| 561 '>' + name + '</a>'; | 561 '>' + name + '</a>'; |
| 562 } | 562 } |
| 563 | 563 |
| 564 /////////////////////////////////////////////////////////////////////////////// | 564 /////////////////////////////////////////////////////////////////////////////// |
| 565 // State object: | 565 // State object: |
| 566 /** | 566 /** |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 878 <span id="searchresultsfor" jscontent="searchresultsfor">Search results for '%
s'</span> | 878 <span id="searchresultsfor" jscontent="searchresultsfor">Search results for '%
s'</span> |
| 879 <span id="history" jscontent="history">History</span> | 879 <span id="history" jscontent="history">History</span> |
| 880 <span id="cont" jscontent="cont">(cont.)</span> | 880 <span id="cont" jscontent="cont">(cont.)</span> |
| 881 <span id="noresults" jscontent="noresults">No results</span> | 881 <span id="noresults" jscontent="noresults">No results</span> |
| 882 <span id="noitems" jscontent="noitems">No items</span> | 882 <span id="noitems" jscontent="noitems">No items</span> |
| 883 <span id="deleteday" jscontent="deleteday">Delete history for this day</span> | 883 <span id="deleteday" jscontent="deleteday">Delete history for this day</span> |
| 884 <span id="deletedaywarning" jscontent="deletedaywarning">Are you sure you want
to delete this day?</span> | 884 <span id="deletedaywarning" jscontent="deletedaywarning">Are you sure you want
to delete this day?</span> |
| 885 </div> | 885 </div> |
| 886 </body> | 886 </body> |
| 887 </html> | 887 </html> |
| OLD | NEW |