| OLD | NEW |
| 1 <link rel="import" href="chrome://oobe/custom_elements.html"> | 1 <!-- Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 <link rel="import" href="chrome://resources/polymer/core-animated-pages/core-ani
mated-pages.html"> | 2 Use of this source code is governed by a BSD-style license that can be |
| 3 <link rel="import" href="chrome://resources/polymer/core-iconset-svg/core-iconse
t-svg.html"> | 3 found in the LICENSE file. --> |
| 4 <link rel="import" href="chrome://resources/polymer/core-item/core-item.html"> | |
| 5 <link rel="import" href="chrome://resources/polymer/polymer/polymer.html"> | |
| 6 | 4 |
| 7 <core-iconset-svg id="host-pairing-icons" iconSize="48"> | 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"> |
| 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/neon-animation/animatio
ns/fade-in-animation.html"> |
| 9 <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/neon-ani
matable-behavior.html"> |
| 11 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani
mated-pages.html"> |
| 12 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-icon-i
tem.html"> |
| 13 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html
"> |
| 14 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> |
| 15 |
| 16 <iron-iconset-svg name="host-pairing-icons" size="48"> |
| 8 <svg> | 17 <svg> |
| 9 <defs> | 18 <defs> |
| 10 <g id="cast"> | 19 <g id="cast"> |
| 11 <include src="../../../../app/theme/cast_icon.svg"> | 20 <include src="../../../../app/theme/cast_icon.svg"> |
| 12 </g> | 21 </iron-iconset-svg> |
| 13 </defs> | |
| 14 </svg> | |
| 15 </core-iconset-svg> | |
| 16 | 22 |
| 17 <polymer-element name="host-pairing-page" noscript> | 23 <dom-module name="host-pairing-page"> |
| 24 |
| 25 <link rel="stylesheet" href="oobe_screen_host_pairing_page.css"> |
| 26 |
| 18 <template> | 27 <template> |
| 19 <link rel="stylesheet" href="oobe_screen_host_pairing_page.css"> | |
| 20 | |
| 21 <div id="title"> | 28 <div id="title"> |
| 22 <content select=".title"></content> | 29 <content select=".title"></content> |
| 23 </div> | 30 </div> |
| 24 <div id="content"> | 31 <div id="content"> |
| 25 <content></content> | 32 <content></content> |
| 26 </div> | 33 </div> |
| 27 </template> | 34 </template> |
| 28 </polymer-element> | 35 </dom-module> |
| 29 | 36 |
| 30 <polymer-element name="host-pairing-screen" extends="oobe-screen"> | 37 <dom-module name="host-pairing-screen"> |
| 38 |
| 39 <link rel="stylesheet" href="oobe_screen_host_pairing.css"> |
| 40 |
| 31 <template> | 41 <template> |
| 32 <link rel="stylesheet" href="oobe_screen_host_pairing.css"> | 42 <neon-animated-pages attr-for-selected="name" selected="[[C.page]]" |
| 33 | 43 entry-animation="fade-in-animation" exit-animation="fade-out-animation"> |
| 34 <core-animated-pages transitions="cross-fade-all" | |
| 35 selected="{{C.page}}"> | |
| 36 <host-pairing-page name="welcome"> | 44 <host-pairing-page name="welcome"> |
| 37 <div class="title">{{'welcomeTitle' | i18n}}</div> | 45 <div class="title" i18n-content="login_HostPairingScreen_welcomeTitle"> |
| 38 <div>{{'welcomeText' | i18n}}</div> | 46 </div> |
| 47 <div i18n-content="login_HostPairingScreen_welcomeText"></div> |
| 39 </host-pairing-page> | 48 </host-pairing-page> |
| 40 <host-pairing-page name="code-confirmation"> | 49 <host-pairing-page name="code-confirmation"> |
| 41 <div class="title">{{'confirmationTitle' | i18n}}</div> | 50 <div class="title" |
| 51 i18n-content="login_HostPairingScreen_confirmationTitle"> |
| 52 </div> |
| 42 <div id="code">{{C.code}}</div> | 53 <div id="code">{{C.code}}</div> |
| 43 </host-pairing-page> | 54 </host-pairing-page> |
| 44 <host-pairing-page name="update"> | 55 <host-pairing-page name="update"> |
| 45 <div class="title">{{'updatingTitle' | i18n}}</div> | 56 <div class="title" i18n-content="login_HostPairingScreen_updatingTitle"> |
| 46 <!-- Not yet implemented on backend side. --> | 57 </div> |
| 47 <!--div>{{['updatingText', C.downloadedMb, C.totalMb] | i18n}}</div--> | |
| 48 </host-pairing-page> | 58 </host-pairing-page> |
| 49 <host-pairing-page name="enrollment-introduction"> | 59 <host-pairing-page name="enrollment-introduction"> |
| 50 <div class="title">{{'enrollTitle' | i18n}}</div> | 60 <div class="title" i18n-content="login_HostPairingScreen_enrollTitle"> |
| 61 </div> |
| 51 </host-pairing-page> | 62 </host-pairing-page> |
| 52 <host-pairing-page name="enrollment"> | 63 <host-pairing-page name="enrollment"> |
| 53 <div class="title"> | 64 <div class="title"> |
| 54 <!-- 'enrollmentTitle' contains <strong> tag. We need to wrap it in | 65 <!-- 'enrollmentTitle' contains <strong> tag. We need to wrap it in |
| 55 'html-echo' to prevent HTML escaping. --> | 66 'html-echo' to prevent HTML escaping. --> |
| 56 <html-echo | 67 <html-echo content="[[getEnrollmentStepTitle_(C.enrollmentDomain)]]"> |
| 57 content="{{['enrollingTitle', C.enrollmentDomain] | i18n}}"> | |
| 58 </html-echo> | 68 </html-echo> |
| 59 </div> | 69 </div> |
| 60 </host-pairing-page> | 70 </host-pairing-page> |
| 61 <host-pairing-page name="enrollment-error"> | 71 <host-pairing-page name="enrollment-error"> |
| 62 <div class="title">{{'enrollmentErrorTitle' | i18n}}</div> | 72 <div class="title" |
| 63 <div>{{'errorNeedsRestart' | i18n}}</div> | 73 i18n-content="login_HostPairingScreen_enrollmentErrorTitle"> |
| 74 </div> |
| 75 <div i18n-content="login_HostPairingScreen_errorNeedsRestart"></div> |
| 64 </host-pairing-page> | 76 </host-pairing-page> |
| 65 <host-pairing-page name="pairing-done"> | 77 <host-pairing-page name="pairing-done"> |
| 66 <div class="title">{{'doneTitle' | i18n}}</div> | 78 <div class="title" i18n-content="login_HostPairingScreen_doneTitle"> |
| 67 <div>{{'doneText' | i18n}}</div> | 79 </div> |
| 80 <div i18n-content="login_HostPairingScreen_doneText"></div> |
| 68 </host-pairing-page> | 81 </host-pairing-page> |
| 69 </core-animated-pages> | 82 </neon-animated-pages> |
| 70 <core-item id="device-indicator"class="font-scalable" | 83 <paper-icon-item id="device-indicator"> |
| 71 icon="host-pairing-icons:cast"> | 84 <iron-icon icon="host-pairing-icons:cast" item-icon></iron-icon> |
| 72 <div id="device-label">{{C.deviceName}}</div> | 85 <div id="device-label">{{C.deviceName}}</div> |
| 73 </core-item> | 86 </paper-icon-item> |
| 74 <div id="illustration"></div> | 87 <div id="illustration"></div> |
| 75 </template> | 88 </template> |
| 76 </polymer-element> | 89 </dom-module> |
| 90 |
| OLD | NEW |