| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview The ChromeVox panel and menus. | 6 * @fileoverview The ChromeVox panel and menus. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 goog.provide('Panel'); | 9 goog.provide('Panel'); |
| 10 | 10 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 * @private | 62 * @private |
| 63 */ | 63 */ |
| 64 this.activeMenu_ = null; | 64 this.activeMenu_ = null; |
| 65 | 65 |
| 66 /** | 66 /** |
| 67 * True if the menu button in the panel is enabled at all. It's disabled if | 67 * True if the menu button in the panel is enabled at all. It's disabled if |
| 68 * ChromeVox Next is not active. | 68 * ChromeVox Next is not active. |
| 69 * @type {boolean} | 69 * @type {boolean} |
| 70 * @private | 70 * @private |
| 71 */ | 71 */ |
| 72 this.menusEnabled_ = false; | 72 this.menusEnabled_ = localStorage['useNext'] == 'true'; |
| 73 | 73 |
| 74 /** | 74 /** |
| 75 * A callback function to be executed to perform the action from selecting | 75 * A callback function to be executed to perform the action from selecting |
| 76 * a menu item after the menu has been closed and focus has been restored | 76 * a menu item after the menu has been closed and focus has been restored |
| 77 * to the page or wherever it was previously. | 77 * to the page or wherever it was previously. |
| 78 * @type {?Function} | 78 * @type {?Function} |
| 79 * @private | 79 * @private |
| 80 */ | 80 */ |
| 81 this.pendingCallback_ = null; | 81 this.pendingCallback_ = null; |
| 82 | 82 |
| (...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 }, false); | 648 }, false); |
| 649 | 649 |
| 650 window.addEventListener('hashchange', function() { | 650 window.addEventListener('hashchange', function() { |
| 651 if (location.hash == '#fullscreen' || location.hash == '#focus') { | 651 if (location.hash == '#fullscreen' || location.hash == '#focus') { |
| 652 this.originalStickyState_ = cvox.ChromeVox.isStickyPrefOn; | 652 this.originalStickyState_ = cvox.ChromeVox.isStickyPrefOn; |
| 653 cvox.ChromeVox.isStickyPrefOn = false; | 653 cvox.ChromeVox.isStickyPrefOn = false; |
| 654 } else { | 654 } else { |
| 655 cvox.ChromeVox.isStickyPrefOn = this.originalStickyState_; | 655 cvox.ChromeVox.isStickyPrefOn = this.originalStickyState_; |
| 656 } | 656 } |
| 657 }, false); | 657 }, false); |
| OLD | NEW |