OSDN Git Service

Fix for #2904 (IAccessible window objects treeted as layout when unavailable).
authorMichael Curran <mick@kulgan.net>
Sat, 29 Dec 2012 06:15:25 +0000 (16:15 +1000)
committerMichael Curran <mick@kulgan.net>
Sat, 29 Dec 2012 06:15:25 +0000 (16:15 +1000)
commitf462c6f93d71161ad8673246c8e4edbd5817fb4c
tree1215ba3330f25dc9399ddfb412b4f7d330dbf2bc
parentc6fb5c0444a58b6529830e9dd6c0f74c3c0e553a
Fix for #2904 (IAccessible window objects treeted as layout when unavailable).
Specifically:
* IAccessible NVDAObject's presentationType property: remove all mentions of window objects and implement a new presentationType property on WindowRoot IAccessible NVDAObjects that returns unavailable if unavailable or invisible is in states, layout if the window does not have any extra IAccessibles, and at the very end, content.
* Move the windowHasExtraIAccessibles method onto the WindowRoot IAccessible NVDAObject.
* IAccessible NVDAObject's isPresentableFocusAncestor: remove any mention of window objects and  put a isPresentableFocusAncestor property on GenericWindow IAccessible NVDAObjects that is set to False.
source/NVDAObjects/IAccessible/__init__.py