Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1324)

Side by Side Diff: chrome/browser/resources/chromeos/login/oobe_screen_host_pairing.js

Issue 819633002: Rearanged imports of custom Polymer elements in OOBE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits. Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/resources/chromeos/login/oobe_screen_host_pairing.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/login/oobe_screen_host_pairing.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698