OLD | NEW |
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 Loading... |
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 Loading... |
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); |
OLD | NEW |