using System.Runtime.InteropServices; namespace Muchinfo.WPF.Controls.WebBrowser { public partial class WebBrowserHelper { private class WebBrowserEvent : StandardOleMarshalObject, DWebBrowserEvents2 { private WebBrowserHelper _helperInstance = null; public WebBrowserEvent(WebBrowserHelper helperInstance) { _helperInstance = helperInstance; } #region DWebBrowserEvents2 Members public void StatusTextChange(string text) { } public void ProgressChange(int progress, int progressMax) { } public void CommandStateChange(long command, bool enable) { } public void DownloadBegin() { } public void DownloadComplete() { } public void TitleChange(string text) { } public void PropertyChange(string szProperty) { } public void BeforeNavigate2(object pDisp, ref object URL, ref object flags, ref object targetFrameName, ref object postData, ref object headers, ref bool cancel) { } public void NewWindow2(ref object pDisp, ref bool cancel) { _helperInstance.OnNewWindow(ref cancel); } public void NavigateComplete2(object pDisp, ref object URL) { } public void DocumentComplete(object pDisp, ref object URL) { } public void OnQuit() { } public void OnVisible(bool visible) { } public void OnToolBar(bool toolBar) { } public void OnMenuBar(bool menuBar) { } public void OnStatusBar(bool statusBar) { } public void OnFullScreen(bool fullScreen) { } public void OnTheaterMode(bool theaterMode) { } public void WindowSetResizable(bool resizable) { } public void WindowSetLeft(int left) { } public void WindowSetTop(int top) { } public void WindowSetWidth(int width) { } public void WindowSetHeight(int height) { } public void WindowClosing(bool isChildWindow, ref bool cancel) { } public void ClientToHostWindow(ref long cx, ref long cy) { } public void SetSecureLockIcon(int secureLockIcon) { } public void FileDownload(ref bool cancel) { } public void NavigateError(object pDisp, ref object URL, ref object frame, ref object statusCode, ref bool cancel) { } public void PrintTemplateInstantiation(object pDisp) { } public void PrintTemplateTeardown(object pDisp) { } public void UpdatePageStatus(object pDisp, ref object nPage, ref object fDone) { } public void PrivacyImpactedStateChange(bool bImpacted) { } #endregion } } }