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

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

Issue 2687153004: Merge to m57: Ensure ChromeVox defaults to ChromeVox Next on upgrade (Closed)
Patch Set: 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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);
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