| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 /** | 5 /** |
| 6 * @fileoverview Externs for objects sent from C++ to JS for chrome://downloads. | 6 * @fileoverview Externs for objects sent from C++ to JS for chrome://downloads. |
| 7 * @externs | 7 * @externs |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 var downloads = {}; | 10 var downloads = {}; |
| 11 | 11 |
| 12 /** | 12 /** |
| 13 * The type of the download object. The definition is based on | 13 * The type of the download object. The definition is based on |
| 14 * chrome/browser/ui/webui/downloads_dom_handler.cc:CreateDownloadItemValue() | 14 * MdDownloadsDOMHandler::CreateDownloadItemValue() |
| 15 * @typedef {{by_ext_id: string, | 15 * @typedef {{by_ext_id: string, |
| 16 * by_ext_name: string, | 16 * by_ext_name: string, |
| 17 * danger_type: string, | 17 * danger_type: string, |
| 18 * date_string: string, | 18 * date_string: string, |
| 19 * file_externally_removed: boolean, | 19 * file_externally_removed: boolean, |
| 20 * file_name: string, | 20 * file_name: string, |
| 21 * file_path: string, | 21 * file_path: string, |
| 22 * file_url: string, | 22 * file_url: string, |
| 23 * id: string, | 23 * id: string, |
| 24 * last_reason_text: string, | 24 * last_reason_text: string, |
| 25 * otr: boolean, | 25 * otr: boolean, |
| 26 * percent: number, | 26 * percent: number, |
| 27 * progress_status_text: string, | 27 * progress_status_text: string, |
| 28 * resume: boolean, | 28 * resume: boolean, |
| 29 * retry: boolean, | 29 * retry: boolean, |
| 30 * since_string: string, | 30 * since_string: string, |
| 31 * started: number, | 31 * started: number, |
| 32 * state: string, | 32 * state: string, |
| 33 * total: number, | 33 * total: number, |
| 34 * url: string}} | 34 * url: string}} |
| 35 */ | 35 */ |
| 36 downloads.Data; | 36 downloads.Data; |
| OLD | NEW |