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

Side by Side Diff: chrome/browser/resources/md_downloads/crisper.js

Issue 2224003003: Vulcanize MD History to improve page-load performance (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 /** 5 /**
6 * @fileoverview Assertion support. 6 * @fileoverview Assertion support.
7 */ 7 */
8 8
9 /** 9 /**
10 * Verify |condition| is truthy and return |condition| if so. 10 * Verify |condition| is truthy and return |condition| if so.
(...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 // Export 1143 // Export
1144 return { 1144 return {
1145 Command: Command, 1145 Command: Command,
1146 CanExecuteEvent: CanExecuteEvent 1146 CanExecuteEvent: CanExecuteEvent
1147 }; 1147 };
1148 }); 1148 });
1149 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1149 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
1150 // Use of this source code is governed by a BSD-style license that can be 1150 // Use of this source code is governed by a BSD-style license that can be
1151 // found in the LICENSE file. 1151 // found in the LICENSE file.
1152 1152
1153 // <include src="../../../../ui/webui/resources/js/assert.js"> 1153 // <include src-disabled="assert.js">
1154 1154
1155 /** 1155 /**
1156 * Alias for document.getElementById. Found elements must be HTMLElements. 1156 * Alias for document.getElementById. Found elements must be HTMLElements.
1157 * @param {string} id The ID of the element to find. 1157 * @param {string} id The ID of the element to find.
1158 * @return {HTMLElement} The found element or null if not found. 1158 * @return {HTMLElement} The found element or null if not found.
1159 */ 1159 */
1160 function $(id) { 1160 function $(id) {
1161 var el = document.getElementById(id); 1161 var el = document.getElementById(id);
1162 return el ? assertInstanceof(el, HTMLElement) : null; 1162 return el ? assertInstanceof(el, HTMLElement) : null;
1163 } 1163 }
(...skipping 10767 matching lines...) Expand 10 before | Expand all | Expand 10 after
11931 Manager.get().updateItem_(index, data); 11931 Manager.get().updateItem_(index, data);
11932 }; 11932 };
11933 11933
11934 return {Manager: Manager}; 11934 return {Manager: Manager};
11935 }); 11935 });
11936 // Copyright 2015 The Chromium Authors. All rights reserved. 11936 // Copyright 2015 The Chromium Authors. All rights reserved.
11937 // Use of this source code is governed by a BSD-style license that can be 11937 // Use of this source code is governed by a BSD-style license that can be
11938 // found in the LICENSE file. 11938 // found in the LICENSE file.
11939 11939
11940 window.addEventListener('load', downloads.Manager.onLoad); 11940 window.addEventListener('load', downloads.Manager.onLoad);
OLDNEW
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/resources/md_downloads/vulcanize.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698