MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / FindContentWindowHandle

Method FindContentWindowHandle

cpp/iedriver/DocumentHost.cpp:293–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293HWND DocumentHost::FindContentWindowHandle(HWND top_level_window_handle) {
294 LOG(TRACE) << "Entering DocumentHost::FindContentWindowHandle";
295
296 ProcessWindowInfo process_window_info;
297 process_window_info.pBrowser = NULL;
298 process_window_info.hwndBrowser = NULL;
299 DWORD process_id;
300 ::GetWindowThreadProcessId(top_level_window_handle, &process_id);
301 process_window_info.dwProcessId = process_id;
302
303 ::EnumChildWindows(top_level_window_handle,
304 &BrowserFactory::FindChildWindowForProcess,
305 reinterpret_cast<LPARAM>(&process_window_info));
306 return process_window_info.hwndBrowser;
307}
308
309int DocumentHost::GetDocumentMode(IHTMLDocument2* doc) {
310 LOG(TRACE) << "Entering DocumentHost::GetDocumentMode";

Callers 3

CheckDialogTypeMethod · 0.80

Calls 1

LOGClass · 0.50

Tested by

no test coverage detected