OSDN Git Service

bug:3325039 Making the cursor ring movement send accessibility events.
authorSvetoslav Ganov <svetoslavganov@google.com>
Thu, 6 Jan 2011 02:52:54 +0000 (18:52 -0800)
committerSvetoslav Ganov <svetoslavganov@google.com>
Fri, 7 Jan 2011 22:03:44 +0000 (14:03 -0800)
commita7dc4e9c5714f32e3a46c4d39f096e4d463a40cb
tree997308b88022b8608e91baea2e36ca9f3b40d791
parent44009dc8813df9eb0815bf581740a7c365f3b515
bug:3325039 Making the cursor ring movement send accessibility events.

1. Added a mechanism to select the cursor ring content if accessibility is
   enabled - This is achieved by sending an event to the WebCore thread
   (if accessibility is enabled) to select the content of the cursor when
   the latter moves. Added code in WebViewCore to select the given node
   and notify the UI thread for the selection markup which is delivered
   of the accessibility injector which manages sending accessibility
   events. This is relevant for adding accessibility to WebView if
   JavaScript is not enabled. (If JS is enabled we inject a screenreader
   written in JS).

2. Fixed the event delegation to the accessibility injector since it
   should be able to consume key events of interest and perform some
   action which leads to sending appropriate accessibility event.
   In the previous implementation it was possible that the injector
   consumes the event but the latter was bubbled up.

3. Added function to scroll the selection into view while moving it
   around based on user commands.

Note: This is a two project change.

Change-Id: Ica27f317e194474d4e38aba5d7a2c0acc9f05a33
WebKit/android/jni/WebViewCore.cpp
WebKit/android/jni/WebViewCore.h
WebKit/android/nav/WebView.cpp