Start adding/moving methods to IDisplayHandler - reflect CefDisplayHandler implementation

This commit is contained in:
amaitland
2015-08-17 11:29:51 +10:00
parent bb3103e1c2
commit 8dbfe02618
2 changed files with 42 additions and 14 deletions
+42 -5
View File
@@ -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
{
/// <summary>
@@ -17,13 +19,31 @@ namespace CefSharp
void OnAddressChanged(IWebBrowser browserControl, AddressChangedEventArgs addressChangedArgs);
/// <summary>
/// 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.
/// </summary>
/// <param name="browserControl">The <see cref="IWebBrowser"/> control this popup is related to.</param>
/// <param name="loadingStateChangedArgs">args</param>
void OnLoadingStateChange(IWebBrowser browserControl, LoadingStateChangedEventArgs loadingStateChangedArgs);
/// <param name="titleChangedArgs">args</param>
void OnTitleChanged(IWebBrowser browserControl, TitleChangedEventArgs titleChangedArgs);
/// <summary>
/// Called when the page icon changes.
/// </summary>
/// <param name="browserControl">The ChromiumWebBrowser control</param>
/// <param name="browser">the browser object</param>
/// <param name="urls">list of urls where the favicons can be downloaded</param>
void OnFaviconUrlChange(IWebBrowser browserControl, IBrowser browser, IList<string> urls);
/// <summary>
/// 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.
/// </summary>
/// <param name="browserControl">The ChromiumWebBrowser control</param>
/// <param name="text"></param>
void OnTooltip(IWebBrowser browserControl, string text);
/// <summary>
/// Called when the browser receives a status message.
@@ -32,6 +52,23 @@ namespace CefSharp
/// <param name="statusMessageArgs">args</param>
void OnStatusMessage(IWebBrowser browserControl, StatusMessageEventArgs statusMessageArgs);
/// <summary>
/// Called to display a console message. Return true to stop the message from
/// being output to the console.
/// </summary>
/// <param name="browserControl">The ChromiumWebBrowser control</param>
/// <param name="consoleMessageArgs"></param>
void OnConsoleMessage(IWebBrowser browserControl, ConsoleMessageEventArgs consoleMessageArgs);
/// <summary>
/// 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.
/// </summary>
/// <param name="browserControl">The <see cref="IWebBrowser"/> control this popup is related to.</param>
/// <param name="loadingStateChangedArgs">args</param>
void OnLoadingStateChange(IWebBrowser browserControl, LoadingStateChangedEventArgs loadingStateChangedArgs);
/// <summary>
/// Called when the browser begins loading a frame.
/// The |<see cref="FrameLoadEndEventArgs.Frame"/> value will never be empty
-9
View File
@@ -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
/// <param name="url">the request url</param>
/// <returns>return to true to attempt execution via the registered OS protocol handler, if any. Otherwise return false.</returns>
bool OnProtocolExecution(IWebBrowser browserControl, IBrowser browser, string url);
/// <summary>
/// Called when the page icon changes.
/// </summary>
/// <param name="browserControl">The ChromiumWebBrowser control</param>
/// <param name="browser">the browser object</param>
/// <param name="urls">list of urls where the favicons can be downloaded</param>
void OnFaviconUrlChange(IWebBrowser browserControl, IBrowser browser, IList<string> urls);
}
}