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
3 // found in the LICENSE file.
6 * @fileoverview host pairing screen implementation.
9 login.createScreen('HostPairingScreen', 'host-pairing', function() {
11 * We can't pass Polymer screen directly to login.createScreen, because it
12 * changes object's prototype chain.
17 decorate: function() {
18 polymerScreen_ = this.children[0];
19 polymerScreen_.decorate(this);
22 onBeforeShow: function() {
23 polymerScreen_.onBeforeShow();
28 Polymer('host-pairing-screen', (function() {
31 /** @const */ var CALLBACK_CONTEXT_READY = 'contextReady';
34 onBeforeShow: function() {
35 Oobe.getInstance().headerHidden = true;
39 initialize: function() {
40 this.send(CALLBACK_CONTEXT_READY);