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/downloads/downloads.js

Issue 492323003: downloads: Don't navigate to /# when a user clicks various links on (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/webui/downloads_ui_browsertest.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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.
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/downloads_ui_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698