提交 113f2c4a 编写于 作者: M Martin Zikmund

chore: Enable Skia build

上级 4e38a24a
......@@ -48,7 +48,7 @@ namespace Windows.UI.Xaml.Controls
#endif
// Skipping already declared property CanGoBack
// Skipping already declared property CanGoForward
#if false || false || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || false
#if false
[global::Uno.NotImplemented("NET461", "__WASM__", "__SKIA__", "__NETSTD_REFERENCE__")]
public string DocumentTitle
{
......@@ -139,7 +139,7 @@ namespace Windows.UI.Xaml.Controls
typeof(global::Windows.UI.Xaml.Controls.WebView),
new Windows.UI.Xaml.FrameworkPropertyMetadata(default(global::Windows.UI.Color)));
#endif
#if false || false || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || false
#if false
[global::Uno.NotImplemented("NET461", "__WASM__", "__SKIA__", "__NETSTD_REFERENCE__")]
public static global::Windows.UI.Xaml.DependencyProperty DocumentTitleProperty { get; } =
Windows.UI.Xaml.DependencyProperty.Register(
......
......@@ -11,7 +11,6 @@ using System.Globalization;
using Windows.Foundation;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Foundation;
namespace Microsoft.Web.WebView2.Core;
......
#if !__ANDROID__ && !__IOS__ && !__MACOS__ && !__MACCATALYST__
#nullable enable
using Uno.UI.Xaml.Controls;
namespace Microsoft.Web.WebView2.Core;
public partial class CoreWebView2
{
internal INativeWebView? GetNativeWebViewFromTemplate() => null;
}
#endif
......@@ -51,16 +51,20 @@ public partial class WebView : Control
DependencyProperty.Register(nameof(Source), typeof(Uri), typeof(WebView), new FrameworkPropertyMetadata(null,
(s, e) => ((WebView)s)?.CoreWebView2.Navigate(((Uri)e.NewValue)?.ToString())));
#if __ANDROID__ || __IOS__ || __MACOS__
/// <summary>
/// Gets the current web page's title.
/// </summary>
public string DocumentTitle
{
get => (string)GetValue(DocumentTitleProperty);
private set => SetValue(DocumentTitleProperty, value);
}
/// <summary>
/// Identifies the DocumentTitle dependency property.
/// </summary>
public static DependencyProperty DocumentTitleProperty { get; } =
DependencyProperty.Register(nameof(DocumentTitle), typeof(string), typeof(WebView), new FrameworkPropertyMetadata(null));
#endif
public bool IsScrollEnabled
{
......
......@@ -16,7 +16,7 @@ using System.Linq;
namespace Windows.UI.Xaml.Controls;
#if __WASM__ || __SKIA__
[NotImplemented]
[Uno.NotImplemented]
#endif
public partial class WebView : Control, IWebView
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册