Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Issue 2544203004: Display images in multiline Braille

Created:
4 years ago by ultimatedbz
Modified:
3 years, 10 months ago
CC:
chromium-reviews, alemate+watch_chromium.org, oshima+watch_chromium.org, aboxhall+watch_chromium.org, jlklein+watch-closure_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org, je_julie, arv+watch_chromium.org, dtseng+watch_chromium.org, vitalyp+closure_chromium.org, dbeam+watch-closure_chromium.org, dmazzoni+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Display images in multiline Braille This change allows the code to take in an image, scale it to the dimensions of the braille display, turn it to black and white, and then convert that data into braille, and then output it onto the virtual braille captions display. The algorithm that turns the image to black and white is very basic. If the pixel is white or transparent, I don't put a dot, otherwise I do. BUG=670925 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Patch Set 1 #

Patch Set 2 : set upstream to correct branch #

Total comments: 32

Patch Set 3 : Addressed Comments #

Total comments: 4

Patch Set 4 : Addressed comments #

Patch Set 5 : Rebased back onto Master #

Total comments: 6

Patch Set 6 : Minor Nits, added TODO comments #

Total comments: 1

Messages

Total messages: 34 (15 generated)
dmazzoni
Try editing chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js and add an event handler for imageFrameUpdated that calls onEventDefault. That might ...
4 years ago (2016-12-05 17:29:41 UTC) #6
ultimatedbz
https://codereview.chromium.org/2544203004/diff/20001/chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager.js File chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager.js (right): https://codereview.chromium.org/2544203004/diff/20001/chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager.js#newcode126 chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager.js:126: * Takes a imageDataUrl and displays it in braille ...
4 years ago (2016-12-05 19:32:01 UTC) #7
ultimatedbz
https://codereview.chromium.org/2544203004/diff/20001/chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager.js File chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager.js (right): https://codereview.chromium.org/2544203004/diff/20001/chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager.js#newcode78 chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager.js:78: if (area == 'local' && ('virtualBrailleRows' in changes || ...
4 years ago (2016-12-05 19:37:39 UTC) #8
dmazzoni
lgtm I had one last suggestion, maybe you missed it before. Try editing chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js and ...
4 years ago (2016-12-06 07:39:06 UTC) #9
dmazzoni
https://codereview.chromium.org/2544203004/diff/40001/chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager.js File chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager.js (right): https://codereview.chromium.org/2544203004/diff/40001/chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager.js#newcode136 chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager.js:136: var canvas1 = document.createElement('canvas'); Nit: maybe just |canvas| since ...
4 years ago (2016-12-06 07:39:42 UTC) #10
ultimatedbz
https://codereview.chromium.org/2544203004/diff/40001/chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager.js File chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager.js (right): https://codereview.chromium.org/2544203004/diff/40001/chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager.js#newcode136 chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager.js:136: var canvas1 = document.createElement('canvas'); On 2016/12/06 07:39:42, dmazzoni wrote: ...
4 years ago (2016-12-07 22:03:48 UTC) #11
dmazzoni
Update the change description and run try jobs? If clean this looks ready to go ...
4 years ago (2016-12-08 05:51:35 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2544203004/80001
4 years ago (2016-12-08 08:34:50 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/321380)
4 years ago (2016-12-08 08:41:28 UTC) #18
David Tseng
https://codereview.chromium.org/2544203004/diff/80001/chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager.js File chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager.js (right): https://codereview.chromium.org/2544203004/diff/80001/chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager.js#newcode147 chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager.js:147: * @param {!string} imageUrl The image, in the form ...
4 years ago (2016-12-08 16:44:22 UTC) #20
dmazzoni
+dbeam for third_party/closure_compiler/externs/automation.js
4 years ago (2016-12-08 16:57:11 UTC) #22
David Tseng
https://codereview.chromium.org/2544203004/diff/80001/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js File chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js (right): https://codereview.chromium.org/2544203004/diff/80001/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js#newcode1020 chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js:1020: node.getImageData(0, 0); This is going to be pretty strange ...
4 years ago (2016-12-08 17:09:21 UTC) #23
dmazzoni
On 2016/12/08 17:09:21, David Tseng wrote: > This is going to be pretty strange in ...
4 years ago (2016-12-08 17:28:59 UTC) #24
ultimatedbz
https://codereview.chromium.org/2544203004/diff/80001/chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager.js File chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager.js (right): https://codereview.chromium.org/2544203004/diff/80001/chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager.js#newcode147 chrome/browser/resources/chromeos/chromevox/braille/braille_display_manager.js:147: * @param {!string} imageUrl The image, in the form ...
4 years ago (2016-12-08 19:29:05 UTC) #25
ultimatedbz
4 years ago (2016-12-08 19:29:06 UTC) #26
Dan Beam
where was the corresponding .idl change?
4 years ago (2016-12-08 19:35:04 UTC) #27
dmazzoni
The IDL change was here: https://codereview.chromium.org/2522543004 This is the first time we're calling the new ...
4 years ago (2016-12-08 20:56:38 UTC) #28
Dan Beam
lgtm
4 years ago (2016-12-13 19:31:33 UTC) #33
Dan Beam
4 years ago (2016-12-15 00:34:02 UTC) #34
not lgtm

https://codereview.chromium.org/2544203004/diff/100001/third_party/closure_co...
File third_party/closure_compiler/externs/automation.js (right):

https://codereview.chromium.org/2544203004/diff/100001/third_party/closure_co...
third_party/closure_compiler/externs/automation.js:561: function(width, height)
{};
if this were run by the script on the top of this file, these variable names
would be maxWidth and maxHeight.

please either figure out a way to run the script (preferred), file bugs as to
why it doesn't work, or remove the note about generation from the top of this
file (and potentially move the file somewhere else).

Powered by Google App Engine
This is Rietveld 408576698