From 728420ca7fb79b186cf3b983a0a78223aca0d0ae Mon Sep 17 00:00:00 2001 From: GitHubPang <61439577+GitHubPang@users.noreply.github.com> Date: Sun, 6 Dec 2020 09:24:14 +0800 Subject: [PATCH] Fix typos (#3305) --- CefSharp.OffScreen/ChromiumWebBrowser.cs | 2 +- CefSharp.WinForms/ChromiumWebBrowser.cs | 8 +++---- CefSharp.Wpf/ChromiumWebBrowser.cs | 24 +++++++++---------- CefSharp/Enums/ReferrerPolicy.cs | 2 +- .../JavascriptBindingCompleteEventArgs.cs | 2 +- 5 files changed, 19 insertions(+), 19 deletions(-) diff --git a/CefSharp.OffScreen/ChromiumWebBrowser.cs b/CefSharp.OffScreen/ChromiumWebBrowser.cs index df26abd2b6..8e09044606 100644 --- a/CefSharp.OffScreen/ChromiumWebBrowser.cs +++ b/CefSharp.OffScreen/ChromiumWebBrowser.cs @@ -399,7 +399,7 @@ public Bitmap ScreenshotOrNull(PopupBlending blend = PopupBlending.Main) /// It is your responsibility to dispose the returned Bitmap. /// The bitmap size is determined by the Size property set earlier. /// - /// Ignore existing bitmap (if any) and return the next avaliable bitmap + /// Ignore existing bitmap (if any) and return the next available bitmap /// Choose which bitmap to retrieve, choose for a merged bitmap. /// Task<Bitmap>. public Task ScreenshotAsync(bool ignoreExistingScreenshot = false, PopupBlending blend = PopupBlending.Main) diff --git a/CefSharp.WinForms/ChromiumWebBrowser.cs b/CefSharp.WinForms/ChromiumWebBrowser.cs index 6557010b48..e834d2bf4b 100644 --- a/CefSharp.WinForms/ChromiumWebBrowser.cs +++ b/CefSharp.WinForms/ChromiumWebBrowser.cs @@ -50,7 +50,7 @@ public partial class ChromiumWebBrowser : Control, IWebBrowserInternal, IWinForm /// private bool initialized; /// - /// Has the underlying Cef Browser been created (slightly different to initliazed in that + /// Has the underlying Cef Browser been created (slightly different to initialized in that /// the browser is initialized in an async fashion) /// private bool browserCreated; @@ -145,7 +145,7 @@ public IBrowserSettings BrowserSettings } /// /// Activates browser upon creation, the default value is false. Prior to version 73 - /// the default behaviour was to activate browser on creation (Equivilent of setting this property to true). + /// the default behaviour was to activate browser on creation (Equivalent of setting this property to true). /// To restore this behaviour set this value to true immediately after you create the instance. /// https://bitbucket.org/chromiumembedded/cef/issues/1856/branch-2526-cef-activates-browser-window /// @@ -332,7 +332,7 @@ public ChromiumWebBrowser(string address, IRequestContext requestContext = null) /// /// Required for designer support - this method cannot be inlined as the designer - /// will attempt to load libcef.dll and will subsiquently throw an exception. + /// will attempt to load libcef.dll and will subsequently throw an exception. /// TODO: Still not happy with this method name, need something better /// [MethodImpl(MethodImplOptions.NoInlining)] @@ -395,7 +395,7 @@ protected override void Dispose(bool disposing) /// /// to release both managed and unmanaged resources; to release only unmanaged resources. /// - /// This method cannot be inlined as the designer will attempt to load libcef.dll and will subsiquently throw an exception. + /// This method cannot be inlined as the designer will attempt to load libcef.dll and will subsequently throw an exception. /// [MethodImpl(MethodImplOptions.NoInlining)] private void InternalDispose(bool disposing) diff --git a/CefSharp.Wpf/ChromiumWebBrowser.cs b/CefSharp.Wpf/ChromiumWebBrowser.cs index bd87ef30f1..faa4780ddf 100644 --- a/CefSharp.Wpf/ChromiumWebBrowser.cs +++ b/CefSharp.Wpf/ChromiumWebBrowser.cs @@ -91,7 +91,7 @@ public partial class ChromiumWebBrowser : Control, IRenderWebBrowser, IWpfWebBro /// private readonly string initialAddress; /// - /// Has the underlying Cef Browser been created (slightly different to initliazed in that + /// Has the underlying Cef Browser been created (slightly different to initialized in that /// the browser is initialized in an async fashion) /// private bool browserCreated; @@ -336,7 +336,7 @@ static ChromiumWebBrowser() if (CefSharpSettings.ShutdownOnExit) { //Use Dispatcher.FromThread as it returns null if no dispatcher - //is avaliable for this thread. + //is available for this thread. var dispatcher = Dispatcher.FromThread(Thread.CurrentThread); if (dispatcher == null) { @@ -401,7 +401,7 @@ private static void OnApplicationExit(object sender, ExitEventArgs e) /// /// Required for designer support - this method cannot be inlined as the designer - /// will attempt to load libcef.dll and will subsiquently throw an exception. + /// will attempt to load libcef.dll and will subsequently throw an exception. /// [MethodImpl(MethodImplOptions.NoInlining)] private static void CefPreShutdown() @@ -411,7 +411,7 @@ private static void CefPreShutdown() /// /// Required for designer support - this method cannot be inlined as the designer - /// will attempt to load libcef.dll and will subsiquently throw an exception. + /// will attempt to load libcef.dll and will subsequently throw an exception. /// [MethodImpl(MethodImplOptions.NoInlining)] private static void CefShutdown() @@ -437,10 +437,10 @@ public ChromiumWebBrowser() /// Initializes a new instance of the class. /// Use this constructor to load the browser before it's attached to the Visual Tree. /// The underlying CefBrowser will be created with the specified . - /// CEF requires posative values for and , + /// CEF requires positive values for and , /// if values less than 1 are specified then the default value of 1 will be used instead. /// You can subscribe to the event and attach the browser - /// to it's parent control when Loading is complete ( is false). + /// to its parent control when Loading is complete ( is false). /// /// HwndSource for the Window that will host the browser. /// address to be loaded when the browser is created. @@ -488,7 +488,7 @@ public ChromiumWebBrowser(string initialAddress) /// /// Constructor logic has been moved into this method /// Required for designer support - this method cannot be inlined as the designer - /// will attempt to load libcef.dll and will subsiquently throw an exception. + /// will attempt to load libcef.dll and will subsequently throw an exception. /// [MethodImpl(MethodImplOptions.NoInlining)] private void NoInliningConstructor() @@ -604,7 +604,7 @@ protected virtual void Dispose(bool disposing) /// /// to release both managed and unmanaged resources; to release only unmanaged resources. /// - /// This method cannot be inlined as the designer will attempt to load libcef.dll and will subsiquently throw an exception. + /// This method cannot be inlined as the designer will attempt to load libcef.dll and will subsequently throw an exception. /// [MethodImpl(MethodImplOptions.NoInlining)] private void InternalDispose(bool disposing) @@ -645,7 +645,7 @@ private void InternalDispose(bool disposing) browser = null; - // Incase we accidentally have a reference to the CEF drag data + // In case we accidentally have a reference to the CEF drag data currentDragData?.Dispose(); currentDragData = null; @@ -767,7 +767,7 @@ bool IRenderWebBrowser.GetScreenPoint(int viewX, int viewY, out int screenX, out screenX = 0; screenY = 0; - //We manually claculate the screen point as calling PointToScreen can only be called on the UI thread + //We manually calculate the screen point as calling PointToScreen can only be called on the UI thread // in a sync fashion and it's easy for users to get themselves into a deadlock. if (DpiScaleFactor > 1) { @@ -1321,7 +1321,7 @@ private static void OnTitleChanged(DependencyObject d, DependencyPropertyChanged /// The zoom level at which the browser control is currently displaying. /// Can be set to 0 to clear the zoom level (resets to default zoom level). /// NOTE: For browsers that share the same render process (same origin) this - /// property is only updated when the browser changes it's visible state. + /// property is only updated when the browser changes its visible state. /// If you have two browsers visible at the same time that share the same render /// process then zooming one will not update this property in the other (unless /// the control is hidden and then shown). You can isolate browser instances @@ -2420,7 +2420,7 @@ private void ZoomReset() /// /// new DPI /// .Net 4.6.2 adds HwndSource.DpiChanged which could be used to automatically - /// handle DPI change, unforunately we still target .Net 4.5.2 + /// handle DPI change, unfortunately we still target .Net 4.5.2 public virtual void NotifyDpiChange(float newDpi) { //Do nothing diff --git a/CefSharp/Enums/ReferrerPolicy.cs b/CefSharp/Enums/ReferrerPolicy.cs index 73c94494ef..6fbdc641ac 100644 --- a/CefSharp/Enums/ReferrerPolicy.cs +++ b/CefSharp/Enums/ReferrerPolicy.cs @@ -19,7 +19,7 @@ public enum ReferrerPolicy ClearReferrerOnTransitionFromSecureToInsecure, /// - /// Default which is equivilent to + /// Default which is equivalent to /// Default = ClearReferrerOnTransitionFromSecureToInsecure, diff --git a/CefSharp/Event/JavascriptBindingCompleteEventArgs.cs b/CefSharp/Event/JavascriptBindingCompleteEventArgs.cs index 65382939a9..2ed69789db 100644 --- a/CefSharp/Event/JavascriptBindingCompleteEventArgs.cs +++ b/CefSharp/Event/JavascriptBindingCompleteEventArgs.cs @@ -23,7 +23,7 @@ public class JavascriptBindingCompleteEventArgs : EventArgs /// /// Was the object already bound. The default is false for the first js call to - /// CefSharp.BindObjectAsync, and subsiquently true if already bound in a given context. + /// CefSharp.BindObjectAsync, and subsequently true if already bound in a given context. /// public bool AlreadyBound { get; private set; }