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

Method FindEdgeWindow

cpp/iedriver/BrowserFactory.cpp:1108–1129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1106}
1107
1108BOOL CALLBACK BrowserFactory::FindEdgeWindow(HWND hwnd, LPARAM arg) {
1109 // Could this be an EdgeChrome window?
1110 // 19 == "Chrome_WidgetWin_1"
1111 char name[20];
1112 if (::GetClassNameA(hwnd, name, 20) == 0) {
1113 // No match found. Skip
1114 return TRUE;
1115 }
1116
1117 // continue if it is not "Chrome_WidgetWin_1"
1118 if (strcmp(ANDIE_FRAME_WINDOW_CLASS, name) != 0) return TRUE;
1119
1120 // continue if window does not belong to the target process
1121 DWORD process_id = NULL;
1122 ::GetWindowThreadProcessId(hwnd, &process_id);
1123 ProcessWindowInfo* process_window_info = reinterpret_cast<ProcessWindowInfo*>(arg);
1124 if (process_window_info->dwProcessId != process_id) {
1125 return TRUE;
1126 }
1127
1128 return EnumChildWindows(hwnd, FindEdgeChildWindowForProcess, arg);
1129}
1130
1131BOOL CALLBACK BrowserFactory::FindEdgeWindowIgnoringProcessMatch(HWND hwnd, LPARAM arg) {
1132 // Could this be an EdgeChrome window?

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected