| 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 Polymer((function() { | 5 Polymer((function() { |
| 6 var DEFAULT_EMAIL_DOMAIN = '@gmail.com'; | 6 var DEFAULT_EMAIL_DOMAIN = '@gmail.com'; |
| 7 | 7 |
| 8 var TRANSITION_TYPE = { | 8 var TRANSITION_TYPE = { |
| 9 FORWARD: 0, | 9 FORWARD: 0, |
| 10 BACKWARD: 1, | 10 BACKWARD: 1, |
| 11 NONE: 2 | 11 NONE: 2 |
| 12 }; | 12 }; |
| 13 | 13 |
| 14 return { | 14 return { |
| 15 is: 'offline-gaia', | 15 is: 'offline-gaia', |
| 16 | 16 |
| 17 properties: { | 17 properties: { |
| 18 disabled: { | 18 disabled: { |
| 19 type: Boolean, | 19 type: Boolean, |
| 20 value: false | 20 value: false |
| 21 }, | 21 }, |
| 22 | 22 |
| 23 enterpriseInfo: String, | 23 showEnterpriseMessage: { |
| 24 type: Boolean, |
| 25 value: false |
| 26 }, |
| 24 | 27 |
| 25 emailDomain: String | 28 emailDomain: String |
| 26 }, | 29 }, |
| 27 | 30 |
| 28 ready: function() { | 31 ready: function() { |
| 29 /** | 32 /** |
| 30 * Workaround for | 33 * Workaround for |
| 31 * https://github.com/PolymerElements/neon-animation/issues/32 | 34 * https://github.com/PolymerElements/neon-animation/issues/32 |
| 32 * TODO(dzhioev): Remove when fixed in Polymer. | 35 * TODO(dzhioev): Remove when fixed in Polymer. |
| 33 */ | 36 */ |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 var isForward = transitionType === TRANSITION_TYPE.FORWARD; | 147 var isForward = transitionType === TRANSITION_TYPE.FORWARD; |
| 145 var isRTL = this.isRTL_(); | 148 var isRTL = this.isRTL_(); |
| 146 this.$.animatedPages.entryAnimation = | 149 this.$.animatedPages.entryAnimation = |
| 147 'slide-from-' + (isForward === isRTL ? 'left' : 'right') + | 150 'slide-from-' + (isForward === isRTL ? 'left' : 'right') + |
| 148 '-animation'; | 151 '-animation'; |
| 149 this.$.animatedPages.exitAnimation = | 152 this.$.animatedPages.exitAnimation = |
| 150 'slide-' + (isForward === isRTL ? 'right' : 'left') + '-animation'; | 153 'slide-' + (isForward === isRTL ? 'right' : 'left') + '-animation'; |
| 151 } | 154 } |
| 152 }; | 155 }; |
| 153 })()); | 156 })()); |
| OLD | NEW |