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

Side by Side Diff: chrome/browser/resources/md_downloads/action_service.js

Issue 1240853002: Slice MD downloads into more components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile Created 5 years, 5 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 /** @interface */
Jeremy Klein 2015/07/16 18:54:53 Include description of its purpose.
Dan Beam 2015/07/18 01:02:20 Delorted.
7 function ActionService() {}
8
9 ActionService.prototype = {
10 /** @param {string} id ID of the download to cancel. */
11 cancel: function(id) { assertNotReached(); },
12
13 /** Instructs the browser to clear all finished downloads. */
14 clearAll: assertNotReached,
15
16 /** @param {string} id ID of the dangerous download to discard. */
17 discardDangerous: function(id) { assertNotReached(); },
18
19 /** @param {string} id ID of the download that the user started dragging. */
20 drag: function(id) { assertNotReached(); },
21
22 /** Opens the current local destination for downloads. */
23 openDownloadsFolder: assertNotReached,
24
25 /**
26 * @param {string} id ID of the download to run locally on the user's box.
27 */
28 openFile: function(id) { assertNotReached(); },
29
30 /** @param {string} id ID the of the progressing download to pause. */
31 pause: function(id) { assertNotReached(); },
32
33 /** @param {string} id ID of the finished download to remove. */
34 remove: function(id) { assertNotReached(); },
35
36 /** @param {string} id ID of the paused download to resume. */
37 resume: function(id) { assertNotReached(); },
38
39 /**
40 * @param {string} id ID of the dangerous download to save despite
41 * warnings.
42 */
43 saveDangerous: function(id) { assertNotReached(); },
44
45 /** @param {string} searchText What to search for. */
46 search: function(searchText) { assertNotReached(); },
47
48 /**
49 * Shows the local folder a finished download resides in.
50 * @param {string} id ID of the download to show.
51 */
52 show: function(id) { assertNotReached(); },
53 };
54
55 return {ActionService: ActionService};
56 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698