| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 * @private | 97 * @private |
| 98 */ | 98 */ |
| 99 this.activeMenu_ = null; | 99 this.activeMenu_ = null; |
| 100 | 100 |
| 101 /** | 101 /** |
| 102 * True if the menu button in the panel is enabled at all. It's disabled if | 102 * True if the menu button in the panel is enabled at all. It's disabled if |
| 103 * ChromeVox Next is not active. | 103 * ChromeVox Next is not active. |
| 104 * @type {boolean} | 104 * @type {boolean} |
| 105 * @private | 105 * @private |
| 106 */ | 106 */ |
| 107 this.menusEnabled_ = localStorage['useNext'] == 'true'; | 107 this.menusEnabled_ = localStorage['useClassic'] == 'false'; |
| 108 | 108 |
| 109 /** | 109 /** |
| 110 * @type {Tutorial} | 110 * @type {Tutorial} |
| 111 * @private | 111 * @private |
| 112 */ | 112 */ |
| 113 this.tutorial_ = new Tutorial(); | 113 this.tutorial_ = new Tutorial(); |
| 114 | 114 |
| 115 Panel.setPendingCallback(null); | 115 Panel.setPendingCallback(null); |
| 116 Panel.updateFromPrefs(); | 116 Panel.updateFromPrefs(); |
| 117 | 117 |
| (...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 }, false); | 861 }, false); |
| 862 | 862 |
| 863 window.addEventListener('hashchange', function() { | 863 window.addEventListener('hashchange', function() { |
| 864 if (location.hash == '#fullscreen' || location.hash == '#focus') { | 864 if (location.hash == '#fullscreen' || location.hash == '#focus') { |
| 865 this.originalStickyState_ = cvox.ChromeVox.isStickyPrefOn; | 865 this.originalStickyState_ = cvox.ChromeVox.isStickyPrefOn; |
| 866 cvox.ChromeVox.isStickyPrefOn = false; | 866 cvox.ChromeVox.isStickyPrefOn = false; |
| 867 } else { | 867 } else { |
| 868 cvox.ChromeVox.isStickyPrefOn = this.originalStickyState_; | 868 cvox.ChromeVox.isStickyPrefOn = this.originalStickyState_; |
| 869 } | 869 } |
| 870 }, false); | 870 }, false); |
| OLD | NEW |