| OLD | NEW |
| 1 <!-- Copyright 2015 The Chromium Authors. All rights reserved. | 1 <!-- Copyright 2015 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 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe
s/iron-flex-layout.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe
s/iron-flex-layout.html"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm
l"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm
l"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/iron-iconset-svg/iron-i
conset-svg.html"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/iron-iconset-svg/iron-i
conset-svg.html"> |
| 8 <link rel="import" href="chrome://resources/polymer/v1_0/iron-selector/iron-sele
ctor.html"> | 8 <link rel="import" href="chrome://resources/polymer/v1_0/iron-selector/iron-sele
ctor.html"> |
| 9 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animatio
ns/fade-in-animation.html"> | 9 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animatio
ns/fade-in-animation.html"> |
| 10 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animatio
ns/fade-out-animation.html"> | 10 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animatio
ns/fade-out-animation.html"> |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 </dom-module> | 104 </dom-module> |
| 105 | 105 |
| 106 <dom-module name="controller-pairing-screen"> | 106 <dom-module name="controller-pairing-screen"> |
| 107 <link rel="stylesheet" href="oobe_screen_controller_pairing.css"> | 107 <link rel="stylesheet" href="oobe_screen_controller_pairing.css"> |
| 108 | 108 |
| 109 <template> | 109 <template> |
| 110 <paper-material class="fit"> | 110 <paper-material class="fit"> |
| 111 <neon-animated-pages id="pages" selected="{{C.page}}" | 111 <neon-animated-pages id="pages" selected="{{C.page}}" |
| 112 attr-for-selected="name" class="fit"> | 112 attr-for-selected="name" class="fit"> |
| 113 <controller-pairing-page name="devices-discovery" class="big-font"> | 113 <controller-pairing-page name="devices-discovery" class="big-font"> |
| 114 <div class="title" | 114 <div class="title"> |
| 115 i18n-content="loginControllerPairingScreenWelcomeTitle"> | 115 $i18n{loginControllerPairingScreenWelcomeTitle} |
| 116 </div> | 116 </div> |
| 117 <div i18n-content="loginControllerPairingScreenSearching"></div> | 117 <div>$i18n{loginControllerPairingScreenSearching}</div> |
| 118 <paper-button class="help-button" on-tap="helpButtonClicked_" | 118 <paper-button class="help-button" on-tap="helpButtonClicked_"> |
| 119 i18n-content="loginControllerPairingScreenHelpBtn"> | 119 $i18n{loginControllerPairingScreenHelpBtn} |
| 120 </paper-button> | 120 </paper-button> |
| 121 </controller-pairing-page> | 121 </controller-pairing-page> |
| 122 | 122 |
| 123 <controller-pairing-page name="device-select" class="split"> | 123 <controller-pairing-page name="device-select" class="split"> |
| 124 <div class="title" | 124 <div class="title"> |
| 125 i18n-content="loginControllerPairingScreenSelectTitle"> | 125 $i18n{loginControllerPairingScreenSelectTitle} |
| 126 </div> | 126 </div> |
| 127 <pairing-device-list devices="[[C.devices]]" | 127 <pairing-device-list devices="[[C.devices]]" |
| 128 selected="{{selectedDevice}}"> | 128 selected="{{selectedDevice}}"> |
| 129 </pairing-device-list> | 129 </pairing-device-list> |
| 130 <paper-button class="help-button" on-tap="helpButtonClicked_" | 130 <paper-button class="help-button" on-tap="helpButtonClicked_"> |
| 131 i18n-content="loginControllerPairingScreenHelpBtn"> | 131 $i18n{loginControllerPairingScreenHelpBtn} |
| 132 </paper-button> | 132 </paper-button> |
| 133 <paper-button on-tap="userActed" action="chooseDevice" | 133 <paper-button on-tap="userActed" action="chooseDevice" |
| 134 disabled$="[[C.controlsDisabled]]" | 134 disabled$="[[C.controlsDisabled]]"> |
| 135 i18n-content="loginControllerPairingScreenConnectBtn"> | 135 $i18n{loginControllerPairingScreenConnectBtn} |
| 136 </paper-button> | 136 </paper-button> |
| 137 </controller-pairing-page> | 137 </controller-pairing-page> |
| 138 | 138 |
| 139 <controller-pairing-page name="device-not-found"> | 139 <controller-pairing-page name="device-not-found"> |
| 140 <div class="title" | 140 <div class="title"> |
| 141 i18n-content="loginControllerPairingScreenTroubleConnectingTitle"> | 141 $i18n{loginControllerPairingScreenTroubleConnectingTitle} |
| 142 </div> | 142 </div> |
| 143 <div i18n-content="loginControllerPairingScreenConnectingAdvice"> | 143 <div>$i18n{loginControllerPairingScreenConnectingAdvice}</div> |
| 144 </div> | 144 <paper-button on-tap="userActed" action="repeatDiscovery"> |
| 145 <paper-button on-tap="userActed" action="repeatDiscovery" | 145 $i18n{loginControllerPairingScreenAdviceGotItBtn} |
| 146 i18n-content="loginControllerPairingScreenAdviceGotItBtn"> | |
| 147 </paper-button> | 146 </paper-button> |
| 148 </controller-pairing-page> | 147 </controller-pairing-page> |
| 149 | 148 |
| 150 <controller-pairing-page name="establishing-connection" class="split"> | 149 <controller-pairing-page name="establishing-connection" class="split"> |
| 151 <div class="title" | 150 <div class="title"> |
| 152 i18n-content="loginControllerPairingScreenSelectTitle"> | 151 $i18n{loginControllerPairingScreenSelectTitle} |
| 153 </div> | 152 </div> |
| 154 <pairing-device-list devices="[[C.devices]]" | 153 <pairing-device-list devices="[[C.devices]]" |
| 155 selected="{{selectedDevice}}" connecting> | 154 selected="{{selectedDevice}}" connecting> |
| 156 </pairing-device-list> | 155 </pairing-device-list> |
| 157 <paper-button class="help-button" on-tap="helpButtonClicked_" | 156 <paper-button class="help-button" on-tap="helpButtonClicked_"> |
| 158 i18n-content="loginControllerPairingScreenHelpBtn"> | 157 $i18n{loginControllerPairingScreenHelpBtn} |
| 159 </paper-button> | 158 </paper-button> |
| 160 <paper-button disabled | 159 <paper-button disabled> |
| 161 i18n-content="loginControllerPairingScreenConnecting"> | 160 $i18n{loginControllerPairingScreenConnecting} |
| 162 </paper-button> | 161 </paper-button> |
| 163 </controller-pairing-page> | 162 </controller-pairing-page> |
| 164 | 163 |
| 165 <controller-pairing-page name="establishing-connection-error"> | 164 <controller-pairing-page name="establishing-connection-error"> |
| 166 <!-- TODO(dzhioev): Strings TBD. http://crbug.com/423740 --> | 165 <!-- TODO(dzhioev): Strings TBD. http://crbug.com/423740 --> |
| 167 <div class="title"> | 166 <div class="title"> |
| 168 Unable to connect to <span>[[selectedDevice]]<span> | 167 Unable to connect to <span>[[selectedDevice]]<span> |
| 169 </div> | 168 </div> |
| 170 <paper-button on-tap="userActed" action="repeatDiscovery"> | 169 <paper-button on-tap="userActed" action="repeatDiscovery"> |
| 171 Repeat discovery | 170 Repeat discovery |
| 172 </paper-button> | 171 </paper-button> |
| 173 </controller-pairing-page> | 172 </controller-pairing-page> |
| 174 | 173 |
| 175 <controller-pairing-page name="code-confirmation" class="split"> | 174 <controller-pairing-page name="code-confirmation" class="split"> |
| 176 <div class="title" | 175 <div class="title"> |
| 177 i18n-content="loginControllerPairingScreenConfirmationTitle"> | 176 $i18n{loginControllerPairingScreenConfirmationTitle} |
| 178 </div> | 177 </div> |
| 179 <div | 178 <div>$i18n{loginControllerPairingScreenConfirmationQuestion}</div> |
| 180 i18n-content="loginControllerPairingScreenConfirmationQuestion"> | |
| 181 </div> | |
| 182 <div id="code"><span>[[C.code]]</span></div> | 179 <div id="code"><span>[[C.code]]</span></div> |
| 183 <paper-button on-tap="userActed" action="rejectCode" | 180 <paper-button on-tap="userActed" action="rejectCode" |
| 184 disabled$="[[C.controlsDisabled]" | 181 disabled$="[[C.controlsDisabled]"> |
| 185 i18n-content="loginControllerPairingScreenRejectCodeBtn"> | 182 $i18n{loginControllerPairingScreenRejectCodeBtn} |
| 186 </paper-button> | 183 </paper-button> |
| 187 <paper-button on-tap="userActed" action="acceptCode" | 184 <paper-button on-tap="userActed" action="acceptCode" |
| 188 disabled$="[[C.controlsDisabled]]" | 185 disabled$="[[C.controlsDisabled]]"> |
| 189 i18n-content="loginControllerPairingScreenAcceptCodeBtn"> | 186 $i18n{loginControllerPairingScreenAcceptCodeBtn} |
| 190 </paper-button> | 187 </paper-button> |
| 191 </controller-pairing-page> | 188 </controller-pairing-page> |
| 192 | 189 |
| 193 <controller-pairing-page name="host-network-error" class="split"> | 190 <controller-pairing-page name="host-network-error" class="split"> |
| 194 <div class="title" | 191 <div class="title"> |
| 195 i18n-content="loginControllerPairingScreenHostNetworkErrorTitle"> | 192 $i18n{loginControllerPairingScreenHostNetworkErrorTitle} |
| 196 </div> | 193 </div> |
| 197 </controller-pairing-page> | 194 </controller-pairing-page> |
| 198 | 195 |
| 199 <controller-pairing-page name="host-update" class="split"> | 196 <controller-pairing-page name="host-update" class="split"> |
| 200 <div class="title" | 197 <div class="title"> |
| 201 i18n-content="loginControllerPairingScreenUpdateTitle"> | 198 $i18n{loginControllerPairingScreenUpdateTitle} |
| 202 </div> | 199 </div> |
| 203 <div i18n-content="loginControllerPairingScreenUpdateText"></div> | 200 <div>$i18n{loginControllerPairingScreenUpdateText}</div> |
| 204 <paper-progress indeterminate></paper-progress> | 201 <paper-progress indeterminate></paper-progress> |
| 205 </controller-pairing-page> | 202 </controller-pairing-page> |
| 206 | 203 |
| 207 <controller-pairing-page name="host-connection-lost" class="split"> | 204 <controller-pairing-page name="host-connection-lost" class="split"> |
| 208 <div class="title" | 205 <div class="title"> |
| 209 i18n-content="loginControllerPairingScreenConnectionLostTitle"> | 206 $i18n{loginControllerPairingScreenConnectionLostTitle} |
| 210 </div> | 207 </div> |
| 211 <div i18n-content="loginControllerPairingScreenConnectionLostText"> | 208 <div>$i18n{loginControllerPairingScreenConnectionLostText}</div> |
| 212 </div> | |
| 213 <paper-progress indeterminate></paper-progress> | 209 <paper-progress indeterminate></paper-progress> |
| 214 </controller-pairing-page> | 210 </controller-pairing-page> |
| 215 | 211 |
| 216 <controller-pairing-page name="enrollment-introduction" class="split"> | 212 <controller-pairing-page name="enrollment-introduction" class="split"> |
| 217 <div class="title" | 213 <div class="title"> |
| 218 i18n-content="loginControllerPairingScreenEnrollTitle"> | 214 $i18n{loginControllerPairingScreenEnrollTitle} |
| 219 </div> | 215 </div> |
| 220 <p i18n-content="loginControllerPairingScreenEnrollText1"></p> | 216 <p>$i18n{loginControllerPairingScreenEnrollText1}</p> |
| 221 <p> | 217 <p> |
| 222 <strong i18n-content="loginControllerPairingScreenEnrollText2"> | 218 <strong>$i18n{loginControllerPairingScreenEnrollText2}</strong> |
| 223 </strong> | |
| 224 </p> | 219 </p> |
| 225 <paper-button on-tap="userActed" action="proceedToAuthentication" | 220 <paper-button on-tap="userActed" action="proceedToAuthentication" |
| 226 disabled$="[[C.controlsDisabled]]" | 221 disabled$="[[C.controlsDisabled]]"> |
| 227 i18n-content="loginControllerPairingScreenContinueBtn"> | 222 $i18n{loginControllerPairingScreenContinueBtn} |
| 228 </paper-button> | 223 </paper-button> |
| 229 </controller-pairing-page> | 224 </controller-pairing-page> |
| 230 | 225 |
| 231 <controller-pairing-page name="authentication" class="split"> | 226 <controller-pairing-page name="authentication" class="split"> |
| 232 <div class="title" | 227 <div class="title"> |
| 233 i18n-content="loginControllerPairingScreenEnrollTitle"> | 228 $i18n{loginControllerPairingScreenEnrollTitle} |
| 234 </div> | 229 </div> |
| 235 <div>Not implemented.</div> | 230 <div>Not implemented.</div> |
| 236 </controller-pairing-page> | 231 </controller-pairing-page> |
| 237 | 232 |
| 238 <controller-pairing-page name="host-enrollment" class="progress"> | 233 <controller-pairing-page name="host-enrollment" class="progress"> |
| 239 <!-- This title contains <strong> tag inside. --> | 234 <!-- This title contains <strong> tag inside. --> |
| 240 <html-echo class="title" | 235 <html-echo class="title" |
| 241 content="[[getHostEnrollmentStepTitle_(C.enrollmentDomain)]]"> | 236 content="[[getHostEnrollmentStepTitle_(C.enrollmentDomain)]]"> |
| 242 </html-echo> | 237 </html-echo> |
| 243 </controller-pairing-page> | 238 </controller-pairing-page> |
| 244 | 239 |
| 245 <controller-pairing-page name="host-enrollment-error" class="progress"> | 240 <controller-pairing-page name="host-enrollment-error" class="progress"> |
| 246 <div class="title" | 241 <div class="title"> |
| 247 i18n-content="loginControllerPairingScreenEnrollmentErrorTitle"> | 242 $i18n{loginControllerPairingScreenEnrollmentErrorTitle} |
| 248 </div> | 243 </div> |
| 249 <div | 244 <div> |
| 250 i18n-content="loginControllerPairingScreenEnrollmentErrorHostResta
rts"> | 245 $i18n{loginControllerPairingScreenEnrollmentErrorHostRestarts} |
| 251 </div> | 246 </div> |
| 252 </controller-pairing-page> | 247 </controller-pairing-page> |
| 253 | 248 |
| 254 <controller-pairing-page name="pairing-done" class="big-font"> | 249 <controller-pairing-page name="pairing-done" class="big-font"> |
| 255 <div class="title" | 250 <div class="title"> |
| 256 i18n-content="loginControllerPairingScreenSuccessTitle"> | 251 $i18n{loginControllerPairingScreenSuccessTitle} |
| 257 </div> | 252 </div> |
| 258 <div><span>[[getSuccessMessage_(selectedDevice)]]</div> | 253 <div><span>[[getSuccessMessage_(selectedDevice)]]</div> |
| 259 <paper-button on-tap="userActed" action="startSession" | 254 <paper-button on-tap="userActed" action="startSession" |
| 260 disabled$="{{C.controlsDisabled}}" | 255 disabled$="{{C.controlsDisabled}}"> |
| 261 i18n-content="loginControllerPairingScreenContinueToHangoutsBtn"> | 256 $i18n{loginControllerPairingScreenContinueToHangoutsBtn} |
| 262 </paper-button> | 257 </paper-button> |
| 263 </controller-pairing-page> | 258 </controller-pairing-page> |
| 264 </neon-animated-pages> | 259 </neon-animated-pages> |
| 265 </paper-material> | 260 </paper-material> |
| 266 </template> | 261 </template> |
| 267 </dom-module> | 262 </dom-module> |
| 268 | |
| OLD | NEW |