From 541addb5bf2320be72bcd8e9d99bfbca83945b82 Mon Sep 17 00:00:00 2001 From: Hyunjin Park Date: Fri, 16 Oct 2015 17:24:18 +0900 Subject: [PATCH] [WebAPI][Download] replace 'full path' with 'full path or virtual path' ACR: TWDAPI-67 Change-Id: I2b619d6ff0c08da9ee8cf5fbde3a3a29d28af865 Signed-off-by: Hyunjin park --- .../html/device_api/mobile/tizen/download.html | 20 ++++++++++---------- .../html/device_api/wearable/tizen/download.html | 18 +++++++++--------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/org.tizen.web.apireference/html/device_api/mobile/tizen/download.html b/org.tizen.web.apireference/html/device_api/mobile/tizen/download.html index 0fe2344..279916f 100644 --- a/org.tizen.web.apireference/html/device_api/mobile/tizen/download.html +++ b/org.tizen.web.apireference/html/device_api/mobile/tizen/download.html @@ -80,7 +80,7 @@ For more information on the Download features, see onprogress (long downloadId, unsigned long long receivedSize, unsigned long long totalSize)
void onpaused (long downloadId)
void oncanceled (long downloadId)
- void oncompleted (long downloadId, DOMString fullPath)
+ void oncompleted (long downloadId, DOMString path)
void onfailed (long downloadId, WebAPIError error) @@ -401,8 +401,8 @@ If the network is not available for downloading, the return value is -1 since Ti oncanceled: function(id) { console.log('Canceled with id: ' + id); }, - oncompleted: function(id, fullPath) { - console.log('Completed with id: ' + id + ', full path: ' + fullPath); + oncompleted: function(id, path) { + console.log('Completed with id: ' + id + ', path: ' + path); }, onfailed: function(id, error) { console.log('Failed with id: ' + id + ', error name: ' + error.name); @@ -817,7 +817,7 @@ parameters contain an invalid value. void oncanceled(long downloadId); - void oncompleted(long downloadId, DOMString fullPath); + void oncompleted(long downloadId, DOMString path); void onfailed(long downloadId, WebAPIError error); }; @@ -911,10 +911,10 @@ The interval between the onprogress() callback is platform-dependent. W
- Called when the download operation is completed with the final full path. + Called when the download operation is completed with the final full path or virtual path. If the same file name already exists in the destination, it is changed according to the platform policy and delivered in this callback.
-
void oncompleted(long downloadId, DOMString fullPath);
+
void oncompleted(long downloadId, DOMString path);
              

Since: @@ -924,12 +924,12 @@ If the same file name already exists in the destination, it is changed according

Parameters:

  • -downloadId: +downloadId: The ID of the corresponding download operation.
  • -fullPath: - The final full path for the downloaded file. +path: + The final full path or virtual path for the downloaded file.
@@ -1039,7 +1039,7 @@ DownloadNetworkType 'CELLULAR' can be available on a cellular-enabled d void oncanceled(long downloadId); - void oncompleted(long downloadId, DOMString fullPath); + void oncompleted(long downloadId, DOMString path); void onfailed(long downloadId, WebAPIError error); }; diff --git a/org.tizen.web.apireference/html/device_api/wearable/tizen/download.html b/org.tizen.web.apireference/html/device_api/wearable/tizen/download.html index 5c21702..c8ee313 100644 --- a/org.tizen.web.apireference/html/device_api/wearable/tizen/download.html +++ b/org.tizen.web.apireference/html/device_api/wearable/tizen/download.html @@ -80,7 +80,7 @@ For more information on the Download features, see onprogress (long downloadId, unsigned long long receivedSize, unsigned long long totalSize)
void onpaused (long downloadId)
void oncanceled (long downloadId)
- void oncompleted (long downloadId, DOMString fullPath)
+ void oncompleted (long downloadId, DOMString path)
void onfailed (long downloadId, WebAPIError error) @@ -401,8 +401,8 @@ If the network is not available for downloading, the return value is -1 since Ti oncanceled: function(id) { console.log('Canceled with id: ' + id); }, - oncompleted: function(id, fullPath) { - console.log('Completed with id: ' + id + ', full path: ' + fullPath); + oncompleted: function(id, path) { + console.log('Completed with id: ' + id + ', path: ' + path); }, onfailed: function(id, error) { console.log('Failed with id: ' + id + ', error name: ' + error.name); @@ -817,7 +817,7 @@ parameters contain an invalid value. void oncanceled(long downloadId); - void oncompleted(long downloadId, DOMString fullPath); + void oncompleted(long downloadId, DOMString path); void onfailed(long downloadId, WebAPIError error); }; @@ -911,10 +911,10 @@ The interval between the onprogress() callback is platform-dependent. W
- Called when the download operation is completed with the final full path. + Called when the download operation is completed with the final full path or virtual path. If the same file name already exists in the destination, it is changed according to the platform policy and delivered in this callback.
-
void oncompleted(long downloadId, DOMString fullPath);
+
void oncompleted(long downloadId, DOMString path);
              

Since: @@ -928,8 +928,8 @@ If the same file name already exists in the destination, it is changed according The ID of the corresponding download operation.

  • -fullPath: - The final full path for the downloaded file. +path: + The final full path or virtual path for the downloaded file.
  • @@ -1047,7 +1047,7 @@ DownloadNetworkType 'CELLULAR' can be available on a cellular-enabled d void oncanceled(long downloadId); - void oncompleted(long downloadId, DOMString fullPath); + void oncompleted(long downloadId, DOMString path); void onfailed(long downloadId, WebAPIError error); }; -- 2.7.4