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

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

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: Comments addressed. 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 <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 </g>
13 </defs> 22 </defs>
14 </svg> 23 </svg>
15 </core-iconset-svg> 24 </iron-iconset-svg>
16 25
17 <polymer-element name="host-pairing-page" noscript> 26 <dom-module name="host-pairing-page">
27
28 <link rel="stylesheet" href="oobe_screen_host_pairing_page.css">
29
18 <template> 30 <template>
19 <link rel="stylesheet" href="oobe_screen_host_pairing_page.css">
20
21 <div id="title"> 31 <div id="title">
22 <content select=".title"></content> 32 <content select=".title"></content>
23 </div> 33 </div>
24 <div id="content"> 34 <div id="content">
25 <content></content> 35 <content></content>
26 </div> 36 </div>
27 </template> 37 </template>
28 </polymer-element> 38 </dom-module>
29 39
30 <polymer-element name="host-pairing-screen" extends="oobe-screen"> 40 <dom-module name="host-pairing-screen">
41
42 <link rel="stylesheet" href="oobe_screen_host_pairing.css">
43
31 <template> 44 <template>
32 <link rel="stylesheet" href="oobe_screen_host_pairing.css"> 45 <neon-animated-pages attr-for-selected="name" selected="[[C.page]]"
33 46 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"> 47 <host-pairing-page name="welcome">
37 <div class="title">{{'welcomeTitle' | i18n}}</div> 48 <div class="title" i18n-content="login_HostPairingScreen_welcomeTitle">
38 <div>{{'welcomeText' | i18n}}</div> 49 </div>
50 <div i18n-content="login_HostPairingScreen_welcomeText"></div>
39 </host-pairing-page> 51 </host-pairing-page>
40 <host-pairing-page name="code-confirmation"> 52 <host-pairing-page name="code-confirmation">
41 <div class="title">{{'confirmationTitle' | i18n}}</div> 53 <div class="title"
54 i18n-content="login_HostPairingScreen_confirmationTitle">
55 </div>
42 <div id="code">{{C.code}}</div> 56 <div id="code">{{C.code}}</div>
43 </host-pairing-page> 57 </host-pairing-page>
44 <host-pairing-page name="update"> 58 <host-pairing-page name="update">
45 <div class="title">{{'updatingTitle' | i18n}}</div> 59 <div class="title" i18n-content="login_HostPairingScreen_updatingTitle">
46 <!-- Not yet implemented on backend side. --> 60 </div>
47 <!--div>{{['updatingText', C.downloadedMb, C.totalMb] | i18n}}</div-->
48 </host-pairing-page> 61 </host-pairing-page>
49 <host-pairing-page name="enrollment-introduction"> 62 <host-pairing-page name="enrollment-introduction">
50 <div class="title">{{'enrollTitle' | i18n}}</div> 63 <div class="title" i18n-content="login_HostPairingScreen_enrollTitle">
64 </div>
51 </host-pairing-page> 65 </host-pairing-page>
52 <host-pairing-page name="enrollment"> 66 <host-pairing-page name="enrollment">
53 <div class="title"> 67 <div class="title">
54 <!-- 'enrollmentTitle' contains <strong> tag. We need to wrap it in 68 <!-- 'enrollmentTitle' contains <strong> tag. We need to wrap it in
55 'html-echo' to prevent HTML escaping. --> 69 'html-echo' to prevent HTML escaping. -->
56 <html-echo 70 <html-echo content="[[getEnrollmentStepTitle_(C.enrollmentDomain)]]">
57 content="{{['enrollingTitle', C.enrollmentDomain] | i18n}}">
58 </html-echo> 71 </html-echo>
59 </div> 72 </div>
60 </host-pairing-page> 73 </host-pairing-page>
61 <host-pairing-page name="enrollment-error"> 74 <host-pairing-page name="enrollment-error">
62 <div class="title">{{'enrollmentErrorTitle' | i18n}}</div> 75 <div class="title"
63 <div>{{'errorNeedsRestart' | i18n}}</div> 76 i18n-content="login_HostPairingScreen_enrollmentErrorTitle">
77 </div>
78 <div i18n-content="login_HostPairingScreen_errorNeedsRestart"></div>
64 </host-pairing-page> 79 </host-pairing-page>
65 <host-pairing-page name="pairing-done"> 80 <host-pairing-page name="pairing-done">
66 <div class="title">{{'doneTitle' | i18n}}</div> 81 <div class="title" i18n-content="login_HostPairingScreen_doneTitle">
67 <div>{{'doneText' | i18n}}</div> 82 </div>
83 <div i18n-content="login_HostPairingScreen_doneText"></div>
68 </host-pairing-page> 84 </host-pairing-page>
69 </core-animated-pages> 85 </neon-animated-pages>
70 <core-item id="device-indicator"class="font-scalable" 86 <paper-icon-item id="device-indicator">
71 icon="host-pairing-icons:cast"> 87 <iron-icon icon="host-pairing-icons:cast" item-icon></iron-icon>
72 <div id="device-label">{{C.deviceName}}</div> 88 <div id="device-label">{{C.deviceName}}</div>
73 </core-item> 89 </paper-icon-item>
74 <div id="illustration"></div> 90 <div id="illustration"></div>
75 </template> 91 </template>
76 </polymer-element> 92 </dom-module>
93
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698