| 878 | } |
| 879 | |
| 880 | void BrowserWindow::CheckFailure(HRESULT hr, LPCWSTR errorMessage) |
| 881 | { |
| 882 | if (FAILED(hr)) |
| 883 | { |
| 884 | std::wstring message; |
| 885 | if (!errorMessage || !errorMessage[0]) |
| 886 | { |
| 887 | message = std::wstring(L"Something went wrong."); |
| 888 | } |
| 889 | else |
| 890 | { |
| 891 | message = std::wstring(errorMessage); |
| 892 | } |
| 893 | |
| 894 | MessageBoxW(nullptr, message.c_str(), nullptr, MB_OK); |
| 895 | } |
| 896 | } |
| 897 | |
| 898 | int BrowserWindow::GetDPIAwareBound(int bound) |
| 899 | { |
nothing calls this directly
no outgoing calls
no test coverage detected