Mercurial > minori
annotate dep/animone/src/a11y.cc @ 367:8d45d892be88 default tip
*: instead of pugixml, use Qt XML features
this means we have one extra Qt dependency though...
author | Paper <paper@tflc.us> |
---|---|
date | Sun, 17 Nov 2024 22:55:47 -0500 |
parents | 886f66775f31 |
children |
rev | line source |
---|---|
340
74e2365326c6
dep/animone: add experimental accessibility strategy
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
1 #include "animone/a11y.h" |
74e2365326c6
dep/animone: add experimental accessibility strategy
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
2 |
74e2365326c6
dep/animone: add experimental accessibility strategy
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
3 #ifdef USE_WIN32 |
74e2365326c6
dep/animone: add experimental accessibility strategy
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
4 # include "animone/a11y/win32.h" |
74e2365326c6
dep/animone: add experimental accessibility strategy
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
5 #endif |
74e2365326c6
dep/animone: add experimental accessibility strategy
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
6 |
366
886f66775f31
animone: add preliminary AT-SPI stuff
Paper <paper@tflc.us>
parents:
340
diff
changeset
|
7 #ifdef USE_ATSPI |
886f66775f31
animone: add preliminary AT-SPI stuff
Paper <paper@tflc.us>
parents:
340
diff
changeset
|
8 # include "animone/a11y/atspi.h" |
886f66775f31
animone: add preliminary AT-SPI stuff
Paper <paper@tflc.us>
parents:
340
diff
changeset
|
9 #endif |
886f66775f31
animone: add preliminary AT-SPI stuff
Paper <paper@tflc.us>
parents:
340
diff
changeset
|
10 |
340
74e2365326c6
dep/animone: add experimental accessibility strategy
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
11 namespace animone::internal { |
74e2365326c6
dep/animone: add experimental accessibility strategy
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
12 |
366
886f66775f31
animone: add preliminary AT-SPI stuff
Paper <paper@tflc.us>
parents:
340
diff
changeset
|
13 bool GetWebBrowserInformation(const Result& result, web_browser_proc_t web_browser_proc) { |
340
74e2365326c6
dep/animone: add experimental accessibility strategy
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
14 bool success = false; |
74e2365326c6
dep/animone: add experimental accessibility strategy
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
15 |
74e2365326c6
dep/animone: add experimental accessibility strategy
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
16 #ifdef USE_WIN32 |
366
886f66775f31
animone: add preliminary AT-SPI stuff
Paper <paper@tflc.us>
parents:
340
diff
changeset
|
17 success ^= win32::GetWebBrowserInformation(result, web_browser_proc); |
886f66775f31
animone: add preliminary AT-SPI stuff
Paper <paper@tflc.us>
parents:
340
diff
changeset
|
18 #endif |
886f66775f31
animone: add preliminary AT-SPI stuff
Paper <paper@tflc.us>
parents:
340
diff
changeset
|
19 |
886f66775f31
animone: add preliminary AT-SPI stuff
Paper <paper@tflc.us>
parents:
340
diff
changeset
|
20 #ifdef USE_ATSPI |
886f66775f31
animone: add preliminary AT-SPI stuff
Paper <paper@tflc.us>
parents:
340
diff
changeset
|
21 success ^= atspi::GetWebBrowserInformation(result, web_browser_proc); |
340
74e2365326c6
dep/animone: add experimental accessibility strategy
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
22 #endif |
74e2365326c6
dep/animone: add experimental accessibility strategy
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
23 |
74e2365326c6
dep/animone: add experimental accessibility strategy
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
24 return success; |
74e2365326c6
dep/animone: add experimental accessibility strategy
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
25 } |
74e2365326c6
dep/animone: add experimental accessibility strategy
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
26 |
74e2365326c6
dep/animone: add experimental accessibility strategy
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
27 } // namespace animone::internal |