From d28ce081ed5df4e853e46ddfd68c8f1344b4bac2 Mon Sep 17 00:00:00 2001 From: amaitland Date: Tue, 24 Jul 2018 12:13:37 +1000 Subject: [PATCH] Handler Xml Doc Cleanup - Rename webBrowser to chromiumWebBrowser --- CefSharp/Handler/IContextMenuHandler.cs | 16 +++--- CefSharp/Handler/IDialogHandler.cs | 4 +- CefSharp/Handler/IDisplayHandler.cs | 32 ++++++------ CefSharp/Handler/IDragHandler.cs | 8 +-- CefSharp/Handler/IFindHandler.cs | 4 +- CefSharp/Handler/IJsDialogHandler.cs | 18 +++---- CefSharp/Handler/IKeyboardHandler.cs | 8 +-- CefSharp/Handler/ILifeSpanHandler.cs | 16 +++--- CefSharp/Handler/ILoadHandler.cs | 16 +++--- CefSharp/Handler/IRequestHandler.cs | 68 ++++++++++++------------- 10 files changed, 95 insertions(+), 95 deletions(-) diff --git a/CefSharp/Handler/IContextMenuHandler.cs b/CefSharp/Handler/IContextMenuHandler.cs index 8c0488a54..0a77d83f2 100644 --- a/CefSharp/Handler/IContextMenuHandler.cs +++ b/CefSharp/Handler/IContextMenuHandler.cs @@ -13,12 +13,12 @@ namespace CefSharp /// Called before a context menu is displayed. The model can be cleared to show no context menu or /// modified to show a custom menu. /// - /// the ChromiumWebBrowser control + /// the ChromiumWebBrowser control /// the browser object /// The frame the request is coming from /// provides information about the context menu state /// initially contains the default context menu - void OnBeforeContextMenu(IWebBrowser browserControl, IBrowser browser, IFrame frame, IContextMenuParams parameters, + void OnBeforeContextMenu(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, IContextMenuParams parameters, IMenuModel model); /// @@ -27,37 +27,37 @@ namespace CefSharp /// user-defined command ids should be between MENU_ID_USER_FIRST and /// MENU_ID_USER_LAST. /// - /// the ChromiumWebBrowser control + /// the ChromiumWebBrowser control /// the browser object /// The frame the request is coming from /// will have the same values as what was passed to /// menu command id /// event flags /// Return true if the command was handled or false for the default implementation. - bool OnContextMenuCommand(IWebBrowser browserControl, IBrowser browser, IFrame frame, IContextMenuParams parameters, + bool OnContextMenuCommand(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, IContextMenuParams parameters, CefMenuCommand commandId, CefEventFlags eventFlags); /// /// Called when the context menu is dismissed irregardless of whether the menu /// was empty or a command was selected. /// - /// the ChromiumWebBrowser control + /// the ChromiumWebBrowser control /// the browser object /// The frame the request is coming from - void OnContextMenuDismissed(IWebBrowser browserControl, IBrowser browser, IFrame frame); + void OnContextMenuDismissed(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame); /// /// Called to allow custom display of the context menu. /// For custom display return true and execute callback either synchronously or asynchronously with the selected command Id. /// For default display return false. Do not keep references to parameters or model outside of this callback. /// - /// the ChromiumWebBrowser control + /// the ChromiumWebBrowser control /// the browser object /// The frame the request is coming from /// provides information about the context menu state /// contains the context menu model resulting from OnBeforeContextMenu /// the callback to execute for custom display /// For custom display return true and execute callback either synchronously or asynchronously with the selected command ID. - bool RunContextMenu(IWebBrowser browserControl, IBrowser browser, IFrame frame, IContextMenuParams parameters, IMenuModel model, IRunContextMenuCallback callback); + bool RunContextMenu(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, IContextMenuParams parameters, IMenuModel model, IRunContextMenuCallback callback); } } diff --git a/CefSharp/Handler/IDialogHandler.cs b/CefSharp/Handler/IDialogHandler.cs index cc6ec1bba..cfa1b1e47 100644 --- a/CefSharp/Handler/IDialogHandler.cs +++ b/CefSharp/Handler/IDialogHandler.cs @@ -22,7 +22,7 @@ namespace CefSharp /// Example URL to use for file browsing http://www.cs.tut.fi/~jkorpela/forms/file.html#example /// Simply click browse, the space next to the browse button should be populated with a randomly generated filename. /// - /// the browser control + /// the ChromiumWebBrowser control /// the browser object /// represents the type of dialog to display /// further specifies behavior dialog should exhibit @@ -38,7 +38,7 @@ namespace CefSharp /// Callback interface for asynchronous continuation of file dialog requests. /// To display a custom dialog return true. To display the default dialog return false. bool OnFileDialog( - IWebBrowser browserControl, + IWebBrowser chromiumWebBrowser, IBrowser browser, CefFileDialogMode mode, CefFileDialogFlags flags, diff --git a/CefSharp/Handler/IDisplayHandler.cs b/CefSharp/Handler/IDisplayHandler.cs index 47d176008..d2ed64496 100644 --- a/CefSharp/Handler/IDisplayHandler.cs +++ b/CefSharp/Handler/IDisplayHandler.cs @@ -16,43 +16,43 @@ namespace CefSharp /// /// Called when a frame's address has changed. /// - /// The control this popup is related to. + /// the ChromiumWebBrowser control /// args - void OnAddressChanged(IWebBrowser browserControl, AddressChangedEventArgs addressChangedArgs); + void OnAddressChanged(IWebBrowser chromiumWebBrowser, AddressChangedEventArgs addressChangedArgs); /// /// Called when auto-resize is enabled via IBrowserHost.SetAutoResizeEnabled and the contents have auto-resized. /// - /// The ChromiumWebBrowser control + /// the ChromiumWebBrowser control /// the browser object /// will be the desired size in view coordinates /// Return true if the resize was handled or false for default handling. - bool OnAutoResize(IWebBrowser browserControl, IBrowser browser, Size newSize); + bool OnAutoResize(IWebBrowser chromiumWebBrowser, IBrowser browser, Size newSize); /// /// Called when the page title changes. /// - /// The control this popup is related to. + /// the ChromiumWebBrowser control /// args - void OnTitleChanged(IWebBrowser browserControl, TitleChangedEventArgs titleChangedArgs); + void OnTitleChanged(IWebBrowser chromiumWebBrowser, TitleChangedEventArgs titleChangedArgs); /// /// Called when the page icon changes. /// - /// The ChromiumWebBrowser control + /// the ChromiumWebBrowser control /// the browser object /// list of urls where the favicons can be downloaded - void OnFaviconUrlChange(IWebBrowser browserControl, IBrowser browser, IList urls); + void OnFaviconUrlChange(IWebBrowser chromiumWebBrowser, IBrowser browser, IList urls); /// /// Called when web content in the page has toggled fullscreen mode. The client is /// responsible for resizing the browser if desired. /// - /// The ChromiumWebBrowser control + /// The ChromiumWebBrowser control /// the browser object /// If true the content will automatically be sized to fill the browser content area. /// If false the content will automatically return to its original size and position. - void OnFullscreenModeChange(IWebBrowser browserControl, IBrowser browser, bool fullscreen); + void OnFullscreenModeChange(IWebBrowser chromiumWebBrowser, IBrowser browser, bool fullscreen); /// /// Called when the browser is about to display a tooltip. text contains the @@ -61,26 +61,26 @@ namespace CefSharp /// When window rendering is disabled the application is responsible for /// drawing tooltips and the return value is ignored. /// - /// The ChromiumWebBrowser control + /// The ChromiumWebBrowser control /// the text that will be displayed in the tooltip /// To handle the display of the tooltip yourself return true otherwise return false /// to allow the browser to display the tooltip. /// Only called when using Off-screen rendering (WPF and OffScreen) - bool OnTooltipChanged(IWebBrowser browserControl, ref string text); + bool OnTooltipChanged(IWebBrowser chromiumWebBrowser, ref string text); /// /// Called when the browser receives a status message. /// - /// The control this popup is related to. + /// The control this popup is related to. /// args - void OnStatusMessage(IWebBrowser browserControl, StatusMessageEventArgs statusMessageArgs); + void OnStatusMessage(IWebBrowser chromiumWebBrowser, StatusMessageEventArgs statusMessageArgs); /// /// Called to display a console message. /// - /// The ChromiumWebBrowser control + /// The ChromiumWebBrowser control /// args /// Return true to stop the message from being output to the console. - bool OnConsoleMessage(IWebBrowser browserControl, ConsoleMessageEventArgs consoleMessageArgs); + bool OnConsoleMessage(IWebBrowser chromiumWebBrowser, ConsoleMessageEventArgs consoleMessageArgs); } } diff --git a/CefSharp/Handler/IDragHandler.cs b/CefSharp/Handler/IDragHandler.cs index 581ca33e2..05b327abc 100644 --- a/CefSharp/Handler/IDragHandler.cs +++ b/CefSharp/Handler/IDragHandler.cs @@ -16,12 +16,12 @@ namespace CefSharp /// /// Called when an external drag event enters the browser window. /// - /// the ChromiumWebBrowser control + /// the ChromiumWebBrowser control /// the browser object /// contains the drag event data /// represents the type of drag operation /// Return false for default drag handling behavior or true to cancel the drag event. - bool OnDragEnter(IWebBrowser browserControl, IBrowser browser, IDragData dragData, DragOperationsMask mask); + bool OnDragEnter(IWebBrowser chromiumWebBrowser, IBrowser browser, IDragData dragData, DragOperationsMask mask); /// /// Called whenever draggable regions for the browser window change. @@ -29,9 +29,9 @@ namespace CefSharp /// If draggable regions are never defined in a document this method will also never be called. /// If the last draggable region is removed from a document this method will be called with an empty IList. /// - /// the ChromiumWebBrowser control + /// the ChromiumWebBrowser control /// the browser object /// List of objects or null if last region was removed. - void OnDraggableRegionsChanged(IWebBrowser browserControl, IBrowser browser, IList regions); + void OnDraggableRegionsChanged(IWebBrowser chromiumWebBrowser, IBrowser browser, IList regions); } } diff --git a/CefSharp/Handler/IFindHandler.cs b/CefSharp/Handler/IFindHandler.cs index f3dcdad05..6c6ad89e8 100644 --- a/CefSharp/Handler/IFindHandler.cs +++ b/CefSharp/Handler/IFindHandler.cs @@ -15,13 +15,13 @@ namespace CefSharp /// /// Called to report find results returned by /// - /// the browser control + /// the ChromiumWebBrowser control /// the browser object /// is the identifier passed to Find() /// is the number of matches currently identified /// is the location of where the match was found (in window coordinates) /// is the current position in the search results /// is true if this is the last find notification. - void OnFindResult(IWebBrowser browserControl, IBrowser browser, int identifier, int count, Rect selectionRect, int activeMatchOrdinal, bool finalUpdate); + void OnFindResult(IWebBrowser chromiumWebBrowser, IBrowser browser, int identifier, int count, Rect selectionRect, int activeMatchOrdinal, bool finalUpdate); } } diff --git a/CefSharp/Handler/IJsDialogHandler.cs b/CefSharp/Handler/IJsDialogHandler.cs index b13773251..65f628c65 100644 --- a/CefSharp/Handler/IJsDialogHandler.cs +++ b/CefSharp/Handler/IJsDialogHandler.cs @@ -13,7 +13,7 @@ namespace CefSharp /// /// Called to run a JavaScript dialog. /// - /// the browser control + /// the ChromiumWebBrowser control /// the browser object /// originating url /// Dialog Type @@ -22,35 +22,35 @@ namespace CefSharp /// Callback can be executed inline or in an async fashion /// Set suppressMessage to true and return false to suppress the message (suppressing messages is preferable to immediately executing the callback as this is used to detect presumably malicious behavior like spamming alert messages in onbeforeunload). Set suppressMessage to false and return false to use the default implementation (the default implementation will show one modal dialog at a time and suppress any additional dialog requests until the displayed dialog is dismissed). /// Return true if the application will use a custom dialog or if the callback has been executed immediately. Custom dialogs may be either modal or modeless. If a custom dialog is used the application must execute |callback| once the custom dialog is dismissed. - bool OnJSDialog(IWebBrowser browserControl, IBrowser browser, string originUrl, CefJsDialogType dialogType, string messageText, string defaultPromptText, IJsDialogCallback callback, ref bool suppressMessage); - + bool OnJSDialog(IWebBrowser chromiumWebBrowser, IBrowser browser, string originUrl, CefJsDialogType dialogType, string messageText, string defaultPromptText, IJsDialogCallback callback, ref bool suppressMessage); + /// /// When leaving the page a Javascript dialog is displayed asking for user confirmation. /// Returning True allows you to implement a custom dialog or programatically handle. /// To cancel the unload return True and set allowUnload to False. /// - /// the browser control + /// the ChromiumWebBrowser control /// the browser object /// message (optional) /// indicates a page reload /// Callback can be executed inline or in an async fashion /// Return false to use the default dialog implementation otherwise return true to handle - bool OnJSBeforeUnload(IWebBrowser browserControl, IBrowser browser, string message, bool isReload, IJsDialogCallback callback); + bool OnJSBeforeUnload(IWebBrowser chromiumWebBrowser, IBrowser browser, string message, bool isReload, IJsDialogCallback callback); /// /// Called to cancel any pending dialogs and reset any saved dialog state. Will /// be called due to events like page navigation irregardless of whether any /// dialogs are currently pending. /// - /// the browser control + /// the ChromiumWebBrowser control /// the browser object - void OnResetDialogState(IWebBrowser browserControl, IBrowser browser); + void OnResetDialogState(IWebBrowser chromiumWebBrowser, IBrowser browser); /// /// Called when the default implementation dialog is closed. /// - /// the browser control + /// the ChromiumWebBrowser control /// the browser object - void OnDialogClosed(IWebBrowser browserControl, IBrowser browser); + void OnDialogClosed(IWebBrowser chromiumWebBrowser, IBrowser browser); } } diff --git a/CefSharp/Handler/IKeyboardHandler.cs b/CefSharp/Handler/IKeyboardHandler.cs index 7d30e512b..34dd5086a 100644 --- a/CefSharp/Handler/IKeyboardHandler.cs +++ b/CefSharp/Handler/IKeyboardHandler.cs @@ -15,7 +15,7 @@ namespace CefSharp /// otherwise. If the event will be handled in as a keyboard /// shortcut set isKeyboardShortcut to true and return false. /// - /// The control this request is for. + /// the ChromiumWebBrowser control /// The browser instance. /// Whether this was a key up/down/raw/etc... /// @@ -32,13 +32,13 @@ namespace CefSharp /// /// See the summary for an explanation of when to set this to true. /// Returns true if the event was handled or false otherwise. - bool OnPreKeyEvent(IWebBrowser browserControl, IBrowser browser, KeyType type, int windowsKeyCode, int nativeKeyCode, CefEventFlags modifiers, bool isSystemKey, ref bool isKeyboardShortcut); + bool OnPreKeyEvent(IWebBrowser chromiumWebBrowser, IBrowser browser, KeyType type, int windowsKeyCode, int nativeKeyCode, CefEventFlags modifiers, bool isSystemKey, ref bool isKeyboardShortcut); /// /// Called after the renderer and JavaScript in the page has had a chance to /// handle the event. Return true if the keyboard event was handled or false otherwise. /// - /// The control this request is for. + /// the ChromiumWebBrowser control /// The browser instance. /// Whether this was a key up/down/raw/etc... /// @@ -54,6 +54,6 @@ namespace CefSharp /// http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx for details). /// /// Return true if the keyboard event was handled or false otherwise. - bool OnKeyEvent(IWebBrowser browserControl, IBrowser browser, KeyType type, int windowsKeyCode, int nativeKeyCode, CefEventFlags modifiers, bool isSystemKey); + bool OnKeyEvent(IWebBrowser chromiumWebBrowser, IBrowser browser, KeyType type, int windowsKeyCode, int nativeKeyCode, CefEventFlags modifiers, bool isSystemKey); } } diff --git a/CefSharp/Handler/ILifeSpanHandler.cs b/CefSharp/Handler/ILifeSpanHandler.cs index a493899d2..83626a57e 100644 --- a/CefSharp/Handler/ILifeSpanHandler.cs +++ b/CefSharp/Handler/ILifeSpanHandler.cs @@ -13,7 +13,7 @@ namespace CefSharp /// /// Called before a popup window is created. /// - /// The control this request is for. + /// the ChromiumWebBrowser control /// The browser instance that launched this popup. /// The HTML frame that launched this popup. /// The URL of the popup content. (This may be empty/null) @@ -45,14 +45,14 @@ namespace CefSharp /// the new browser window should be scriptable and in the same process as the /// source browser. /// - bool OnBeforePopup(IWebBrowser browserControl, IBrowser browser, IFrame frame, string targetUrl, string targetFrameName, WindowOpenDisposition targetDisposition, bool userGesture, IPopupFeatures popupFeatures, IWindowInfo windowInfo, IBrowserSettings browserSettings, ref bool noJavascriptAccess, out IWebBrowser newBrowser); + bool OnBeforePopup(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, string targetUrl, string targetFrameName, WindowOpenDisposition targetDisposition, bool userGesture, IPopupFeatures popupFeatures, IWindowInfo windowInfo, IBrowserSettings browserSettings, ref bool noJavascriptAccess, out IWebBrowser newBrowser); /// /// Called after a new browser is created. /// - /// The control that is realted to the window is closing. + /// the ChromiumWebBrowser control /// The browser instance - void OnAfterCreated(IWebBrowser browserControl, IBrowser browser); + void OnAfterCreated(IWebBrowser chromiumWebBrowser, IBrowser browser); /// /// Called when a browser has recieved a request to close. This may result @@ -110,17 +110,17 @@ namespace CefSharp /// 11. Application exits by calling CefQuitMessageLoop() if no other browsers /// exist. /// - /// The control that is realted to the window is closing. + /// the ChromiumWebBrowser control /// The browser instance - check if IsDisposed as it's possible when the browser is disposing /// For default behaviour return false - bool DoClose(IWebBrowser browserControl, IBrowser browser); + bool DoClose(IWebBrowser chromiumWebBrowser, IBrowser browser); /// /// Called before a CefBrowser window (either the main browser for , /// or one of its children) /// - /// The control that is realted to the window is closing. + /// the ChromiumWebBrowser control /// The browser instance - void OnBeforeClose(IWebBrowser browserControl, IBrowser browser); + void OnBeforeClose(IWebBrowser chromiumWebBrowser, IBrowser browser); } } diff --git a/CefSharp/Handler/ILoadHandler.cs b/CefSharp/Handler/ILoadHandler.cs index 0fe0090b7..5de2e57a4 100644 --- a/CefSharp/Handler/ILoadHandler.cs +++ b/CefSharp/Handler/ILoadHandler.cs @@ -18,9 +18,9 @@ namespace CefSharp /// This method will be called on the CEF UI thread. /// Blocking this thread will likely cause your UI to become unresponsive and/or hang. /// - /// The control this popup is related to. + /// the ChromiumWebBrowser control /// args - void OnLoadingStateChange(IWebBrowser browserControl, LoadingStateChangedEventArgs loadingStateChangedArgs); + void OnLoadingStateChange(IWebBrowser chromiumWebBrowser, LoadingStateChangedEventArgs loadingStateChangedArgs); /// /// Called when the browser begins loading a frame. @@ -32,12 +32,12 @@ namespace CefSharp /// This method will be called on the CEF UI thread. /// Blocking this thread will likely cause your UI to become unresponsive and/or hang. /// - /// The control this popup is related to. + /// the ChromiumWebBrowser control /// args /// Whilst thist may seem like a logical place to execute js, it's called before the DOM has been loaded, implement /// as it's called when the underlying V8Context is created /// (Only called for the main frame at this stage) - void OnFrameLoadStart(IWebBrowser browserControl, FrameLoadStartEventArgs frameLoadStartArgs); + void OnFrameLoadStart(IWebBrowser chromiumWebBrowser, FrameLoadStartEventArgs frameLoadStartArgs); /// /// Called when the browser is done loading a frame. @@ -48,9 +48,9 @@ namespace CefSharp /// This method will be called on the CEF UI thread. /// Blocking this thread will likely cause your UI to become unresponsive and/or hang. /// - /// The control this popup is related to. + /// the ChromiumWebBrowser control /// args - void OnFrameLoadEnd(IWebBrowser browserControl, FrameLoadEndEventArgs frameLoadEndArgs); + void OnFrameLoadEnd(IWebBrowser chromiumWebBrowser, FrameLoadEndEventArgs frameLoadEndArgs); /// /// Called when the resource load for a navigation fails or is canceled. @@ -60,8 +60,8 @@ namespace CefSharp /// This method will be called on the CEF UI thread. /// Blocking this thread will likely cause your UI to become unresponsive and/or hang. /// - /// The control this popup is related to. + /// the ChromiumWebBrowser control /// args - void OnLoadError(IWebBrowser browserControl, LoadErrorEventArgs loadErrorArgs); + void OnLoadError(IWebBrowser chromiumWebBrowser, LoadErrorEventArgs loadErrorArgs); } } diff --git a/CefSharp/Handler/IRequestHandler.cs b/CefSharp/Handler/IRequestHandler.cs index bdab20d0e..38141f690 100644 --- a/CefSharp/Handler/IRequestHandler.cs +++ b/CefSharp/Handler/IRequestHandler.cs @@ -19,7 +19,7 @@ namespace CefSharp /// will be called. If the navigation is canceled will be called with an ErrorCode /// value of . /// - /// the ChromiumWebBrowser control + /// the ChromiumWebBrowser control /// the browser object /// The frame the request is coming from /// the request object - cannot be modified in this callback @@ -27,7 +27,7 @@ namespace CefSharp /// (e.g. clicking a link) or false if it navigated automatically (e.g. via the DomContentLoaded event). /// has the request been redirected /// Return true to cancel the navigation or false to allow the navigation to proceed. - bool OnBeforeBrowse(IWebBrowser browserControl, IBrowser browser, IFrame frame, IRequest request, bool userGesture, bool isRedirect); + bool OnBeforeBrowse(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, IRequest request, bool userGesture, bool isRedirect); /// /// Called on the UI thread before OnBeforeBrowse in certain limited cases @@ -37,7 +37,7 @@ namespace CefSharp /// cross-origin navigation initiated from the renderer process (e.g. /// navigating the top-level frame to/from a file URL). /// - /// the ChromiumWebBrowser control + /// the ChromiumWebBrowser control /// the browser object /// The frame object /// target url @@ -47,7 +47,7 @@ namespace CefSharp /// (e.g. clicking a link) or false if it navigated automatically (e.g. via the DomContentLoaded event). /// Return true to cancel the navigation or false to allow the navigation /// to proceed in the source browser's top-level frame. - bool OnOpenUrlFromTab(IWebBrowser browserControl, IBrowser browser, IFrame frame, + bool OnOpenUrlFromTab(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, string targetUrl, WindowOpenDisposition targetDisposition, bool userGesture); @@ -59,7 +59,7 @@ namespace CefSharp /// If is set all invalid certificates /// will be accepted without calling this method. /// - /// the ChromiumWebBrowser control + /// the ChromiumWebBrowser control /// the browser object /// the error code for this invalid certificate /// the url of the request for the invalid certificate @@ -68,21 +68,21 @@ namespace CefSharp /// If empty the error cannot be recovered from and the request will be canceled automatically. /// Return false to cancel the request immediately. Return true and use to /// execute in an async fashion. - bool OnCertificateError(IWebBrowser browserControl, IBrowser browser, CefErrorCode errorCode, string requestUrl, ISslInfo sslInfo, IRequestCallback callback); + bool OnCertificateError(IWebBrowser chromiumWebBrowser, IBrowser browser, CefErrorCode errorCode, string requestUrl, ISslInfo sslInfo, IRequestCallback callback); /// /// Called when a plugin has crashed /// - /// the ChromiumWebBrowser control + /// the ChromiumWebBrowser control /// the browser object /// path of the plugin that crashed - void OnPluginCrashed(IWebBrowser browserControl, IBrowser browser, string pluginPath); + void OnPluginCrashed(IWebBrowser chromiumWebBrowser, IBrowser browser, string pluginPath); /// /// Called before a resource request is loaded. For async processing return /// and execute or /// - /// The ChromiumWebBrowser control + /// The ChromiumWebBrowser control /// the browser object /// The frame object /// the request object - can be modified in this callback. @@ -90,12 +90,12 @@ namespace CefSharp /// To cancel loading of the resource return /// or to allow the resource to load normally. For async /// return - CefReturnValue OnBeforeResourceLoad(IWebBrowser browserControl, IBrowser browser, IFrame frame, IRequest request, IRequestCallback callback); + CefReturnValue OnBeforeResourceLoad(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, IRequest request, IRequestCallback callback); /// /// Called when the browser needs credentials from the user. /// - /// The ChromiumWebBrowser control + /// The ChromiumWebBrowser control /// the browser object /// The frame object that needs credentials (This will contain the URL that is being requested.) /// indicates whether the host is a proxy server @@ -105,12 +105,12 @@ namespace CefSharp /// scheme /// Callback interface used for asynchronous continuation of authentication requests. /// Return true to continue the request and call CefAuthCallback::Continue() when the authentication information is available. Return false to cancel the request. - bool GetAuthCredentials(IWebBrowser browserControl, IBrowser browser, IFrame frame, bool isProxy, string host, int port, string realm, string scheme, IAuthCallback callback); + bool GetAuthCredentials(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, bool isProxy, string host, int port, string realm, string scheme, IAuthCallback callback); /// /// Called when the browser needs user to select Client Certificate for authentication requests (eg. PKI authentication). /// - /// The ChromiumWebBrowser control + /// The ChromiumWebBrowser control /// the browser object /// indicates whether the host is a proxy server /// hostname @@ -119,46 +119,46 @@ namespace CefSharp /// Callback interface used for asynchronous continuation of client certificate selection for authentication requests. /// Return true to continue the request and call ISelectClientCertificateCallback.Select() with the selected certificate for authentication. /// Return false to use the default behavior where the browser selects the first certificate from the list. - bool OnSelectClientCertificate(IWebBrowser browserControl, IBrowser browser, bool isProxy, string host, int port, X509Certificate2Collection certificates, ISelectClientCertificateCallback callback); + bool OnSelectClientCertificate(IWebBrowser chromiumWebBrowser, IBrowser browser, bool isProxy, string host, int port, X509Certificate2Collection certificates, ISelectClientCertificateCallback callback); /// /// Called when the render process terminates unexpectedly. /// - /// The ChromiumWebBrowser control + /// The ChromiumWebBrowser control /// the browser object /// indicates how the process terminated. - void OnRenderProcessTerminated(IWebBrowser browserControl, IBrowser browser, CefTerminationStatus status); + void OnRenderProcessTerminated(IWebBrowser chromiumWebBrowser, IBrowser browser, CefTerminationStatus status); /// /// Called on the CEF IO thread before sending a network request with a "Cookie" /// request header. /// - /// The ChromiumWebBrowser control + /// The ChromiumWebBrowser control /// the browser object /// The frame object /// the request object - cannot be modified in this callback /// Return true to allow cookies to be included in the network /// request or false to block cookies - bool CanGetCookies(IWebBrowser browserControl, IBrowser browser, IFrame frame, IRequest request); + bool CanGetCookies(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, IRequest request); /// /// Called on the CEF IO thread when receiving a network request with a /// "Set-Cookie" response header value represented by cookie. /// - /// The ChromiumWebBrowser control + /// The ChromiumWebBrowser control /// the browser object /// The frame object /// the request object - cannot be modified in this callback /// the cookie object /// Return true to allow the cookie to be stored or false to block the cookie. - bool CanSetCookie(IWebBrowser browserControl, IBrowser browser, IFrame frame, IRequest request, Cookie cookie); + bool CanSetCookie(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, IRequest request, Cookie cookie); /// /// Called when JavaScript requests a specific storage quota size via the webkitStorageInfo.requestQuota function. /// For async processing return true and execute at a later time to /// grant or deny the request or to cancel. /// - /// The ChromiumWebBrowser control + /// The ChromiumWebBrowser control /// the browser object /// the origin of the page making the request /// is the requested quota size in bytes @@ -166,38 +166,38 @@ namespace CefSharp /// Return false to cancel the request immediately. Return true to continue the request /// and call either in this method or at a later time to /// grant or deny the request. - bool OnQuotaRequest(IWebBrowser browserControl, IBrowser browser, string originUrl, Int64 newSize, IRequestCallback callback); + bool OnQuotaRequest(IWebBrowser chromiumWebBrowser, IBrowser browser, string originUrl, Int64 newSize, IRequestCallback callback); /// /// Called on the IO thread when a resource load is redirected. The /// parameter will contain the old URL and other request-related information. /// - /// The ChromiumWebBrowser control + /// The ChromiumWebBrowser control /// the browser object /// The frame that is being redirected. /// the request object - cannot be modified in this callback /// the response object /// the new URL and can be changed if desired - void OnResourceRedirect(IWebBrowser browserControl, IBrowser browser, IFrame frame, IRequest request, IResponse response, ref string newUrl); + void OnResourceRedirect(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, IRequest request, IResponse response, ref string newUrl); /// /// Called on the UI thread to handle requests for URLs with an unknown protocol component. /// SECURITY WARNING: YOU SHOULD USE THIS METHOD TO ENFORCE RESTRICTIONS BASED ON SCHEME, HOST OR OTHER URL ANALYSIS BEFORE ALLOWING OS EXECUTION. /// - /// The ChromiumWebBrowser control + /// The ChromiumWebBrowser control /// the browser object /// the request url /// return to true to attempt execution via the registered OS protocol handler, if any. Otherwise return false. - bool OnProtocolExecution(IWebBrowser browserControl, IBrowser browser, string url); + bool OnProtocolExecution(IWebBrowser chromiumWebBrowser, IBrowser browser, string url); /// /// Called on the CEF UI thread when the render view associated /// with browser is ready to receive/handle IPC messages in the render /// process. /// - /// The ChromiumWebBrowser control + /// The ChromiumWebBrowser control /// the browser object - void OnRenderViewReady(IWebBrowser browserControl, IBrowser browser); + void OnRenderViewReady(IWebBrowser chromiumWebBrowser, IBrowser browser); /// /// Called on the CEF IO thread when a resource response is received. @@ -205,7 +205,7 @@ namespace CefSharp /// To redirect or retry the resource modify request (url, headers or post body) and return true. /// The response object cannot be modified in this callback. /// - /// The ChromiumWebBrowser control + /// The ChromiumWebBrowser control /// the browser object /// The frame that is being redirected. /// the request object @@ -214,29 +214,29 @@ namespace CefSharp /// To allow the resource to load normally return false. /// To redirect or retry the resource modify request (url, headers or post body) and return true. /// - bool OnResourceResponse(IWebBrowser browserControl, IBrowser browser, IFrame frame, IRequest request, IResponse response); + bool OnResourceResponse(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, IRequest request, IResponse response); /// /// Called on the CEF IO thread to optionally filter resource response content. /// - /// The ChromiumWebBrowser control + /// The ChromiumWebBrowser control /// the browser object /// The frame that is being redirected. /// the request object - cannot be modified in this callback /// the response object - cannot be modified in this callback /// Return an IResponseFilter to intercept this response, otherwise return null - IResponseFilter GetResourceResponseFilter(IWebBrowser browserControl, IBrowser browser, IFrame frame, IRequest request, IResponse response); + IResponseFilter GetResourceResponseFilter(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, IRequest request, IResponse response); /// /// Called on the CEF IO thread when a resource load has completed. /// - /// The ChromiumWebBrowser control + /// The ChromiumWebBrowser control /// the browser object /// The frame that is being redirected. /// the request object - cannot be modified in this callback /// the response object - cannot be modified in this callback /// indicates the load completion status /// is the number of response bytes actually read. - void OnResourceLoadComplete(IWebBrowser browserControl, IBrowser browser, IFrame frame, IRequest request, IResponse response, UrlRequestStatus status, long receivedContentLength); + void OnResourceLoadComplete(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, IRequest request, IResponse response, UrlRequestStatus status, long receivedContentLength); } }