| 8 | using namespace Microsoft::WRL; |
| 9 | |
| 10 | std::unique_ptr<Tab> Tab::CreateNewTab(HWND hWnd, ICoreWebView2Environment* env, size_t id, bool shouldBeActive) |
| 11 | { |
| 12 | std::unique_ptr<Tab> tab = std::make_unique<Tab>(); |
| 13 | |
| 14 | tab->m_parentHWnd = hWnd; |
| 15 | tab->m_tabId = id; |
| 16 | tab->SetMessageBroker(); |
| 17 | tab->Init(env, shouldBeActive); |
| 18 | |
| 19 | return tab; |
| 20 | } |
| 21 | |
| 22 | HRESULT Tab::Init(ICoreWebView2Environment* env, bool shouldBeActive) |
| 23 | { |
nothing calls this directly
no test coverage detected