| Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/panel_menu_item.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel_menu_item.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel_menu_item.js
|
| index ff080afff4f61f0bacd452948c45c9d8f981624c..5a6ad4e099ea56e1216e008e6a44f69d8595a620 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel_menu_item.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel_menu_item.js
|
| @@ -11,10 +11,12 @@ goog.provide('PanelMenuItem');
|
| /**
|
| * @param {string} menuItemTitle The title of the menu item.
|
| * @param {string} menuItemShortcut The keystrokes to select this item.
|
| + * @param {string} menuItemBraille The braille keystrokes to select this item.
|
| * @param {Function} callback The function to call if this item is selected.
|
| * @constructor
|
| */
|
| -PanelMenuItem = function(menuItemTitle, menuItemShortcut, callback) {
|
| +PanelMenuItem = function(
|
| + menuItemTitle, menuItemShortcut, menuItemBraille, callback) {
|
| this.callback = callback;
|
|
|
| this.element = document.createElement('tr');
|
| @@ -35,6 +37,13 @@ PanelMenuItem = function(menuItemTitle, menuItemShortcut, callback) {
|
| shortcut.className = 'menu-item-shortcut';
|
| shortcut.textContent = menuItemShortcut;
|
| this.element.appendChild(shortcut);
|
| +
|
| + if (localStorage['brailleCaptions'] === String(true)) {
|
| + var braille = document.createElement('td');
|
| + braille.className = 'menu-item-shortcut';
|
| + braille.textContent = menuItemBraille;
|
| + this.element.appendChild(braille);
|
| + }
|
| };
|
|
|
| PanelMenuItem.prototype = {
|
|
|