LEFT | RIGHT |
1 #ifndef _PLUGIN_DOM_TRAVERSER_BASE_H_ | 1 #ifndef _PLUGIN_DOM_TRAVERSER_BASE_H_ |
2 #define _PLUGIN_DOM_TRAVERSER_BASE_H_ | 2 #define _PLUGIN_DOM_TRAVERSER_BASE_H_ |
3 | 3 |
4 | 4 |
5 #include "PluginTypedef.h" | 5 #include "PluginTypedef.h" |
6 #include "PluginTab.h" | 6 #include "PluginTab.h" |
7 | 7 |
8 | 8 |
9 class CPluginDomTraverserCacheBase | 9 class CPluginDomTraverserCacheBase |
10 { | 10 { |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 template <class T> | 108 template <class T> |
109 bool CPluginDomTraverserBase<T>::IsEnabled() | 109 bool CPluginDomTraverserBase<T>::IsEnabled() |
110 { | 110 { |
111 return CPluginSettings::GetInstance()->IsPluginEnabled(); | 111 return CPluginSettings::GetInstance()->IsPluginEnabled(); |
112 } | 112 } |
113 | 113 |
114 | 114 |
115 template <class T> | 115 template <class T> |
116 void CPluginDomTraverserBase<T>::TraverseDocument(IWebBrowser2* pBrowser, bool i
sMainDoc, CString indent) | 116 void CPluginDomTraverserBase<T>::TraverseDocument(IWebBrowser2* pBrowser, bool i
sMainDoc, CString indent) |
117 { | 117 { |
118 DWORD res = WaitForSingleObject(m_tab->m_filter->hideFiltersLoadedEvent, 1000)
; | 118 DWORD res = WaitForSingleObject(m_tab->m_filter->hideFiltersLoadedEvent, TIMEO
UT_VALUE); |
119 if (!IsEnabled()) return; | 119 if (!IsEnabled()) return; |
120 | 120 |
121 VARIANT_BOOL isBusy; | 121 VARIANT_BOOL isBusy; |
122 if (SUCCEEDED(pBrowser->get_Busy(&isBusy))) | 122 if (SUCCEEDED(pBrowser->get_Busy(&isBusy))) |
123 { | 123 { |
124 if (isBusy) | 124 if (isBusy) |
125 { | 125 { |
126 return; | 126 return; |
127 } | 127 } |
128 } | 128 } |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 if (tab->m_plugin->GetTabHWND() == NULL) | 460 if (tab->m_plugin->GetTabHWND() == NULL) |
461 { | 461 { |
462 return; | 462 return; |
463 } | 463 } |
464 | 464 |
465 | 465 |
466 } | 466 } |
467 | 467 |
468 | 468 |
469 #endif // _PLUGIN_DOM_TRAVERSER_BASE_H_ | 469 #endif // _PLUGIN_DOM_TRAVERSER_BASE_H_ |
LEFT | RIGHT |