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

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

Issue 2207743002: Fix panel initial state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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);
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698