| 445 | } |
| 446 | |
| 447 | Window::SessionController *SectionBuilder::controller() const { |
| 448 | return v::match(_context, [](const WidgetContext &ctx) { |
| 449 | return ctx.controller.get(); |
| 450 | }, [](const SearchContext &) -> Window::SessionController* { |
| 451 | return nullptr; |
| 452 | }); |
| 453 | } |
| 454 | |
| 455 | not_null<Main::Session*> SectionBuilder::session() const { |
| 456 | return v::match(_context, [](const WidgetContext &ctx) { |
no test coverage detected