Support braille cursor routing in rich text

Desktop / Chromium - dtseng [] - 15 June 2017 21:56 EDT

- annotate editable lines with static text spans- for a given routing position, find a static text node span- convert this position into the local position of the node span's text by taking the difference between the routing index and the span start- modify routing action to place doc selection when the actionable node is richly editable
- fix a bug where next/previous on line refered to invalid nodes (i.e. valid instances of AutomationNode, but role === undefined).

TEST=manual. On rich text, do some routing. BUG= CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: Cr-Commit-Position: refs/heads/master@{#479910}

d897677 Support braille cursor routing in rich text.
.../chromevox/cvox2/background/background.js | 18 +-
.../cvox2/background/desktop_automation_handler.js | 12 ++
.../chromeos/chromevox/cvox2/background/editing.js | 191 +++++++++++++++------
.../chromevox/cvox2/background/editing_test.extjs | 190 +++++++++++++++++++-
.../chromeos/chromevox/cvox2/background/output.js | 4 +-
5 files changed, 352 insertions(+), 63 deletions(-)


  • Share