Skip to content

Commit 5d48d8d

Browse files
jozefizsoamaitland
authored andcommitted
Add the DownloadItem.IsPaused property
This wraps the `CefDownloadItem::IsPaused()` from CEF 144 release. See the `cef.sdk\cef\include\cef_download_item.h` file.
1 parent f8ac2d9 commit 5d48d8d

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

CefSharp.Core.Runtime/Internals/TypeConversion.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ namespace CefSharp
5858
item->IsInProgress = downloadItem->IsInProgress();
5959
item->IsComplete = downloadItem->IsComplete();
6060
item->IsCancelled = downloadItem->IsCanceled();
61+
item->IsPaused = downloadItem->IsPaused();
6162
item->CurrentSpeed = downloadItem->GetCurrentSpeed();
6263
item->PercentComplete = downloadItem->GetPercentComplete();
6364
item->TotalBytes = downloadItem->GetTotalBytes();

CefSharp/DownloadItem.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ public sealed class DownloadItem
3131
/// </summary>
3232
public bool IsCancelled { get; set; }
3333

34+
/// <summary>
35+
/// Returns true if the download has been paused.
36+
/// </summary>
37+
public bool IsPaused { get; set; }
38+
3439
/// <summary>
3540
/// Returns a simple speed estimate in bytes/s.
3641
/// </summary>

0 commit comments

Comments
 (0)