OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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('host-pairing-screen', (function() { | 5 Polymer({ |
| 6 is: 'host-pairing-page', |
| 7 |
| 8 behaviors: [Polymer.NeonAnimatableBehavior] |
| 9 }); |
| 10 |
| 11 Polymer((function() { |
6 'use strict'; | 12 'use strict'; |
7 | 13 |
8 /** @const */ var CALLBACK_CONTEXT_READY = 'contextReady'; | 14 /** @const */ var CALLBACK_CONTEXT_READY = 'contextReady'; |
9 | 15 |
10 return { | 16 return { |
| 17 is: 'host-pairing-screen', |
| 18 |
| 19 behaviors: [login.OobeScreenBehavior], |
| 20 |
11 onBeforeShow: function() { | 21 onBeforeShow: function() { |
12 Oobe.getInstance().headerHidden = true; | 22 Oobe.getInstance().headerHidden = true; |
13 }, | 23 }, |
14 | 24 |
15 /** @override */ | 25 /** @override */ |
16 initialize: function() { | 26 initialize: function() { |
| 27 ['code', |
| 28 'deviceName', |
| 29 'enrollmentDomain', |
| 30 'page'].forEach(this.registerBoundContextField, this); |
17 this.send(CALLBACK_CONTEXT_READY); | 31 this.send(CALLBACK_CONTEXT_READY); |
| 32 }, |
| 33 |
| 34 getEnrollmentStepTitle_: function(enrollmentDomain) { |
| 35 return this.i18n(['enrollingTitle', enrollmentDomain]); |
18 } | 36 } |
19 }; | 37 }; |
20 })()); | 38 })()); |
OLD | NEW |