Home
last modified time | relevance | path

Searched refs:NWebDownloadItemState (Results 1 - 8 of 8) sorted by relevance

/base/web/webview/interfaces/kits/cj/src/
H A Dweb_download_manager_impl.cpp94 case NWebDownloadItemState::PENDING: in DownloadDidUpdate()
99 case NWebDownloadItemState::IN_PROGRESS: in DownloadDidUpdate()
100 case NWebDownloadItemState::PAUSED: in DownloadDidUpdate()
103 case NWebDownloadItemState::INTERRUPTED: in DownloadDidUpdate()
104 case NWebDownloadItemState::CANCELED: in DownloadDidUpdate()
107 case NWebDownloadItemState::COMPLETE: in DownloadDidUpdate()
110 case NWebDownloadItemState::MAX_DOWNLOAD_STATE: in DownloadDidUpdate()
H A Dwebview_ffi.cpp1536 NWebDownloadItemState state = WebDownload_GetItemState( in FfiOHOSWebDownloadItemImplPause()
1538 if (state != NWebDownloadItemState::IN_PROGRESS && in FfiOHOSWebDownloadItemImplPause()
1539 state != NWebDownloadItemState::PENDING) { in FfiOHOSWebDownloadItemImplPause()
1558 NWebDownloadItemState state = WebDownload_GetItemState( in FfiOHOSWebDownloadItemImplResume()
1560 if (state != NWebDownloadItemState::PAUSED) { in FfiOHOSWebDownloadItemImplResume()
1645 webDownloadItem->state = static_cast<NWebDownloadItemState>(webDownloadPb.state()); in FfiOHOSWebDownloadItemImplDeserialize()
/base/web/webview/interfaces/kits/napi/webviewcontroller/
H A Dweb_download_manager.cpp92 case NWebDownloadItemState::PENDING: in DownloadDidUpdate()
98 case NWebDownloadItemState::IN_PROGRESS: in DownloadDidUpdate()
99 case NWebDownloadItemState::PAUSED: in DownloadDidUpdate()
102 case NWebDownloadItemState::INTERRUPTED: in DownloadDidUpdate()
103 case NWebDownloadItemState::CANCELED: in DownloadDidUpdate()
106 case NWebDownloadItemState::COMPLETE: in DownloadDidUpdate()
109 case NWebDownloadItemState::MAX_DOWNLOAD_STATE: in DownloadDidUpdate()
H A Dweb_download_item.h52 NWebDownloadItemState state = NWebDownloadItemState::MAX_DOWNLOAD_STATE;
H A Dnapi_web_download_item.cpp560 NWebDownloadItemState state = WebDownload_GetItemStateByGuid(webDownloadItem->guid); in JS_Pause()
562 if (state != NWebDownloadItemState::IN_PROGRESS && in JS_Pause()
563 state != NWebDownloadItemState::PENDING) { in JS_Pause()
592 NWebDownloadItemState state = WebDownload_GetItemStateByGuid(webDownloadItem->guid); in JS_Resume()
594 if (state != NWebDownloadItemState::PAUSED) { in JS_Resume()
775 webDownloadItem->state = static_cast<NWebDownloadItemState>(webDownloadPb.state()); in JS_Deserialize()
850 env, static_cast<int32_t>(NWebDownloadItemState::IN_PROGRESS))), in ExportWebDownloadStateEnum()
854 env, static_cast<int32_t>(NWebDownloadItemState::COMPLETE))), in ExportWebDownloadStateEnum()
858 env, static_cast<int32_t>(NWebDownloadItemState::CANCELED))), in ExportWebDownloadStateEnum()
862 env, static_cast<int32_t>(NWebDownloadItemState in ExportWebDownloadStateEnum()
[all...]
/base/web/webview/ohos_nweb/include/
H A Dnweb_c_api.h30 enum NWebDownloadItemState { enum
76 NWEB_EXPORT NWebDownloadItemState WebDownload_GetItemState(int32_t nwebId, long downloadItemId);
78 NWEB_EXPORT NWebDownloadItemState WebDownload_GetItemStateByGuid(const std::string& guid);
106 NWEB_EXPORT NWebDownloadItemState WebDownloadItem_GetState(const NWebDownloadItem *downloadItem);
/base/web/webview/interfaces/kits/cj/include/
H A Dweb_download_item_impl.h49 NWebDownloadItemState state = NWebDownloadItemState::MAX_DOWNLOAD_STATE;
/base/web/webview/ohos_nweb/src/
H A Dnweb_helper.cpp261 extern "C" NWebDownloadItemState WebDownload_GetItemState(int32_t nwebId, long downloadItemId) in WebDownload_GetItemState()
264 return NWebDownloadItemState::MAX_DOWNLOAD_STATE; in WebDownload_GetItemState()
269 extern "C" NWebDownloadItemState WebDownload_GetItemStateByGuid(const std::string& guid) in WebDownload_GetItemStateByGuid()
272 return NWebDownloadItemState::MAX_DOWNLOAD_STATE; in WebDownload_GetItemStateByGuid()
294 extern "C" NWebDownloadItemState WebDownloadItem_GetState(const NWebDownloadItem* downloadItem) in WebDownloadItem_GetState()
297 return NWebDownloadItemState::MAX_DOWNLOAD_STATE; in WebDownloadItem_GetState()

Completed in 8 milliseconds