Skip to content

Commit c005e3a

Browse files
authored
Merge pull request #91 from jsuarezruiz/housekeeping/fix-codeformatting
[housekeeping] Automated PR to fix formatting errors
2 parents 3b9c3f5 + dc84ca2 commit c005e3a

File tree

229 files changed

+1951
-1820
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

229 files changed

+1951
-1820
lines changed

src/BlazorWebView/samples/BlazorGtkApp/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
using System.IO;
22
using BlazorGtkApp;
3-
using Microsoft.Extensions.DependencyInjection;
43
using Gtk;
54
using Microsoft.AspNetCore.Components.Web;
65
using Microsoft.AspNetCore.Components.WebView.Gtk;
6+
using Microsoft.Extensions.DependencyInjection;
77
using WebViewAppShared;
88

99
#pragma warning disable CS0162 // Unreachable code detected
@@ -57,4 +57,4 @@
5757
window.Add(nb);
5858
window.ShowAll();
5959

60-
Application.Run();
60+
Application.Run();

src/BlazorWebView/src/Gtk.SharedSource/GtkWebViewManager.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ protected virtual void Attach()
177177
{
178178
var jsValue = args.JsResult.JsValue;
179179

180-
if (!jsValue.IsString) return;
180+
if (!jsValue.IsString)
181+
return;
181182

182183
var s = jsValue.ToString();
183184

@@ -262,7 +263,7 @@ protected static void LaunchUriInExternalBrowser(Uri uri)
262263
launchBrowser.Start();
263264
}
264265

265-
266+
266267
public static (InputStream inputStream, int length) InputStreamNewFromStream(Stream content)
267268
{
268269
using var memoryStream = new MemoryStream();

src/BlazorWebView/src/Gtk/BlazorWebView.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,19 +112,22 @@ public IServiceProvider Services
112112
/// Allows customizing how links are opened.
113113
/// By default, opens internal links in the webview and external links in an external app.
114114
/// </summary>
115-
[Category("Action")] [Description("Allows customizing how links are opened. By default, opens internal links in the webview and external links in an external app.")]
115+
[Category("Action")]
116+
[Description("Allows customizing how links are opened. By default, opens internal links in the webview and external links in an external app.")]
116117
public EventHandler<UrlLoadingEventArgs>? UrlLoading;
117118

118119
/// <summary>
119120
/// Allows customizing the web view before it is created.
120121
/// </summary>
121-
[Category("Action")] [Description("Allows customizing the web view before it is created.")]
122+
[Category("Action")]
123+
[Description("Allows customizing the web view before it is created.")]
122124
public EventHandler<BlazorWebViewInitializingEventArgs>? BlazorWebViewInitializing;
123125

124126
/// <summary>
125127
/// Allows customizing the web view after it is created.
126128
/// </summary>
127-
[Category("Action")] [Description("Allows customizing the web view after it is created.")]
129+
[Category("Action")]
130+
[Description("Allows customizing the web view after it is created.")]
128131
public EventHandler<BlazorWebViewInitializedEventArgs>? BlazorWebViewInitialized;
129132

130133
private void OnHostPagePropertyChanged() => StartWebViewCoreIfPossible();

src/BlazorWebView/src/Gtk/WidgetCollection.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@ public WidgetCollection(Widget owner)
1616

1717
public new virtual void Add(Widget? value)
1818
{
19-
if (value != null) base.Add(value);
19+
if (value != null)
20+
base.Add(value);
2021
}
2122

2223
public new virtual void Clear() => base.Clear();
2324

2425
public new virtual void Remove(Widget? value)
2526
{
26-
if (value != null) base.Remove(value);
27+
if (value != null)
28+
base.Remove(value);
2729
}
2830

2931
public virtual void SetChildIndex(Widget child, int newIndex)

src/BlazorWebView/src/Maui/Gtk/BlazorWebViewHandler.Gtk.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private void StartWebViewCoreIfPossible()
8383
var contentRootDirFullPath = Path.GetDirectoryName(hostPageFullPath)!;
8484
var contentRootRelativePath = Path.GetRelativePath(appRootDir, contentRootDirFullPath);
8585
var hostPageRelativePath = Path.GetRelativePath(contentRootDirFullPath, hostPageFullPath);
86-
86+
8787
logger.CreatingFileProvider(contentRootDirFullPath, hostPageRelativePath);
8888

8989
var fileProvider = VirtualView.CreateFileProvider(contentRootDirFullPath);

src/BlazorWebView/src/SharedSource/WebView2WebViewManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4-
#if !WEBVIEW2_WINFORMS && !WEBVIEW2_WPF && !WEBVIEW2_MAUI &&!WEBKIT_GTK
4+
#if !WEBVIEW2_WINFORMS && !WEBVIEW2_WPF && !WEBVIEW2_MAUI && !WEBKIT_GTK
55
#error Must specify which WebView2 is targeted
66
#endif
77

src/Compatibility/ControlGallery/src/Issues.Shared/Issue2143.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ namespace Microsoft.Maui.Controls.ControlGallery.Issues
1010
{
1111
[Preserve(AllMembers = true)]
1212
[Issue(IssueTracker.Github, 2143, "Picker on windows phone", PlatformAffected.WinPhone)]
13-
#if UITEST
13+
#if UITEST
1414
[NUnit.Framework.Category(Compatibility.UITests.UITestCategories.TableView)]
15-
#endif
15+
#endif
1616
public class Issue2143 : ContentPage
1717
{
1818
public Issue2143()

src/Compatibility/ControlGallery/src/Issues.Shared/Issue22246_BZ.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ namespace Microsoft.Maui.Controls.ControlGallery.Issues
1111
{
1212
[Preserve(AllMembers = true)]
1313
[Issue(IssueTracker.Bugzilla, 22246, "Entry in Grid nested in ViewCell isn't expanding", PlatformAffected.WinPhone, NavigationBehavior.PushModalAsync)]
14-
#if UITEST
14+
#if UITEST
1515
[NUnit.Framework.Category(Compatibility.UITests.UITestCategories.TableView)]
16-
#endif
16+
#endif
1717
public class Issue22246Bz : ContentPage
1818
{
1919
public Issue22246Bz()

src/Compatibility/ControlGallery/src/Issues.Shared/Issue2615.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ namespace Microsoft.Maui.Controls.ControlGallery.Issues
66
{
77
[Preserve(AllMembers = true)]
88
[Issue(IssueTracker.Github, 2615, "iOS Cell Reuse screws up when cells are both ViewCell with different children", PlatformAffected.iOS)]
9-
#if UITEST
9+
#if UITEST
1010
[NUnit.Framework.Category(Compatibility.UITests.UITestCategories.TableView)]
11-
#endif
11+
#endif
1212
public class Issue2615 : ContentPage
1313
{
1414
public Issue2615()

src/Compatibility/ControlGallery/src/Issues.Shared/Issue5555.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ namespace Microsoft.Maui.Controls.ControlGallery.Issues
1313
{
1414
[Preserve(AllMembers = true)]
1515
[Issue(IssueTracker.Github, 5555, "Memory leak when SwitchCell or EntryCell", PlatformAffected.iOS)]
16-
#if UITEST
16+
#if UITEST
1717
[NUnit.Framework.Category(Compatibility.UITests.UITestCategories.TableView)]
18-
#endif
18+
#endif
1919
public class Issue5555 : TestContentPage
2020
{
2121
[Preserve(AllMembers = true)]

0 commit comments

Comments
 (0)