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

Side by Side Diff: chrome/browser/resources/downloads/constants.js

Issue 1710083005: Remove old downloads UI; Material Design version is now the default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove testing/ Created 4 years, 10 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 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 cr.define('downloads', function() {
6 /**
7 * Explains why a download is in DANGEROUS state.
8 * @enum {string}
9 */
10 var DangerType = {
11 NOT_DANGEROUS: 'NOT_DANGEROUS',
12 DANGEROUS_FILE: 'DANGEROUS_FILE',
13 DANGEROUS_URL: 'DANGEROUS_URL',
14 DANGEROUS_CONTENT: 'DANGEROUS_CONTENT',
15 UNCOMMON_CONTENT: 'UNCOMMON_CONTENT',
16 DANGEROUS_HOST: 'DANGEROUS_HOST',
17 POTENTIALLY_UNWANTED: 'POTENTIALLY_UNWANTED',
18 };
19
20 /**
21 * The states a download can be in. These correspond to states defined in
22 * DownloadsDOMHandler::CreateDownloadItemValue
23 * @enum {string}
24 */
25 var States = {
26 IN_PROGRESS: 'IN_PROGRESS',
27 CANCELLED: 'CANCELLED',
28 COMPLETE: 'COMPLETE',
29 PAUSED: 'PAUSED',
30 DANGEROUS: 'DANGEROUS',
31 INTERRUPTED: 'INTERRUPTED',
32 };
33
34 return {
35 DangerType: DangerType,
36 States: States,
37 };
38 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/downloads/constants.html ('k') | chrome/browser/resources/downloads/downloads.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698