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

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: @r171249 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
Index: chrome/common/extensions/api/downloads.idl
diff --git a/chrome/common/extensions/api/downloads.idl b/chrome/common/extensions/api/downloads.idl
index 0d750e44868ebb18ac091b8ba18b3fa8ee78ce25..d9d0156af94ff6ace7e31bdb533463b5b898d30c 100644
--- a/chrome/common/extensions/api/downloads.idl
+++ b/chrome/common/extensions/api/downloads.idl
@@ -358,6 +358,14 @@ namespace downloads {
optional GetFileIconOptions options,
GetFileIconCallback callback);
+ // Open the downloaded file now if the <a
+ // href='#type-DownloadItem'>DownloadItem</a> is complete, or when it
+ // completes if it's still in progress. An <a
+ // href='#event-onChanged'>onChanged</a> event will fire when the item is
+ // opened for the first time.
+ // |downloadId|: The identifier for the download.
+ static void open(long downloadId);
+
// Erase matching <a href='#type-DownloadItem'>DownloadItems</a> from
// history
[nodoc] static void erase(DownloadQuery query,
@@ -374,9 +382,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);
};

Powered by Google App Engine
This is Rietveld 408576698