diff --git a/CefSharp/IDisplayHandler.cs b/CefSharp/IDisplayHandler.cs index a6b662cb4..c4391c527 100644 --- a/CefSharp/IDisplayHandler.cs +++ b/CefSharp/IDisplayHandler.cs @@ -2,6 +2,8 @@ // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. +using System.Collections.Generic; + namespace CefSharp { /// @@ -17,13 +19,31 @@ namespace CefSharp void OnAddressChanged(IWebBrowser browserControl, AddressChangedEventArgs addressChangedArgs); /// - /// Called when the loading state has changed. This callback will be executed twice - /// once when loading is initiated either programmatically or by user action, - /// and once when loading is terminated due to completion, cancellation of failure. + /// Called when the page title changes. /// /// The control this popup is related to. - /// args - void OnLoadingStateChange(IWebBrowser browserControl, LoadingStateChangedEventArgs loadingStateChangedArgs); + /// args + void OnTitleChanged(IWebBrowser browserControl, TitleChangedEventArgs titleChangedArgs); + + /// + /// Called when the page icon changes. + /// + /// The ChromiumWebBrowser control + /// the browser object + /// list of urls where the favicons can be downloaded + void OnFaviconUrlChange(IWebBrowser browserControl, IBrowser browser, IList urls); + + /// + /// Called when the browser is about to display a tooltip. |text| contains the + /// text that will be displayed in the tooltip. To handle the display of the + /// tooltip yourself return true. Otherwise, you can optionally modify |text| + /// and then return false to allow the browser to display the tooltip. + /// When window rendering is disabled the application is responsible for + /// drawing tooltips and the return value is ignored. + /// + /// The ChromiumWebBrowser control + /// + void OnTooltip(IWebBrowser browserControl, string text); /// /// Called when the browser receives a status message. @@ -32,6 +52,23 @@ namespace CefSharp /// args void OnStatusMessage(IWebBrowser browserControl, StatusMessageEventArgs statusMessageArgs); + /// + /// Called to display a console message. Return true to stop the message from + /// being output to the console. + /// + /// The ChromiumWebBrowser control + /// + void OnConsoleMessage(IWebBrowser browserControl, ConsoleMessageEventArgs consoleMessageArgs); + + /// + /// Called when the loading state has changed. This callback will be executed twice + /// once when loading is initiated either programmatically or by user action, + /// and once when loading is terminated due to completion, cancellation of failure. + /// + /// The control this popup is related to. + /// args + void OnLoadingStateChange(IWebBrowser browserControl, LoadingStateChangedEventArgs loadingStateChangedArgs); + /// /// Called when the browser begins loading a frame. /// The | value will never be empty diff --git a/CefSharp/IRequestHandler.cs b/CefSharp/IRequestHandler.cs index af14e3533..53e98944d 100644 --- a/CefSharp/IRequestHandler.cs +++ b/CefSharp/IRequestHandler.cs @@ -3,7 +3,6 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System; -using System.Collections.Generic; namespace CefSharp { @@ -131,13 +130,5 @@ namespace CefSharp /// 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); - - /// - /// Called when the page icon changes. - /// - /// The ChromiumWebBrowser control - /// the browser object - /// list of urls where the favicons can be downloaded - void OnFaviconUrlChange(IWebBrowser browserControl, IBrowser browser, IList urls); } }