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

Unified Diff: chrome/common/extensions/api/braille_display_private.idl

Issue 2401393003: Add multiline braille support. (Closed)
Patch Set: more tests Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/braille_display_private.idl
diff --git a/chrome/common/extensions/api/braille_display_private.idl b/chrome/common/extensions/api/braille_display_private.idl
index 0c7a3e69dc00fdbf5cb99c85ff770776dcfcb7f6..7b77d36c1b661bb5a4b5dff57c34f24fea7c4d30 100644
--- a/chrome/common/extensions/api/braille_display_private.idl
+++ b/chrome/common/extensions/api/braille_display_private.idl
@@ -51,8 +51,10 @@ namespace brailleDisplayPrivate {
dictionary DisplayState {
// Whether a braille display is currently available.
boolean available;
- // Number of braille cells on the currently connected display.
- long? textCellCount;
+ // Number of rows of braille cells on the currently connected display.
+ long? textRowCount;
+ // Number of columns of braille cells on the currently connected display.
+ long? textColumnCount;
};
callback DisplayStateCallback = void(DisplayState result);
@@ -66,8 +68,11 @@ namespace brailleDisplayPrivate {
// raised in the corresponding cell with the low-order bit representing
// dot 1 and so on until bit 7 which corresponds to dot 8. If the number
// of bytes in the buffer is not equal to the display size, the buffer
- // will either be clipped or padded with blank cells on the right.
- static void writeDots(ArrayBuffer cells);
+ // will either be clipped or padded with blank cells on the right. The
+ // buffer is a 2D array compressed into 1D. The |columns| and |rows|
+ // parameters give the original 2D dimensions of the buffer. To access
+ // an element cells[r][c], simply access cells[r * columns + c].
+ static void writeDots(ArrayBuffer cells, long columns, long rows);
};
interface Events {

Powered by Google App Engine
This is Rietveld 408576698