| 170 | } |
| 171 | |
| 172 | void PluginManager::RegisterPluginEventsCallback() { |
| 173 | this->evt_router_ = std::make_shared<PluginEventRouter>(app_); |
| 174 | VisitAllPlugins([&](GrPluginInterface* plugin) { |
| 175 | plugin->RegisterEventCallback([=, this](const std::shared_ptr<GrPluginBaseEvent>& event) { |
| 176 | evt_router_->ProcessPluginEvent(event); |
| 177 | }); |
| 178 | }); |
| 179 | } |
| 180 | |
| 181 | void PluginManager::ReleaseAllPlugins() { |
| 182 | for (const auto& [k, plugin] : plugins_) { |
no test coverage detected