comparison dep/animone/src/a11y/win32.cc @ 366:886f66775f31

animone: add preliminary AT-SPI stuff anime_list: finish the regular singular right click menu
author Paper <paper@tflc.us>
date Sun, 17 Nov 2024 19:56:01 -0500
parents 1faa72660932
children
comparison
equal deleted inserted replaced
365:f81bed4e04ac 366:886f66775f31
233 return true; 233 return true;
234 } 234 }
235 235
236 /* ------------------------------------------------------------------------------------ */ 236 /* ------------------------------------------------------------------------------------ */
237 237
238 bool GetWebBrowserInformation(const Window& window, web_browser_proc_t web_browser_proc) { 238 bool GetWebBrowserInformation(const Result& result, web_browser_proc_t web_browser_proc) {
239 if (!web_browser_proc) 239 if (!web_browser_proc)
240 return false; 240 return false;
241 241
242 if (!InitializeUIAutomation()) 242 if (!InitializeUIAutomation())
243 return false; 243 return false;
244 244
245 ComInterface<Element> parent(GetElementFromHandle(reinterpret_cast<HWND>(window.id.win32))); 245 ComInterface<Element> parent(GetElementFromHandle(reinterpret_cast<HWND>(result.window.id.win32)));
246 if (!parent) 246 if (!parent)
247 return false; 247 return false;
248 248
249 const std::string title = ToUtf8String(GetElementName(*parent)); 249 const std::string title = ToUtf8String(GetElementName(*parent));
250 web_browser_proc({WebBrowserInformationType::Title, title}); 250 web_browser_proc({WebBrowserInformationType::Title, title});