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

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

Issue 2445003002: Reland: Make ChromeVox Next the default ChromeVox experience (Closed)
Patch Set: speculative fixes Created 4 years, 1 month 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/output.js ('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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 * Close the tutorial. 686 * Close the tutorial.
687 */ 687 */
688 Panel.onCloseTutorial = function() { 688 Panel.onCloseTutorial = function() {
689 $('main').style.display = 'block'; 689 $('main').style.display = 'block';
690 $('tutorial').style.display = 'none'; 690 $('tutorial').style.display = 'none';
691 Panel.closeMenusAndRestoreFocus(); 691 Panel.closeMenusAndRestoreFocus();
692 }; 692 };
693 693
694 window.addEventListener('load', function() { 694 window.addEventListener('load', function() {
695 Panel.init(); 695 Panel.init();
696
697 switch (location.search.slice(1)) {
698 case 'tutorial':
699 Panel.onTutorial();
700 }
696 }, false); 701 }, false);
697 702
698 window.addEventListener('hashchange', function() { 703 window.addEventListener('hashchange', function() {
699 if (location.hash == '#fullscreen' || location.hash == '#focus') { 704 if (location.hash == '#fullscreen' || location.hash == '#focus') {
700 this.originalStickyState_ = cvox.ChromeVox.isStickyPrefOn; 705 this.originalStickyState_ = cvox.ChromeVox.isStickyPrefOn;
701 cvox.ChromeVox.isStickyPrefOn = false; 706 cvox.ChromeVox.isStickyPrefOn = false;
702 } else { 707 } else {
703 cvox.ChromeVox.isStickyPrefOn = this.originalStickyState_; 708 cvox.ChromeVox.isStickyPrefOn = this.originalStickyState_;
704 } 709 }
705 }, false); 710 }, false);
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698