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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // 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.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 /**
6 * @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.
7 * @externs
8 */
9
10 var downloads = {};
11
12 /**
13 * The type of the download object. The definition is based on
14 * chrome/browser/ui/webui/downloads_dom_handler.cc:CreateDownloadItemValue()
15 * @typedef {{by_ext_id: (string|undefined),
16 * by_ext_name: (string|undefined),
17 * danger_type: (string|undefined),
18 * date_string: string,
19 * file_externally_removed: boolean,
20 * file_name: string,
21 * file_path: string,
22 * file_url: string,
23 * id: string,
24 * last_reason_text: (string|undefined),
25 * otr: boolean,
26 * percent: (number|undefined),
27 * progress_status_text: (string|undefined),
28 * received: (number|undefined),
29 * resume: boolean,
30 * retry: boolean,
31 * since_string: string,
32 * started: number,
33 * state: string,
34 * total: number,
35 * url: string}}
36 */
37 downloads.Data;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698