diff options
author | Svetoslav Ganov <svetoslavganov@google.com> | 2012-04-19 21:44:35 -0700 |
---|---|---|
committer | Svetoslav Ganov <svetoslavganov@google.com> | 2012-04-19 22:08:42 -0700 |
commit | fefd20e927b7252d63acb7bb1852c5188e3c1b2e (patch) | |
tree | 1c61fca48a8221e93aa14f16da9881560be69313 /core/res | |
parent | 749e796eb3a42e21613a3b360000373601a8f50d (diff) | |
download | frameworks_base-fefd20e927b7252d63acb7bb1852c5188e3c1b2e.zip frameworks_base-fefd20e927b7252d63acb7bb1852c5188e3c1b2e.tar.gz frameworks_base-fefd20e927b7252d63acb7bb1852c5188e3c1b2e.tar.bz2 |
Adding an opt-in mechanism for gesture detection in AccessibilityService.
1. An accessibility service has to explicitly opt in to be notified
for gestures by the system. There is only one accessibility service
that handles gestures and in case it does not handle a gesture
the system performs default handling. This default handling ensures
that we have gesture navigation even if no accessibility service
would like to participate/customize the interaction model.
bug:5932640
Change-Id: Id8194293bd94097b455e9388b68134a45dc3b8fa
Diffstat (limited to 'core/res')
-rwxr-xr-x | core/res/res/values/attrs.xml | 2 | ||||
-rw-r--r-- | core/res/res/values/public.xml | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index 6f489d4..aa47993 100755 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -2470,6 +2470,8 @@ <!-- Flag whether the accessibility service wants to be able to retrieve the active window content. This setting cannot be changed at runtime. --> <attr name="canRetrieveWindowContent" format="boolean" /> + <!-- Flag whether the accessibility service can handle gesrures and wants such. --> + <attr name="canHandleGestures" format="boolean" /> <!-- Short description of the accessibility serivce purpose or behavior.--> <attr name="description" /> </declare-styleable> diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml index 03ba08c..3f8036b 100644 --- a/core/res/res/values/public.xml +++ b/core/res/res/values/public.xml @@ -3599,5 +3599,6 @@ <public type="attr" name="parentActivityName" /> <public type="attr" name="importantForAccessibility"/> + <public type="attr" name="canHandleGestures"/> </resources> |