[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebView_New_3")]
public static extern global::System.IntPtr New3(int jarg1, string[] jarg2);
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebView_New_4")]
+ public static extern global::System.IntPtr New4(int argc, string[] argv, int type);
+
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebView_GetContext")]
public static extern global::System.IntPtr GetWebContext();
}
}
- private static readonly WebContext context = new WebContext(Interop.WebView.GetWebContext(), false);
- private static readonly WebCookieManager cookieManager = new WebCookieManager(Interop.WebView.GetWebCookieManager(), false);
-
private Color contentBackgroundColor;
private bool tilesClearedWhenHidden;
private float tileCoverAreaMultiplier;
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Creates a WebView with an args list and WebEngine type.
+ /// </summary>
+ /// <param name="args">Arguments passed into web engine. The first value of array must be program's name.</param>
+ /// <param name="webEngineType">Can select the plugin of Web Engine type. Chromium or LWE.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public WebView(string[] args, WebEngineType webEngineType) : this(Interop.WebView.New4(args?.Length ?? 0, args, (int)webEngineType), true)
+ {
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
/// <summary>
/// Copy constructor.
/// </summary>
All = Default | NodeData | ImageData,
}
+ /// <summary>
+ /// WebEngine type which can be set by a specific constructor of this WebView.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public enum WebEngineType
+ {
+ /// <summary>
+ /// Chromium Web Engine type.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ Chromium = 0,
+
+ /// <summary>
+ /// LWE, Light Web Engine type.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ LWE = 1,
+ }
+
/// <summary>
/// Context.
/// </summary>