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

Unified Diff: chrome/common/extensions/api/downloads.idl

Issue 10836003: chrome.downloads.open() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: @r171777 Created 8 years 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
« no previous file with comments | « chrome/browser/extensions/api/downloads/downloads_api_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/downloads.idl
diff --git a/chrome/common/extensions/api/downloads.idl b/chrome/common/extensions/api/downloads.idl
index 4782e45fcf8282b01068212f8270e606e553e347..c3e21828a57542761b6cbf7864f79f0447dcb01d 100644
--- a/chrome/common/extensions/api/downloads.idl
+++ b/chrome/common/extensions/api/downloads.idl
@@ -358,8 +358,14 @@ namespace downloads {
optional GetFileIconOptions options,
GetFileIconCallback callback);
- // Erase matching $ref:DownloadItem from
- // history
+ // Open the downloaded file now if the $ref:DownloadItem is complete;
+ // returns an error through $ref:runtime.lastError otherwise. An
+ // $ref:onChanged event will fire when the item is opened for the first
+ // time.
+ // |downloadId|: The identifier for the downloaded file.
+ static void open(long downloadId);
+
+ // Erase matching $ref:DownloadItem from history
[nodoc] static void erase(DownloadQuery query,
optional EraseCallback callback);
@@ -374,9 +380,6 @@ namespace downloads {
// Show the downloaded file in its folder in a file manager.
[nodoc] static void show(long downloadId);
- // Open the downloaded file.
- [nodoc] static void open(long downloadId);
-
// Initiate dragging the file to another application.
[nodoc] static void drag(long downloadId);
};
« no previous file with comments | « chrome/browser/extensions/api/downloads/downloads_api_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698