Description# Currently there are a lot of unrelated changes, they should be in other codereviews and some of them are already in another codereview but there is no progress.
- add WebBrowserEventsListener.{h,cpp} which detects when the actual frame loading/reloading happened.
- add CPluginClass::m_data. It has to be a shared pointer because we capture a weak ptr on it to avoid usage of it after destroying of CPluginClass.
- add CPluginFilter::m_hideFilters with getter (it should wait for the finishing of the initialization) so we can use them to inject as CSS
- change CPluginFilter::LoadHideFilters to accept const reference instead of a copy
- add method InjectABPCSS which injects our css
- call InjectABPCSS from CPluginTabBase::OnDocumentComplete which is called when the real page loading happened
- add methods to decide whether we need to traverse or to inject css (based on testing versions)
- do nothing in ~CPluginClass because we should do such stuff in FinalRelease
Patch Set 1 #
Total comments: 13
Patch Set 2 : rebase and address comments #Patch Set 3 : fix injecting of CSS when plugin is enabled/disabled and rearrange variables in InjectABPCSS #Patch Set 4 : rebase #Patch Set 5 : rebase #Patch Set 6 : rebase #
Total comments: 20
Patch Set 7 : rebase #Patch Set 8 : rebase, improve memory handling (OnQuit) and improve code organizing #
Total comments: 1
Patch Set 9 : rename OnQuit #
MessagesTotal messages: 14
|