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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 } | |
701 }, false); | 696 }, false); |
702 | 697 |
703 window.addEventListener('hashchange', function() { | 698 window.addEventListener('hashchange', function() { |
704 if (location.hash == '#fullscreen' || location.hash == '#focus') { | 699 if (location.hash == '#fullscreen' || location.hash == '#focus') { |
705 this.originalStickyState_ = cvox.ChromeVox.isStickyPrefOn; | 700 this.originalStickyState_ = cvox.ChromeVox.isStickyPrefOn; |
706 cvox.ChromeVox.isStickyPrefOn = false; | 701 cvox.ChromeVox.isStickyPrefOn = false; |
707 } else { | 702 } else { |
708 cvox.ChromeVox.isStickyPrefOn = this.originalStickyState_; | 703 cvox.ChromeVox.isStickyPrefOn = this.originalStickyState_; |
709 } | 704 } |
710 }, false); | 705 }, false); |
OLD | NEW |