New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 651570 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug
Team-Accessibility



Sign in to add a comment

Chrome OS assumes braille display is single-line

Project Member Reported by dmazz...@chromium.org, Sep 29 2016

Issue description

We want to support multi-line braille displays.

The library that talks to braille displays, brlapi, already has at least some support for multi-line, i.e. rows and columns.

 
The first step is just to keep track of the number of rows and columns separately, even if we don't populate them.

My suggestion is to start with the first line of code that takes the (rows, columns) from the braille display and turns it into a single cell count, and fix it to keep track of both rows and columns, then use the compiler to figure out what needs to change as a result of that.

Open chrome/browser/extensions/api/braille_display_private/brlapi_connection.cc and edit GetDisplaySize. Make it return rows and columns instead of just a size (see where it currently sets size to columns * rows).

Then try to compile Chrome and use the compile errors as a clue to figure out what to fix next.

At some point you will encounter braille_display_private.h and braille_display_private.cc, note that these are auto-generated from this file:

chrome/common/extensions/api/braille_display_private.idl

You will want to modify (long? textCellCount;) and replace it with rows and columns instead.

When you get all the way back to braille_display_manager.js, don't try to implement full support for multi-line, just use the number of columns instead of the total number of text cells.

The goal of this change is to update a bunch of data structures and make the code multi-line "aware", without actually changing any behavior for existing braille displays and without breaking anything.

Project Member

Comment 2 by bugdroid1@chromium.org, Nov 11 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/ffd46520fa89b84acb6a829f1b3d3b183477f1ad

commit ffd46520fa89b84acb6a829f1b3d3b183477f1ad
Author: ultimatedbz <ultimatedbz@google.com>
Date: Fri Nov 11 01:30:08 2016

Add multiline braille support.

Added code to take in 1D array and also row and column count.

Code compiles up to auto generated code. Cannot figure out how to generate a vector of vectors of chars. Also don't know where is appropriate to add in col and row information. Also do no know if input is assumed to be 1D or 2D

BUG=651570
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2401393003
Cr-Commit-Position: refs/heads/master@{#431444}

[modify] https://crrev.com/ffd46520fa89b84acb6a829f1b3d3b183477f1ad/chrome/browser/extensions/api/braille_display_private/braille_controller.h
[modify] https://crrev.com/ffd46520fa89b84acb6a829f1b3d3b183477f1ad/chrome/browser/extensions/api/braille_display_private/braille_controller_brlapi.cc
[modify] https://crrev.com/ffd46520fa89b84acb6a829f1b3d3b183477f1ad/chrome/browser/extensions/api/braille_display_private/braille_controller_brlapi.h
[modify] https://crrev.com/ffd46520fa89b84acb6a829f1b3d3b183477f1ad/chrome/browser/extensions/api/braille_display_private/braille_display_private_api.cc
[modify] https://crrev.com/ffd46520fa89b84acb6a829f1b3d3b183477f1ad/chrome/browser/extensions/api/braille_display_private/braille_display_private_apitest.cc
[modify] https://crrev.com/ffd46520fa89b84acb6a829f1b3d3b183477f1ad/chrome/browser/extensions/api/braille_display_private/brlapi_connection.cc
[modify] https://crrev.com/ffd46520fa89b84acb6a829f1b3d3b183477f1ad/chrome/browser/extensions/api/braille_display_private/brlapi_connection.h
[modify] https://crrev.com/ffd46520fa89b84acb6a829f1b3d3b183477f1ad/chrome/browser/extensions/api/braille_display_private/mock_braille_controller.cc
[modify] https://crrev.com/ffd46520fa89b84acb6a829f1b3d3b183477f1ad/chrome/browser/extensions/api/braille_display_private/stub_braille_controller.cc
[modify] https://crrev.com/ffd46520fa89b84acb6a829f1b3d3b183477f1ad/chrome/browser/extensions/api/braille_display_private/stub_braille_controller.h
[modify] https://crrev.com/ffd46520fa89b84acb6a829f1b3d3b183477f1ad/chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager.js
[modify] https://crrev.com/ffd46520fa89b84acb6a829f1b3d3b183477f1ad/chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager_test.unitjs
[modify] https://crrev.com/ffd46520fa89b84acb6a829f1b3d3b183477f1ad/chrome/browser/resources/chromeos/chromevox/host/chrome/externs.js
[modify] https://crrev.com/ffd46520fa89b84acb6a829f1b3d3b183477f1ad/chrome/common/extensions/api/braille_display_private.idl
[modify] https://crrev.com/ffd46520fa89b84acb6a829f1b3d3b183477f1ad/chrome/test/data/extensions/api_test/braille_display_private/display_state_changes/test.js
[modify] https://crrev.com/ffd46520fa89b84acb6a829f1b3d3b183477f1ad/chrome/test/data/extensions/api_test/braille_display_private/key_events/test.js
[modify] https://crrev.com/ffd46520fa89b84acb6a829f1b3d3b183477f1ad/chrome/test/data/extensions/api_test/braille_display_private/write_dots/test.js

Labels: NewComponent-Accessibility NewComponent-Accessibility-ChromeVox
Components: UI>Accessibility>ChromeVox
Labels: -newcomponent-accessibility -newcomponent-accessibility-chromevox
Components: -UI>Accessibility
Project Member

Comment 7 by sheriffbot@chromium.org, Apr 23 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: BrailleCrOS
Status: Available (was: Untriaged)

Sign in to add a comment