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

Side by Side Diff: chrome/browser/resources/chromeos/login/host-pairing-screen.js

Issue 1179323005: Polymer upgraded to 1.0 in login flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@polymer_pre_migration
Patch Set: Michael's comments. Created 5 years, 6 months 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
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 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 })());
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698