Skip to content

Commit

Permalink
[Blazor][Desktop] Fixes nullable annotations on the public API baseli…
Browse files Browse the repository at this point in the history
…nes (#31073)

* Fix nullable annotations
* Fix APIs
* Add missing API baseline file
  • Loading branch information
javiercn authored Mar 19, 2021
1 parent 918172f commit 6db1f6e
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 42 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@

#nullable enable
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
Microsoft.AspNetCore.Components.WebView.WebView2.IWebView2Wrapper
#nullable enable
Microsoft.AspNetCore.Components.WebView.WebView2.IWebView2Wrapper
Microsoft.AspNetCore.Components.WebView.WebView2.IWebView2Wrapper.AcceleratorKeyPressed -> System.EventHandler<Microsoft.Web.WebView2.Core.CoreWebView2AcceleratorKeyPressedEventArgs>
Microsoft.AspNetCore.Components.WebView.WebView2.IWebView2Wrapper.CoreWebView2.get -> Microsoft.Web.WebView2.Core.CoreWebView2
Microsoft.AspNetCore.Components.WebView.WebView2.IWebView2Wrapper.EnsureCoreWebView2Async(Microsoft.Web.WebView2.Core.CoreWebView2Environment environment = null) -> System.Threading.Tasks.Task
Microsoft.AspNetCore.Components.WebView.WebView2.IWebView2Wrapper.Source.get -> System.Uri
Microsoft.AspNetCore.Components.WebView.WebView2.IWebView2Wrapper.Source.set -> void
~Microsoft.AspNetCore.Components.WebView.WebView2.IWebView2Wrapper.CoreWebView2.get -> Microsoft.Web.WebView2.Core.CoreWebView2
~Microsoft.AspNetCore.Components.WebView.WebView2.IWebView2Wrapper.EnsureCoreWebView2Async(Microsoft.Web.WebView2.Core.CoreWebView2Environment environment = null) -> System.Threading.Tasks.Task
~Microsoft.AspNetCore.Components.WebView.WebView2.IWebView2Wrapper.Source.get -> System.Uri
~Microsoft.AspNetCore.Components.WebView.WebView2.IWebView2Wrapper.Source.set -> void
Microsoft.AspNetCore.Components.WebView.WebView2.WebView2WebViewManager
Microsoft.AspNetCore.Components.WebView.WebView2.WebView2WebViewManager.WebView2WebViewManager(Microsoft.AspNetCore.Components.WebView.WebView2.IWebView2Wrapper webview, System.IServiceProvider services, Microsoft.AspNetCore.Components.Dispatcher dispatcher, Microsoft.Extensions.FileProviders.IFileProvider fileProvider, string hostPageRelativePath) -> void
override Microsoft.AspNetCore.Components.WebView.WebView2.WebView2WebViewManager.NavigateCore(System.Uri absoluteUri) -> void
override Microsoft.AspNetCore.Components.WebView.WebView2.WebView2WebViewManager.SendMessage(string message) -> void
~Microsoft.AspNetCore.Components.WebView.WebView2.WebView2WebViewManager.WebView2WebViewManager(Microsoft.AspNetCore.Components.WebView.WebView2.IWebView2Wrapper webview, System.IServiceProvider services, Microsoft.AspNetCore.Components.Dispatcher dispatcher, Microsoft.Extensions.FileProviders.IFileProvider fileProvider, string hostPageRelativePath) -> void
~override Microsoft.AspNetCore.Components.WebView.WebView2.WebView2WebViewManager.NavigateCore(System.Uri absoluteUri) -> void
~override Microsoft.AspNetCore.Components.WebView.WebView2.WebView2WebViewManager.SendMessage(string message) -> void
Original file line number Diff line number Diff line change
@@ -1 +1 @@

#nullable enable
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView
#nullable enable
Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView
Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView.BlazorWebView() -> void
Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView.HostPage.get -> string
Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView.HostPage.set -> void
Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView.RootComponents.get -> System.Collections.ObjectModel.ObservableCollection<Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponent>
Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView.Services.get -> System.IServiceProvider
Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView.Services.set -> void
Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView.WebView.get -> Microsoft.Web.WebView2.WinForms.WebView2
~Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView.HostPage.get -> string
~Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView.HostPage.set -> void
~Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView.RootComponents.get -> System.Collections.ObjectModel.ObservableCollection<Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponent>
~Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView.Services.get -> System.IServiceProvider
~Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView.Services.set -> void
~Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView.WebView.get -> Microsoft.Web.WebView2.WinForms.WebView2
Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponent
Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponent.ComponentType.get -> System.Type
Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponent.Parameters.get -> System.Collections.Generic.IDictionary<string, object>
Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponent.RootComponent(string selector, System.Type componentType, System.Collections.Generic.IDictionary<string, object> parameters) -> void
Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponent.Selector.get -> string
~Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponent.ComponentType.get -> System.Type
~Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponent.Parameters.get -> System.Collections.Generic.IDictionary<string, object>
~Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponent.RootComponent(string selector, System.Type componentType, System.Collections.Generic.IDictionary<string, object> parameters) -> void
~Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponent.Selector.get -> string
Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponentCollectionExtensions
static Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponentCollectionExtensions.Add<TComponent>(this System.Collections.ObjectModel.ObservableCollection<Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponent> components, string selector, System.Collections.Generic.IDictionary<string, object> parameters = null) -> void
static Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponentCollectionExtensions.Remove(this System.Collections.ObjectModel.ObservableCollection<Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponent> components, string selector) -> void
~static Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponentCollectionExtensions.Add<TComponent>(this System.Collections.ObjectModel.ObservableCollection<Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponent> components, string selector, System.Collections.Generic.IDictionary<string, object> parameters = null) -> void
~static Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponentCollectionExtensions.Remove(this System.Collections.ObjectModel.ObservableCollection<Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponent> components, string selector) -> void
Original file line number Diff line number Diff line change
@@ -1 +1 @@

#nullable enable
31 changes: 16 additions & 15 deletions src/Components/WebView/Platforms/Wpf/src/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView
#nullable enable
Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView
Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.BlazorWebView() -> void
Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.Dispose() -> void
Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.HostPage.get -> string
Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.HostPage.set -> void
Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.RootComponents.get -> System.Collections.ObjectModel.ObservableCollection<Microsoft.AspNetCore.Components.WebView.Wpf.RootComponent>
Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.Services.get -> System.IServiceProvider
Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.Services.set -> void
~Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.HostPage.get -> string
~Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.HostPage.set -> void
~Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.RootComponents.get -> System.Collections.ObjectModel.ObservableCollection<Microsoft.AspNetCore.Components.WebView.Wpf.RootComponent>
~Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.Services.get -> System.IServiceProvider
~Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.Services.set -> void
Microsoft.AspNetCore.Components.WebView.Wpf.RootComponent
Microsoft.AspNetCore.Components.WebView.Wpf.RootComponent.ComponentType.get -> System.Type
Microsoft.AspNetCore.Components.WebView.Wpf.RootComponent.ComponentType.set -> void
Microsoft.AspNetCore.Components.WebView.Wpf.RootComponent.Parameters.get -> System.Collections.Generic.IDictionary<string, object>
Microsoft.AspNetCore.Components.WebView.Wpf.RootComponent.Parameters.set -> void
~Microsoft.AspNetCore.Components.WebView.Wpf.RootComponent.ComponentType.get -> System.Type
~Microsoft.AspNetCore.Components.WebView.Wpf.RootComponent.ComponentType.set -> void
~Microsoft.AspNetCore.Components.WebView.Wpf.RootComponent.Parameters.get -> System.Collections.Generic.IDictionary<string, object>
~Microsoft.AspNetCore.Components.WebView.Wpf.RootComponent.Parameters.set -> void
Microsoft.AspNetCore.Components.WebView.Wpf.RootComponent.RootComponent() -> void
Microsoft.AspNetCore.Components.WebView.Wpf.RootComponent.Selector.get -> string
Microsoft.AspNetCore.Components.WebView.Wpf.RootComponent.Selector.set -> void
~Microsoft.AspNetCore.Components.WebView.Wpf.RootComponent.Selector.get -> string
~Microsoft.AspNetCore.Components.WebView.Wpf.RootComponent.Selector.set -> void
override Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.OnApplyTemplate() -> void
static readonly Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.HostPageProperty -> System.Windows.DependencyProperty
static readonly Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.RootComponentsProperty -> System.Windows.DependencyProperty
static readonly Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.ServicesProperty -> System.Windows.DependencyProperty
~static readonly Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.HostPageProperty -> System.Windows.DependencyProperty
~static readonly Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.RootComponentsProperty -> System.Windows.DependencyProperty
~static readonly Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.ServicesProperty -> System.Windows.DependencyProperty
2 changes: 1 addition & 1 deletion src/Components/WebView/WebView/src/PublicAPI.Shipped.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#nullable enable
#nullable enable
5 changes: 3 additions & 2 deletions src/Components/WebView/WebView/src/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Microsoft.AspNetCore.Components.WebView.WebViewManager
#nullable enable
Microsoft.AspNetCore.Components.WebView.WebViewManager
Microsoft.AspNetCore.Components.WebView.WebViewManager.AddRootComponentAsync(System.Type! componentType, string! selector, Microsoft.AspNetCore.Components.ParameterView parameters) -> System.Threading.Tasks.Task!
Microsoft.AspNetCore.Components.WebView.WebViewManager.Dispatcher.get -> Microsoft.AspNetCore.Components.Dispatcher!
Microsoft.AspNetCore.Components.WebView.WebViewManager.Dispose() -> void
Expand All @@ -11,4 +12,4 @@ Microsoft.Extensions.DependencyInjection.ComponentsWebViewServiceCollectionExten
abstract Microsoft.AspNetCore.Components.WebView.WebViewManager.NavigateCore(System.Uri! absoluteUri) -> void
abstract Microsoft.AspNetCore.Components.WebView.WebViewManager.SendMessage(string! message) -> void
static Microsoft.Extensions.DependencyInjection.ComponentsWebViewServiceCollectionExtensions.AddBlazorWebView(this Microsoft.Extensions.DependencyInjection.IServiceCollection! services) -> Microsoft.Extensions.DependencyInjection.IServiceCollection!
virtual Microsoft.AspNetCore.Components.WebView.WebViewManager.Dispose(bool disposing) -> void
virtual Microsoft.AspNetCore.Components.WebView.WebViewManager.Dispose(bool disposing) -> void

0 comments on commit 6db1f6e

Please sign in to comment.