| 272 | } |
| 273 | |
| 274 | void PluginNetEventRouter::ProcessHelloEvent(std::shared_ptr<Message>&& msg) { |
| 275 | const auto& hello = msg->hello(); |
| 276 | auto event = MsgClientHello(); |
| 277 | event.device_id_ = msg->device_id(); |
| 278 | event.stream_id_ = msg->stream_id(); |
| 279 | event.enable_audio_ = hello.enable_audio(); |
| 280 | event.enable_video_ = hello.enable_video(); |
| 281 | event.enable_controller = hello.enable_controller(); |
| 282 | event.client_type_ = hello.client_type(); |
| 283 | event.device_name_ = hello.device_name(); |
| 284 | app_->GetContext()->SendAppMessage(event); |
| 285 | |
| 286 | auto e = std::make_shared<MsgClientHello>(event); |
| 287 | plugin_manager_->VisitAllPlugins([=, this](GrPluginInterface* plugin) { |
| 288 | plugin->DispatchAppEvent(e); |
| 289 | }); |
| 290 | } |
| 291 | |
| 292 | void PluginNetEventRouter::ProcessMouseEvent(std::shared_ptr<Message>&& msg) { |
| 293 | if (settings_->app_.IsGlobalReplayMode()) { |
no test coverage detected