WebBrowserHelper.WebBrowserEvent.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. using System.Runtime.InteropServices;
  2. namespace Muchinfo.WPF.Controls.WebBrowser
  3. {
  4. public partial class WebBrowserHelper
  5. {
  6. private class WebBrowserEvent : StandardOleMarshalObject, DWebBrowserEvents2
  7. {
  8. private WebBrowserHelper _helperInstance = null;
  9. public WebBrowserEvent(WebBrowserHelper helperInstance)
  10. {
  11. _helperInstance = helperInstance;
  12. }
  13. #region DWebBrowserEvents2 Members
  14. public void StatusTextChange(string text)
  15. {
  16. }
  17. public void ProgressChange(int progress, int progressMax)
  18. {
  19. }
  20. public void CommandStateChange(long command, bool enable)
  21. {
  22. }
  23. public void DownloadBegin()
  24. {
  25. }
  26. public void DownloadComplete()
  27. {
  28. }
  29. public void TitleChange(string text)
  30. {
  31. }
  32. public void PropertyChange(string szProperty)
  33. {
  34. }
  35. public void BeforeNavigate2(object pDisp, ref object URL, ref object flags, ref object targetFrameName, ref object postData, ref object headers, ref bool cancel)
  36. {
  37. }
  38. public void NewWindow2(ref object pDisp, ref bool cancel)
  39. {
  40. _helperInstance.OnNewWindow(ref cancel);
  41. }
  42. public void NavigateComplete2(object pDisp, ref object URL)
  43. {
  44. }
  45. public void DocumentComplete(object pDisp, ref object URL)
  46. {
  47. }
  48. public void OnQuit()
  49. {
  50. }
  51. public void OnVisible(bool visible)
  52. {
  53. }
  54. public void OnToolBar(bool toolBar)
  55. {
  56. }
  57. public void OnMenuBar(bool menuBar)
  58. {
  59. }
  60. public void OnStatusBar(bool statusBar)
  61. {
  62. }
  63. public void OnFullScreen(bool fullScreen)
  64. {
  65. }
  66. public void OnTheaterMode(bool theaterMode)
  67. {
  68. }
  69. public void WindowSetResizable(bool resizable)
  70. {
  71. }
  72. public void WindowSetLeft(int left)
  73. {
  74. }
  75. public void WindowSetTop(int top)
  76. {
  77. }
  78. public void WindowSetWidth(int width)
  79. {
  80. }
  81. public void WindowSetHeight(int height)
  82. {
  83. }
  84. public void WindowClosing(bool isChildWindow, ref bool cancel)
  85. {
  86. }
  87. public void ClientToHostWindow(ref long cx, ref long cy)
  88. {
  89. }
  90. public void SetSecureLockIcon(int secureLockIcon)
  91. {
  92. }
  93. public void FileDownload(ref bool cancel)
  94. {
  95. }
  96. public void NavigateError(object pDisp, ref object URL, ref object frame, ref object statusCode, ref bool cancel)
  97. {
  98. }
  99. public void PrintTemplateInstantiation(object pDisp)
  100. {
  101. }
  102. public void PrintTemplateTeardown(object pDisp)
  103. {
  104. }
  105. public void UpdatePageStatus(object pDisp, ref object nPage, ref object fDone)
  106. {
  107. }
  108. public void PrivacyImpactedStateChange(bool bImpacted)
  109. {
  110. }
  111. #endregion
  112. }
  113. }
  114. }