OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // TODO(jhawkins): Use hidden instead of showInline* and display:none. | 5 // TODO(jhawkins): Use hidden instead of showInline* and display:none. |
6 | 6 |
7 /** | 7 /** |
8 * The type of the download object. The definition is based on | 8 * The type of the download object. The definition is based on |
9 * chrome/browser/ui/webui/downloads_dom_handler.cc:CreateDownloadItemValue() | 9 * chrome/browser/ui/webui/downloads_dom_handler.cc:CreateDownloadItemValue() |
10 * @typedef {{by_ext_id: (string|undefined), | 10 * @typedef {{by_ext_id: (string|undefined), |
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
975 if (Date.now() - start > 50) { | 975 if (Date.now() - start > 50) { |
976 clearTimeout(resultsTimeout); | 976 clearTimeout(resultsTimeout); |
977 resultsTimeout = setTimeout(tryDownloadUpdatedPeriodically, 5); | 977 resultsTimeout = setTimeout(tryDownloadUpdatedPeriodically, 5); |
978 break; | 978 break; |
979 } | 979 } |
980 } | 980 } |
981 } | 981 } |
982 | 982 |
983 // Add handlers to HTML elements. | 983 // Add handlers to HTML elements. |
984 window.addEventListener('DOMContentLoaded', load); | 984 window.addEventListener('DOMContentLoaded', load); |
| 985 |
| 986 preventDefaultOnPoundLinkClicks(); // From util.js. |
OLD | NEW |