Commit 6775eaa6 authored by dmazzoni's avatar dmazzoni Committed by Commit bot

Return virtual braille display size as columns and rows, not text count.

This was causing the braille captions to not show up since change r431444.

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

Review-Url: https://codereview.chromium.org/2532003004
Cr-Commit-Position: refs/heads/master@{#435048}
parent c2a3d73b
...@@ -141,7 +141,9 @@ cvox.BrailleCaptionsBackground.setActive = function(newValue) { ...@@ -141,7 +141,9 @@ cvox.BrailleCaptionsBackground.setActive = function(newValue) {
cvox.BrailleCaptionsBackground.getVirtualDisplayState = function() { cvox.BrailleCaptionsBackground.getVirtualDisplayState = function() {
var self = cvox.BrailleCaptionsBackground; var self = cvox.BrailleCaptionsBackground;
if (self.isEnabled()) { if (self.isEnabled()) {
return {available: true, textCellCount: 40}; // 40, why not? var rows = parseInt(localStorage['virtualBrailleRows'], 10) || 1;
var columns = parseInt(localStorage['virtualBrailleColumns'], 10) || 40;
return {available: true, textRowCount: rows, textColumnCount: columns};
} else { } else {
return {available: false}; return {available: false};
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment