| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- 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
- }
- }
- }
|