| Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/panel_menu.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel_menu.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel_menu.js
|
| index d94914cc95c64be2f4468eed54396cf05dac01cc..50e0753d37d0643691dfd0fb5a69b4995ce4d2b5 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel_menu.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel_menu.js
|
| @@ -169,6 +169,22 @@ PanelMenu.prototype = {
|
| },
|
|
|
| /**
|
| + * Sets the active menu item index to be 0.
|
| + */
|
| + scrollToTop: function() {
|
| + this.activeIndex_ = 0;
|
| + this.items_[this.activeIndex_].element.focus();
|
| + },
|
| +
|
| + /**
|
| + * Sets the active menu item index to be the last index.
|
| + */
|
| + scrollToBottom: function() {
|
| + this.activeIndex_ = this.items_.length - 1;
|
| + this.items_[this.activeIndex_].element.focus();
|
| + },
|
| +
|
| + /**
|
| * Get the callback for the active menu item.
|
| * @return {Function} The callback.
|
| */
|
|
|