Chromium Code Reviews| 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..38ce2e1ba5a6e07a7aea5ed8a461b189b747c73f 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,11 @@ PanelMenuItem = function(menuItemTitle, menuItemShortcut, callback) { |
| shortcut.className = 'menu-item-shortcut'; |
| shortcut.textContent = menuItemShortcut; |
| this.element.appendChild(shortcut); |
| + |
| + var braille = document.createElement('td'); |
|
dmazzoni
2016/11/10 01:22:05
It's going to get crowded showing all of these. Ho
David Tseng
2016/11/10 04:56:58
Good idea. Done.
|
| + braille.className = 'menu-item-shortcut'; |
| + braille.textContent = menuItemBraille; |
| + this.element.appendChild(braille); |
| }; |
| PanelMenuItem.prototype = { |