| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 * @private | 85 * @private |
| 86 */ | 86 */ |
| 87 this.activeMenu_ = null; | 87 this.activeMenu_ = null; |
| 88 | 88 |
| 89 /** | 89 /** |
| 90 * True if the menu button in the panel is enabled at all. It's disabled if | 90 * True if the menu button in the panel is enabled at all. It's disabled if |
| 91 * ChromeVox Next is not active. | 91 * ChromeVox Next is not active. |
| 92 * @type {boolean} | 92 * @type {boolean} |
| 93 * @private | 93 * @private |
| 94 */ | 94 */ |
| 95 this.menusEnabled_ = localStorage['useNext'] == 'true'; | 95 this.menusEnabled_ = localStorage['useClassic'] == 'false'; |
| 96 | 96 |
| 97 /** | 97 /** |
| 98 * True if we're currently in incremental search mode. | 98 * True if we're currently in incremental search mode. |
| 99 * @type {boolean} | 99 * @type {boolean} |
| 100 * @private | 100 * @private |
| 101 */ | 101 */ |
| 102 this.searching_ = false; | 102 this.searching_ = false; |
| 103 | 103 |
| 104 /** | 104 /** |
| 105 * @type {Tutorial} | 105 * @type {Tutorial} |
| (...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 870 }, false); | 870 }, false); |
| 871 | 871 |
| 872 window.addEventListener('hashchange', function() { | 872 window.addEventListener('hashchange', function() { |
| 873 if (location.hash == '#fullscreen' || location.hash == '#focus') { | 873 if (location.hash == '#fullscreen' || location.hash == '#focus') { |
| 874 this.originalStickyState_ = cvox.ChromeVox.isStickyPrefOn; | 874 this.originalStickyState_ = cvox.ChromeVox.isStickyPrefOn; |
| 875 cvox.ChromeVox.isStickyPrefOn = false; | 875 cvox.ChromeVox.isStickyPrefOn = false; |
| 876 } else { | 876 } else { |
| 877 cvox.ChromeVox.isStickyPrefOn = this.originalStickyState_; | 877 cvox.ChromeVox.isStickyPrefOn = this.originalStickyState_; |
| 878 } | 878 } |
| 879 }, false); | 879 }, false); |
| OLD | NEW |