OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 'user-manager-tutorial' is the element that controls the | 6 * @fileoverview 'user-manager-tutorial' is the element that controls the |
7 * tutorial steps for the user manager page. | 7 * tutorial steps for the user manager page. |
8 */ | 8 */ |
9 (function() { | 9 (function() { |
10 | 10 |
11 /** @enum {string} */ | 11 /** @enum {string} */ |
12 var TutorialSteps = { | 12 var TutorialSteps = { |
13 YOUR_CHROME: 'yourChrome', | 13 YOUR_CHROME: 'yourChrome', |
14 FRIENDS: 'friends', | 14 FRIENDS: 'friends', |
15 GUESTS: 'guests', | 15 GUESTS: 'guests', |
16 COMPLETE: 'complete', | 16 COMPLETE: 'complete', |
17 NOT_YOU: 'notYou' | 17 NOT_YOU: 'notYou' |
18 }; | 18 }; |
19 | 19 |
20 Polymer({ | 20 Polymer({ |
21 is: 'user-manager-tutorial', | 21 is: 'user-manager-tutorial', |
22 | 22 |
23 behaviors: [ | |
24 I18nBehavior, | |
25 ], | |
26 | |
27 properties: { | 23 properties: { |
28 /** | 24 /** |
29 * True if the tutorial is currently hidden. | 25 * True if the tutorial is currently hidden. |
30 * @private {boolean} | 26 * @private {boolean} |
31 */ | 27 */ |
32 hidden_: { | 28 hidden_: { |
33 type: Boolean, | 29 type: Boolean, |
34 value: true | 30 value: true |
35 }, | 31 }, |
36 | 32 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 /** | 105 /** |
110 * Ends the tutorial. | 106 * Ends the tutorial. |
111 * @private | 107 * @private |
112 */ | 108 */ |
113 onDissmissTap_: function() { | 109 onDissmissTap_: function() { |
114 $('inner-container').classList.remove('disabled'); | 110 $('inner-container').classList.remove('disabled'); |
115 this.hidden_ = true; | 111 this.hidden_ = true; |
116 } | 112 } |
117 }); | 113 }); |
118 })(); | 114 })(); |
OLD | NEW |