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

Unified Diff: chrome/browser/resources/downloads/externs.js

Issue 977473002: downloads: break downloads.js into more classes/files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove NOTREACHED for testing code 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
Index: chrome/browser/resources/downloads/externs.js
diff --git a/chrome/browser/resources/downloads/externs.js b/chrome/browser/resources/downloads/externs.js
new file mode 100644
index 0000000000000000000000000000000000000000..812c509facdf43e03b679f4e12e149f7a79003e8
--- /dev/null
+++ b/chrome/browser/resources/downloads/externs.js
@@ -0,0 +1,37 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
asanka 2015/03/10 04:15:50 2015
Dan Beam 2015/03/10 05:41:02 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+ * @fileoverview Externs for objects send from C++ to JS for chrome://downloads.
asanka 2015/03/10 04:15:50 s/send/sent/
Dan Beam 2015/03/10 05:41:02 Done.
+ * @externs
+ */
+
+var downloads = {};
+
+/**
+ * The type of the download object. The definition is based on
+ * chrome/browser/ui/webui/downloads_dom_handler.cc:CreateDownloadItemValue()
+ * @typedef {{by_ext_id: (string|undefined),
+ * by_ext_name: (string|undefined),
+ * danger_type: (string|undefined),
+ * date_string: string,
+ * file_externally_removed: boolean,
+ * file_name: string,
+ * file_path: string,
+ * file_url: string,
+ * id: string,
+ * last_reason_text: (string|undefined),
+ * otr: boolean,
+ * percent: (number|undefined),
+ * progress_status_text: (string|undefined),
+ * received: (number|undefined),
+ * resume: boolean,
+ * retry: boolean,
+ * since_string: string,
+ * started: number,
+ * state: string,
+ * total: number,
+ * url: string}}
+ */
+downloads.Data;

Powered by Google App Engine
This is Rietveld 408576698