Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(614)

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js

Issue 2693463002: Ensure ChromeVox defaults to ChromeVox Next on upgrade (Closed)
Patch Set: Rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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);
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698