Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 0 additions & 63 deletions src/ElectronNET.API/API/WebContents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -315,39 +315,6 @@ public void InsertCSS(bool isBrowserWindow, string path)
BridgeConnector.Socket.Emit("webContents-insertCSS", Id, isBrowserWindow, path);
}

/// <summary>
/// A number property that determines the zoom level for this web contents.
///The original size is 0 and each increment above or below represents zooming 20% larger or smaller to default limits of 300% and 50% of original size, respectively.
///The formula for this is scale := 1.2 ^ level.
/// </summary>
public int ZoomLevel
{
get
{
return Task.Run(() => this.InvokeAsync<int>()).Result;
}
set
{
BridgeConnector.Socket.Emit("webContents-zoomLevel-set", Id, value);
}
}

/// <summary>
/// A number property that determines the zoom factor for this web contents.
///The zoom factor is the zoom percent divided by 100, so 300% = 3.0.
/// </summary>
public double ZoomFactor
{
get
{
return Task.Run(() => this.InvokeAsync<double>()).Result;
}
set
{
BridgeConnector.Socket.Emit("webContents-zoomFactor-set", Id, value);
}
}

/// <summary>
/// Returns number - The current zoom factor.
/// </summary>
Expand Down Expand Up @@ -396,21 +363,6 @@ public Task SetVisualZoomLevelLimitsAsync(int minimumLevel, int maximumLevel)
return tcs.Task;
}

/// <summary>
/// A boolean property that determines whether this page is muted.
/// </summary>
public bool AudioMuted
{
get
{
return Task.Run(() => this.InvokeAsync<bool>()).Result;
}
set
{
BridgeConnector.Socket.Emit("webContents-audioMuted-set", Id, value);
}
}

/// <summary>
/// Returns boolean - Whether this page has been muted.
/// </summary>
Expand All @@ -432,21 +384,6 @@ public void SetAudioMuted(bool muted)
BridgeConnector.Socket.Emit("webContents-setAudioMuted", Id, muted);
}

/// <summary>
/// A string property that determines the user agent for this web page.
/// </summary>
public string UserAgent
{
get
{
return Task.Run(() => this.InvokeAsync<string>()).Result;
}
set
{
BridgeConnector.Socket.Emit("webContents-userAgent-set", Id, value);
}
}

/// <summary>
/// Returns string - The user agent for this web page.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/ElectronNET.Host/ElectronNET.Host.esproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.VisualStudio.JavaScript.Sdk/1.0.3864779">
<Project Sdk="Microsoft.VisualStudio.JavaScript.Sdk/1.0.4110890">
<ItemGroup>
<None Include=".vscode\tasks.json" />
</ItemGroup>
Expand Down
32 changes: 0 additions & 32 deletions src/ElectronNET.Host/api/webContents.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading