| 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((function() { | 5 Polymer((function() { | 
| 6   /** @const */ var ICON_COLORS = ['#F0B9CB', '#F0ACC3', '#F098B6', '#F084A9', | 6   /** @const */ var ICON_COLORS = ['#F0B9CB', '#F0ACC3', '#F098B6', '#F084A9', | 
| 7                                    '#F06D99', '#F05287', '#F0467F', '#F03473', | 7                                    '#F06D99', '#F05287', '#F0467F', '#F03473', | 
| 8                                    '#F01E65', '#F00051']; | 8                                    '#F01E65', '#F00051']; | 
| 9   return { | 9   return { | 
| 10     is: 'pairing-device-list', | 10     is: 'pairing-device-list', | 
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 108     initialize: function() { | 108     initialize: function() { | 
| 109       ['code', | 109       ['code', | 
| 110        'controlsDisabled', | 110        'controlsDisabled', | 
| 111        'devices', | 111        'devices', | 
| 112        'enrollmentDomain', | 112        'enrollmentDomain', | 
| 113        'page'].forEach(this.registerBoundContextField, this); | 113        'page'].forEach(this.registerBoundContextField, this); | 
| 114       this.context.set(CONTEXT_KEY_CONTROLS_DISABLED, true); | 114       this.context.set(CONTEXT_KEY_CONTROLS_DISABLED, true); | 
| 115       this.commitContextChanges(); | 115       this.commitContextChanges(); | 
| 116     }, | 116     }, | 
| 117 | 117 | 
|  | 118     i18n: function(args) { | 
|  | 119       return loadTimeData.getStringF.apply(loadTimeData, args); | 
|  | 120     }, | 
|  | 121 | 
| 118     deviceListChanged_: function() { | 122     deviceListChanged_: function() { | 
| 119       this.selectedDevice = this.context.get(CONTEXT_KEY_SELECTED_DEVICE, null); | 123       this.selectedDevice = this.context.get(CONTEXT_KEY_SELECTED_DEVICE, null); | 
| 120     }, | 124     }, | 
| 121 | 125 | 
| 122     selectedDeviceChanged_: function(selectedDevice) { | 126     selectedDeviceChanged_: function(selectedDevice) { | 
| 123       this.context.set(CONTEXT_KEY_SELECTED_DEVICE, | 127       this.context.set(CONTEXT_KEY_SELECTED_DEVICE, | 
| 124           selectedDevice ? selectedDevice : ''); | 128           selectedDevice ? selectedDevice : ''); | 
| 125       this.commitContextChanges(); | 129       this.commitContextChanges(); | 
| 126     }, | 130     }, | 
| 127 | 131 | 
| 128     helpButtonClicked_: function() { | 132     helpButtonClicked_: function() { | 
| 129       console.error('Help is not implemented yet.'); | 133       console.error('Help is not implemented yet.'); | 
| 130     }, | 134     }, | 
| 131 | 135 | 
| 132     getHostEnrollmentStepTitle_: function(domain) { | 136     getHostEnrollmentStepTitle_: function(domain) { | 
| 133       return this.i18n(['enrollmentInProgress', domain]); | 137       return this.i18n(['loginControllerPairingScreenEnrollmentInProgress', | 
|  | 138                        domain]); | 
| 134     }, | 139     }, | 
| 135 | 140 | 
| 136     getSuccessMessage_: function(selectedDevice) { | 141     getSuccessMessage_: function(selectedDevice) { | 
| 137       return this.i18n(['successText', selectedDevice]); | 142       return this.i18n(['loginControllerPairingScreenSuccessText', | 
|  | 143                        selectedDevice]); | 
| 138     } | 144     } | 
| 139   }; | 145   }; | 
| 140 })()); | 146 })()); | 
| 141 | 147 | 
| OLD | NEW | 
|---|