Skip to content

Commit

Permalink
Fix typos (#3305)
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHubPang authored Dec 6, 2020
1 parent a84d6e0 commit 728420c
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion CefSharp.OffScreen/ChromiumWebBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
/// </summary>
/// <param name="ignoreExistingScreenshot">Ignore existing bitmap (if any) and return the next avaliable bitmap</param>
/// <param name="ignoreExistingScreenshot">Ignore existing bitmap (if any) and return the next available bitmap</param>
/// <param name="blend">Choose which bitmap to retrieve, choose <see cref="PopupBlending.Blend"/> for a merged bitmap.</param>
/// <returns>Task&lt;Bitmap&gt;.</returns>
public Task<Bitmap> ScreenshotAsync(bool ignoreExistingScreenshot = false, PopupBlending blend = PopupBlending.Main)
Expand Down
8 changes: 4 additions & 4 deletions CefSharp.WinForms/ChromiumWebBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public partial class ChromiumWebBrowser : Control, IWebBrowserInternal, IWinForm
/// </summary>
private bool initialized;
/// <summary>
/// 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)
/// </summary>
private bool browserCreated;
Expand Down Expand Up @@ -145,7 +145,7 @@ public IBrowserSettings BrowserSettings
}
/// <summary>
/// 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 <see cref="ChromiumWebBrowser"/> instance.
/// https://bitbucket.org/chromiumembedded/cef/issues/1856/branch-2526-cef-activates-browser-window
/// </summary>
Expand Down Expand Up @@ -332,7 +332,7 @@ public ChromiumWebBrowser(string address, IRequestContext requestContext = null)

/// <summary>
/// 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
/// </summary>
[MethodImpl(MethodImplOptions.NoInlining)]
Expand Down Expand Up @@ -395,7 +395,7 @@ protected override void Dispose(bool disposing)
/// </summary>
/// <param name="disposing"><see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
/// <remarks>
/// 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.
/// </remarks>
[MethodImpl(MethodImplOptions.NoInlining)]
private void InternalDispose(bool disposing)
Expand Down
24 changes: 12 additions & 12 deletions CefSharp.Wpf/ChromiumWebBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public partial class ChromiumWebBrowser : Control, IRenderWebBrowser, IWpfWebBro
/// </summary>
private readonly string initialAddress;
/// <summary>
/// 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)
/// </summary>
private bool browserCreated;
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -401,7 +401,7 @@ private static void OnApplicationExit(object sender, ExitEventArgs e)

/// <summary>
/// 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.
/// </summary>
[MethodImpl(MethodImplOptions.NoInlining)]
private static void CefPreShutdown()
Expand All @@ -411,7 +411,7 @@ private static void CefPreShutdown()

/// <summary>
/// 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.
/// </summary>
[MethodImpl(MethodImplOptions.NoInlining)]
private static void CefShutdown()
Expand All @@ -437,10 +437,10 @@ public ChromiumWebBrowser()
/// Initializes a new instance of the <see cref="ChromiumWebBrowser"/> 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 <paramref name="size"/>.
/// CEF requires posative values for <see cref="Size.Width"/> and <see cref="Size.Height"/>,
/// CEF requires positive values for <see cref="Size.Width"/> and <see cref="Size.Height"/>,
/// if values less than 1 are specified then the default value of 1 will be used instead.
/// You can subscribe to the <see cref="LoadingStateChanged"/> event and attach the browser
/// to it's parent control when Loading is complete (<see cref="LoadingStateChangedEventArgs.IsLoading"/> is false).
/// to its parent control when Loading is complete (<see cref="LoadingStateChangedEventArgs.IsLoading"/> is false).
/// </summary>
/// <param name="parentWindowHwndSource">HwndSource for the Window that will host the browser.</param>
/// <param name="initialAddress">address to be loaded when the browser is created.</param>
Expand Down Expand Up @@ -488,7 +488,7 @@ public ChromiumWebBrowser(string initialAddress)
/// <summary>
/// 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.
/// </summary>
[MethodImpl(MethodImplOptions.NoInlining)]
private void NoInliningConstructor()
Expand Down Expand Up @@ -604,7 +604,7 @@ protected virtual void Dispose(bool disposing)
/// </summary>
/// <param name="disposing"><see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
/// <remarks>
/// 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.
/// </remarks>
[MethodImpl(MethodImplOptions.NoInlining)]
private void InternalDispose(bool disposing)
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -2420,7 +2420,7 @@ private void ZoomReset()
/// </summary>
/// <param name="newDpi">new DPI</param>
/// <remarks>.Net 4.6.2 adds HwndSource.DpiChanged which could be used to automatically
/// handle DPI change, unforunately we still target .Net 4.5.2</remarks>
/// handle DPI change, unfortunately we still target .Net 4.5.2</remarks>
public virtual void NotifyDpiChange(float newDpi)
{
//Do nothing
Expand Down
2 changes: 1 addition & 1 deletion CefSharp/Enums/ReferrerPolicy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public enum ReferrerPolicy
ClearReferrerOnTransitionFromSecureToInsecure,

/// <summary>
/// Default which is equivilent to <see cref="ClearReferrerOnTransitionFromSecureToInsecure"/>
/// Default which is equivalent to <see cref="ClearReferrerOnTransitionFromSecureToInsecure"/>
/// </summary>
Default = ClearReferrerOnTransitionFromSecureToInsecure,

Expand Down
2 changes: 1 addition & 1 deletion CefSharp/Event/JavascriptBindingCompleteEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class JavascriptBindingCompleteEventArgs : EventArgs

/// <summary>
/// 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.
/// </summary>
public bool AlreadyBound { get; private set; }

Expand Down

0 comments on commit 728420c

Please sign in to comment.