| OLD | NEW |
| 1 #include "PluginStdAfx.h" | 1 #include "PluginStdAfx.h" |
| 2 | 2 |
| 3 #include "PluginClass.h" | 3 #include "PluginClass.h" |
| 4 #include "PluginSettings.h" | 4 #include "PluginSettings.h" |
| 5 #include "PluginSystem.h" | 5 #include "PluginSystem.h" |
| 6 #include "PluginFilter.h" | 6 #include "PluginFilter.h" |
| 7 #include "PluginMimeFilterClient.h" | 7 #include "PluginMimeFilterClient.h" |
| 8 #include "PluginClient.h" | 8 #include "PluginClient.h" |
| 9 #include "PluginClientFactory.h" | 9 #include "PluginClientFactory.h" |
| 10 #include "PluginMutex.h" | 10 #include "PluginMutex.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 HRESULT hr = pContainer->FindConnectionPoint(DIID_DWebBrowserEvents2, &pPoint)
; | 129 HRESULT hr = pContainer->FindConnectionPoint(DIID_DWebBrowserEvents2, &pPoint)
; |
| 130 if (FAILED(hr)) | 130 if (FAILED(hr)) |
| 131 { | 131 { |
| 132 DEBUG_ERROR_LOG(hr, PLUGIN_ERROR_SET_SITE, PLUGIN_ERROR_SET_SITE_FIND_CONNEC
TION_POINT, "Class::GetConnectionPoint - FindConnectionPoint") | 132 DEBUG_ERROR_LOG(hr, PLUGIN_ERROR_SET_SITE, PLUGIN_ERROR_SET_SITE_FIND_CONNEC
TION_POINT, "Class::GetConnectionPoint - FindConnectionPoint") |
| 133 return NULL; | 133 return NULL; |
| 134 } | 134 } |
| 135 | 135 |
| 136 return pPoint; | 136 return pPoint; |
| 137 } | 137 } |
| 138 | 138 |
| 139 // This method tries to get a 'connection point' from the stored browser, which
can be | |
| 140 // used to attach or detach from the stream of browser events | |
| 141 CComPtr<IConnectionPoint> CPluginClass::GetConnectionPointPropSink() | |
| 142 { | |
| 143 CComQIPtr<IConnectionPointContainer, &IID_IConnectionPointContainer> pContaine
r(GetBrowser()); | |
| 144 if (!pContainer) | |
| 145 { | |
| 146 return NULL; | |
| 147 } | |
| 148 | |
| 149 CComPtr<IConnectionPoint> pPoint; | |
| 150 HRESULT hr = pContainer->FindConnectionPoint(IID_IPropertyNotifySink, &pPoint)
; | |
| 151 if (FAILED(hr)) | |
| 152 { | |
| 153 DEBUG_ERROR_LOG(hr, PLUGIN_ERROR_SET_SITE, PLUGIN_ERROR_SET_SITE_FIND_CONNEC
TION_POINT, "Class::GetConnectionPoint - FindConnectionPoint") | |
| 154 return NULL; | |
| 155 } | |
| 156 | |
| 157 return pPoint; | |
| 158 } | |
| 159 | |
| 160 | |
| 161 HWND CPluginClass::GetBrowserHWND() const | 139 HWND CPluginClass::GetBrowserHWND() const |
| 162 { | 140 { |
| 163 SHANDLE_PTR hBrowserWndHandle = NULL; | 141 SHANDLE_PTR hBrowserWndHandle = NULL; |
| 164 | 142 |
| 165 CComQIPtr<IWebBrowser2> browser = GetBrowser(); | 143 CComQIPtr<IWebBrowser2> browser = GetBrowser(); |
| 166 if (browser) | 144 if (browser) |
| 167 { | 145 { |
| 168 HRESULT hr = browser->get_HWND(&hBrowserWndHandle); | 146 HRESULT hr = browser->get_HWND(&hBrowserWndHandle); |
| 169 if (FAILED(hr)) | 147 if (FAILED(hr)) |
| 170 { | 148 { |
| (...skipping 1693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1864 } | 1842 } |
| 1865 } | 1843 } |
| 1866 } | 1844 } |
| 1867 | 1845 |
| 1868 hTabWnd = ::GetWindow(hTabWnd, GW_HWNDNEXT); | 1846 hTabWnd = ::GetWindow(hTabWnd, GW_HWNDNEXT); |
| 1869 } | 1847 } |
| 1870 | 1848 |
| 1871 return hTabWnd; | 1849 return hTabWnd; |
| 1872 | 1850 |
| 1873 } | 1851 } |
| OLD | NEW |