Chromium Code Reviews| Index: chrome/browser/resources/user_manager/user_manager_tutorial.js |
| diff --git a/chrome/browser/resources/user_manager/user_manager_tutorial.js b/chrome/browser/resources/user_manager/user_manager_tutorial.js |
| index d4511dd4872461c442e004577b1fe8e7f2a6380e..be255c49f16b7a515504b3fe297e488ca91f5ac2 100644 |
| --- a/chrome/browser/resources/user_manager/user_manager_tutorial.js |
| +++ b/chrome/browser/resources/user_manager/user_manager_tutorial.js |
| @@ -104,10 +104,18 @@ cr.define('cr.ui.login', function() { |
| UserManagerTutorial.startTutorial = function() { |
| $('user-manager-tutorial').hidden = false; |
| - // Disable interacting with the pods while the tutorial is showing. |
| - $('pod-row').focusPod(); // No focused pods. |
| - $('inner-container').style.opacity = '0.4'; |
| - $('inner-container').style.pointerEvents = 'none'; |
| + // If there's only one pod, show the slides to the side of the pod. |
| + // Otherwise, center the slides and disable interacting with the pods |
| + // while the tutorial is showing. |
| + if ($('pod-row').pods.length == 1) { |
| + $('slide-welcome').classList.add('single-pod'); |
| + $('slide-your-chrome').classList.add('single-pod'); |
| + $('slide-complete').classList.add('single-pod'); |
| + } else { |
| + $('pod-row').focusPod(); // No focused pods. |
| + $('inner-container').style.opacity = '0.4'; |
|
Nikita (slow)
2014/03/14 17:30:35
nit: Please define a separate CSS class rule and j
noms (inactive)
2014/03/14 18:24:36
Done. Added a style to screen-container.css
On 201
|
| + $('inner-container').style.pointerEvents = 'none'; |
| + } |
| }; |
| /** |