| 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 /** | 5 /** |
| 6 * @fileoverview host pairing screen implementation. | 6 * @fileoverview host pairing screen implementation. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 login.createScreen('HostPairingScreen', 'host-pairing', function() { | 9 login.createScreen('HostPairingScreen', 'host-pairing', function() { |
| 10 /** | 10 /** |
| 11 * We can't pass Polymer screen directly to login.createScreen, because it | 11 * We can't pass Polymer screen directly to login.createScreen, because it |
| 12 * changes object's prototype chain. | 12 * changes object's prototype chain. |
| 13 */ | 13 */ |
| 14 return { | 14 return { |
| 15 polymerScreen_: null, | 15 polymerScreen_: null, |
| 16 | 16 |
| 17 decorate: function() { | 17 decorate: function() { |
| 18 polymerScreen_ = this.children[0]; | 18 polymerScreen_ = this.children[0]; |
| 19 polymerScreen_.decorate(this); | 19 polymerScreen_.decorate(this); |
| 20 }, | 20 }, |
| 21 | 21 |
| 22 onBeforeShow: function() { | 22 onBeforeShow: function() { |
| 23 polymerScreen_.onBeforeShow(); | 23 polymerScreen_.onBeforeShow(); |
| 24 } | 24 } |
| 25 }; | 25 }; |
| 26 }); | 26 }); |
| 27 | |
| 28 Polymer('host-pairing-screen', (function() { | |
| 29 'use strict'; | |
| 30 | |
| 31 /** @const */ var CALLBACK_CONTEXT_READY = 'contextReady'; | |
| 32 | |
| 33 return { | |
| 34 onBeforeShow: function() { | |
| 35 Oobe.getInstance().headerHidden = true; | |
| 36 }, | |
| 37 | |
| 38 /** @override */ | |
| 39 initialize: function() { | |
| 40 this.send(CALLBACK_CONTEXT_READY); | |
| 41 } | |
| 42 }; | |
| 43 })()); | |
| 44 | |
| OLD | NEW |