| 1162 | } |
| 1163 | |
| 1164 | BOOL CALLBACK BrowserFactory::FindEdgeBrowserHandles(HWND hwnd, LPARAM arg) { |
| 1165 | std::vector<HWND>* handles = reinterpret_cast<std::vector<HWND>*>(arg); |
| 1166 | |
| 1167 | // Could this be an Internet Explorer Server window? |
| 1168 | // 19 == "Chrome_WidgetWin_1\0" |
| 1169 | char name[20]; |
| 1170 | if (::GetClassNameA(hwnd, name, 20) == 0) { |
| 1171 | // No match found. Skip |
| 1172 | return TRUE; |
| 1173 | } |
| 1174 | |
| 1175 | if (strcmp("Chrome_WidgetWin_1", name) == 0) { |
| 1176 | handles->push_back(hwnd); |
| 1177 | } |
| 1178 | |
| 1179 | return TRUE; |
| 1180 | } |
| 1181 | |
| 1182 | BOOL CALLBACK BrowserFactory::FindChildWindowForProcess(HWND hwnd, LPARAM arg) { |
| 1183 | ProcessWindowInfo *process_window_info = reinterpret_cast<ProcessWindowInfo*>(arg); |
nothing calls this directly
no outgoing calls
no test coverage detected