-
-
Notifications
You must be signed in to change notification settings - Fork 475
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add accessibility support for both windowed and OSR modes (#449).
Add Browser.SetAccessibilityState. Add AccessibilityHandler (OSR mode). Add cef.SetGlobalClientHandler. Add osr_test.py unittest for off-screen rendering mode (#59). Refactor main_test.py. Update tools/apidocs.py - generate TOCs by default Update tools/build_distrib.py - run all unit tests
- Loading branch information
Showing
24 changed files
with
816 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
[API categories](API-categories.md) | [API index](API-index.md) | ||
|
||
|
||
# AccessibilityHandler (interface) | ||
|
||
This handler is for use only with off-screen rendering enabled. | ||
See [RenderHandler](RenderHandler.md) for details. | ||
|
||
Implement this interface to receive accessibility notification when | ||
accessibility events have been registered. The methods of this class will | ||
be called on the UI thread. | ||
|
||
Callbacks in this interface are not associated with any specific browser, | ||
thus you must call cefpython.[SetGlobalClientHandler] or | ||
SetGlobalClientCallback() to use them. The callbacks names were prefixed | ||
with "`_`" to distinguish this special behavior. | ||
|
||
For an example of how to implement handler see [cefpython](cefpython.md).CreateBrowser(). For a list of all handler interfaces see [API > Client handlers](API#Client_handlers). | ||
|
||
|
||
Table of contents: | ||
* [Callbacks](#callbacks) | ||
* [_OnAccessibilityTreeChange](#_onaccessibilitytreechange) | ||
* [_OnAccessibilityLocationChange](#_onaccessibilitylocationchange) | ||
|
||
|
||
## Callbacks | ||
|
||
|
||
### _OnAccessibilityTreeChange | ||
|
||
| Parameter | Type | | ||
| --- | --- | | ||
| value | list | | ||
| __Return__ | void | | ||
|
||
Called after renderer process sends accessibility tree changes to the | ||
browser process. | ||
|
||
|
||
### _OnAccessibilityLocationChange | ||
|
||
| Parameter | Type | | ||
| --- | --- | | ||
| value | list | | ||
| __Return__ | void | | ||
|
||
Called after renderer process sends accessibility location changes to the | ||
browser process. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright (c) 2014 CEF Python, see the Authors file. | ||
# All rights reserved. Licensed under BSD 3-clause license. | ||
# Project website: https://github.com/cztomczak/cefpython | ||
|
||
cimport cef_types | ||
|
||
STATE_DEFAULT = cef_types.STATE_DEFAULT | ||
STATE_ENABLED = cef_types.STATE_ENABLED | ||
STATE_DISABLED = cef_types.STATE_DISABLED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.