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

Unified Diff: chrome/browser/resources/user_manager/user_manager_tutorial.js

Issue 199533004: [Mac, Win] Show a user manager tutorial once per profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: msw nits Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
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..570414cfe5ef2119d8b5f23323d44d25fdd42a32 100644
--- a/chrome/browser/resources/user_manager/user_manager_tutorial.js
+++ b/chrome/browser/resources/user_manager/user_manager_tutorial.js
@@ -79,8 +79,7 @@ cr.define('cr.ui.login', function() {
},
endTutorial_: function(e) {
- $('inner-container').style.opacity = '1';
- $('inner-container').style.pointerEvents = '';
+ $('inner-container').classList.remove('disabled');
},
decorate: function() {
@@ -104,10 +103,17 @@ 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').classList.add('disabled');
+ }
};
/**
« no previous file with comments | « chrome/browser/resources/user_manager/user_manager_tutorial.css ('k') | chrome/browser/ui/browser_dialogs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698