diff options
author | Alan Viverette <alanv@google.com> | 2013-09-12 17:16:09 -0700 |
---|---|---|
committer | Alan Viverette <alanv@google.com> | 2013-09-12 17:16:09 -0700 |
commit | 77e9a28e2faa36f127231b842476d47f9823a83a (patch) | |
tree | 5637fce8e0565cc1fdd5f0367f38097a472ca6d6 /core/java/android/view/ViewParent.java | |
parent | 14e55996722db1e74996b837c136a6e188143718 (diff) | |
download | frameworks_base-77e9a28e2faa36f127231b842476d47f9823a83a.zip frameworks_base-77e9a28e2faa36f127231b842476d47f9823a83a.tar.gz frameworks_base-77e9a28e2faa36f127231b842476d47f9823a83a.tar.bz2 |
Add live region politeness to View, AccessibilityNodeInfo
Alters the content change API to contain a bit mask of types of
changes represented by the event. Live regions send CONTENT_CHANGED
events immediately. Removes unused APIs for EXPANDABLE/EXPANDED.
BUG: 10527284
Change-Id: I21523e85e47df23706976dc0a8bf615f83072c04
Diffstat (limited to 'core/java/android/view/ViewParent.java')
-rw-r--r-- | core/java/android/view/ViewParent.java | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/core/java/android/view/ViewParent.java b/core/java/android/view/ViewParent.java index 35113db..0137693 100644 --- a/core/java/android/view/ViewParent.java +++ b/core/java/android/view/ViewParent.java @@ -309,12 +309,21 @@ public interface ViewParent { public ViewParent getParentForAccessibility(); /** - * A child notifies its parent that the accessibility state of a subtree rooted - * at a given node changed. That is the structure of the subtree is different. - * - * @param root The root of the changed subtree. - */ - public void childAccessibilityStateChanged(View root); + * Notifies a view parent that the accessibility state of one of its + * descendants has changed and that the structure of the subtree is + * different. + * @param child The direct child whose subtree has changed. + * @param source The descendant view that changed. + * @param changeType A bit mask of the types of changes that occurred. One + * or more of: + * <ul> + * <li>{@link AccessibilityEvent#CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION} + * <li>{@link AccessibilityEvent#CONTENT_CHANGE_TYPE_SUBTREE} + * <li>{@link AccessibilityEvent#CONTENT_CHANGE_TYPE_TEXT} + * <li>{@link AccessibilityEvent#CONTENT_CHANGE_TYPE_UNDEFINED} + * </ul> + */ + public void notifySubtreeAccessibilityStateChanged(View child, View source, int changeType); /** * Tells if this view parent can resolve the layout direction. |