mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-09 13:47:00 +00:00
removing properties
This commit is contained in:
@@ -315,39 +315,6 @@ public class WebContents : ApiBase
|
||||
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>
|
||||
@@ -396,21 +363,6 @@ public class WebContents : ApiBase
|
||||
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>
|
||||
@@ -432,21 +384,6 @@ public class WebContents : ApiBase
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user