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

Unified Diff: chrome/browser/resources/downloads/downloads.html

Issue 977473002: downloads: break downloads.js into more classes/files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: thestig@ review Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/downloads/downloads.css ('k') | chrome/browser/resources/downloads/downloads.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/downloads/downloads.html
diff --git a/chrome/browser/resources/downloads/downloads.html b/chrome/browser/resources/downloads/downloads.html
index c87227ebf0ce5544ae3c954212bdc43fbb4362cc..5272cfc37f1a31fd31a1579253de093169d3d988 100644
--- a/chrome/browser/resources/downloads/downloads.html
+++ b/chrome/browser/resources/downloads/downloads.html
@@ -16,7 +16,10 @@
<script src="chrome://resources/js/event_tracker.js"></script>
<script src="chrome://resources/js/cr/ui/focus_row.js"></script>
<script src="chrome://resources/js/cr/ui/focus_grid.js"></script>
- <script src="chrome://downloads/downloads.js"></script>
+ <script src="chrome://downloads/item.js"></script>
+ <script src="chrome://downloads/item_view.js"></script>
+ <script src="chrome://downloads/focus_row.js"></script>
+ <script src="chrome://downloads/manager.js"></script>
</head>
<body>
<header>
@@ -43,6 +46,51 @@
<if expr="not is_macosx">
<command id="undo-command" shortcut="Ctrl-U+005A"><!-- Ctrl+Z -->
</if>
+ <div id="templates" hidden>
+ <div class="download">
+ <div class="date-container">
+ <div class="since"></div>
+ <div class="date"></div>
+ </div>
+ <div class="safe">
+ <div class="progress background"></div>
+ <canvas class="progress"></canvas>
+ <img class="icon" alt="">
+ <div class="title-area">
+ <a is="action-link" class="name"></a>
+ <span class="name"></span>
+ <span class="status"></span>
+ </div>
+ <div class="url-container">
+ <a class="src-url" target="_blank"></a>
+ </div>
+ <div class="controls">
+ <a is="action-link" class="show"
+ i18n-content="control_showinfolder"></a>
+ <a class="retry" i18n-content="control_retry" download></a>
+ <a is="action-link" class="pause" i18n-content="control_pause"></a>
+ <a is="action-link" class="resume" i18n-content="control_resume"></a>
+ <a is="action-link" class="remove"
+ i18n-content="control_removefromlist"></a>
+ <a is="action-link" class="cancel" i18n-content="control_cancel"></a>
+ <span class="controlled-by"
+ i18n-values=".innerHTML:control_by_extension"></span>
+ </div>
+ </div>
+ <div class="dangerous">
+ <img class="icon" alt="">
+ <div class="description"></div>
+ <div class="controls">
+ <a is="action-link" class="restore"
+ i18n-content="danger_restore"></a>
+ <a is="action-link" class="remove"
+ i18n-content="control_removefromlist"></a>
+ </div>
+ <button class="save" i18n-content="danger_save"></button>
+ <button class="discard" i18n-content="danger_discard"></button>
+ </div>
+ </div>
+ </div>
<script src="chrome://downloads/strings.js"></script>
<script src="chrome://resources/js/i18n_template2.js"></script>
</body>
« no previous file with comments | « chrome/browser/resources/downloads/downloads.css ('k') | chrome/browser/resources/downloads/downloads.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698