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

Side by Side Diff: chrome/browser/resources/about_memory.js

Issue 11746012: [webui] whittle down a few more uses of old-style templateData (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move include Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 function reload() { 5 function reload() {
6 if (document.getElementById('helpTooltip')) 6 if (document.getElementById('helpTooltip'))
7 return; 7 return;
8 history.go(0); 8 history.go(0);
9 } 9 }
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 var helpEls = document.getElementsByClassName('help'); 67 var helpEls = document.getElementsByClassName('help');
68 68
69 for (var i = 0, helpEl; helpEl = helpEls[i]; i++) { 69 for (var i = 0, helpEl; helpEl = helpEls[i]; i++) {
70 helpEl.onmouseover = handleHelpTooltipMouseOver; 70 helpEl.onmouseover = handleHelpTooltipMouseOver;
71 helpEl.onmouseout = handleHelpTooltipMouseOut; 71 helpEl.onmouseout = handleHelpTooltipMouseOut;
72 } 72 }
73 } 73 }
74 74
75 document.addEventListener('DOMContentLoaded', function () { 75 document.addEventListener('DOMContentLoaded', function () {
76 // This is the javascript code that processes the template: 76 // This is the javascript code that processes the template:
77 var input = new JsEvalContext(templateData); 77 var input = new JsEvalContext(loadTimeData.getValue('jstemplateData'));
78 var output = document.getElementById('t'); 78 var output = document.getElementById('t');
79 jstProcess(input, output); 79 jstProcess(input, output);
80 80
81 enableHelpTooltips(); 81 enableHelpTooltips();
82 }); 82 });
83 83
OLDNEW
« no previous file with comments | « chrome/browser/resources/about_memory.html ('k') | chrome/browser/resources/about_memory_linux.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698