Mercurial > minori
comparison dep/animone/src/a11y.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 | 74e2365326c6 |
children |
comparison
equal
deleted
inserted
replaced
365:f81bed4e04ac | 366:886f66775f31 |
---|---|
2 | 2 |
3 #ifdef USE_WIN32 | 3 #ifdef USE_WIN32 |
4 # include "animone/a11y/win32.h" | 4 # include "animone/a11y/win32.h" |
5 #endif | 5 #endif |
6 | 6 |
7 #ifdef USE_ATSPI | |
8 # include "animone/a11y/atspi.h" | |
9 #endif | |
10 | |
7 namespace animone::internal { | 11 namespace animone::internal { |
8 | 12 |
9 bool GetWebBrowserInformation(const Window& window, web_browser_proc_t web_browser_proc) { | 13 bool GetWebBrowserInformation(const Result& result, web_browser_proc_t web_browser_proc) { |
10 bool success = false; | 14 bool success = false; |
11 | 15 |
12 #ifdef USE_WIN32 | 16 #ifdef USE_WIN32 |
13 success ^= win32::GetWebBrowserInformation(window, web_browser_proc); | 17 success ^= win32::GetWebBrowserInformation(result, web_browser_proc); |
18 #endif | |
19 | |
20 #ifdef USE_ATSPI | |
21 success ^= atspi::GetWebBrowserInformation(result, web_browser_proc); | |
14 #endif | 22 #endif |
15 | 23 |
16 return success; | 24 return success; |
17 } | 25 } |
18 | 26 |