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

Side by Side Diff: chrome/browser/resources/chromeos/login/offline_gaia.html

Issue 1110493002: ChromeOS Gaia: UI polishing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed line-height for gaia-body-text Created 5 years, 8 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://resources/polymer/polymer/polymer.html"> 1 <link rel="import" href="chrome://resources/polymer/polymer/polymer.html">
2 <link rel="import" href="chrome://resources/polymer/polymer/layout.html"> 2 <link rel="import" href="chrome://resources/polymer/polymer/layout.html">
3 <link rel="import" href="chrome://resources/polymer/core-animated-pages/core-ani mated-pages.html"> 3 <link rel="import" href="chrome://resources/polymer/core-animated-pages/core-ani mated-pages.html">
4 <link rel="import" href="chrome://resources/polymer/core-animated-pages/transiti ons/slide-from-right.html"> 4 <link rel="import" href="chrome://resources/polymer/core-animated-pages/transiti ons/slide-from-right.html">
5 <link rel="import" href="chrome://resources/polymer/paper-button/paper-button.ht ml"> 5 <link rel="import" href="chrome://resources/polymer/paper-button/paper-button.ht ml">
6 <link rel="import" href="chrome://resources/polymer/paper-dialog/paper-action-di alog.html"> 6 <link rel="import" href="chrome://resources/polymer/paper-dialog/paper-action-di alog.html">
7 7
8 <!-- 8 <!--
9 Offline UI for the New Gaia flow. 9 Offline UI for the New Gaia flow.
10 Contains two cards with a slide transition between them: 10 Contains two cards with a slide transition between them:
11 1. Email input form. 11 1. Email input form.
12 2. Password input form. 12 2. Password input form.
13 13
14 Example: 14 Example:
15 <offline-gaia></offline-gaia> 15 <offline-gaia></offline-gaia>
16 16
17 Attributes: 17 Attributes:
18 'enterpriseInfo' - Information about device management. 18 'enterpriseInfo' - Information about device management.
19 'emailDomain' - autocomplete domain for the email input.
19 20
20 Events: 21 Events:
21 'flowfinished' - fired when user enters login and password. Fires with an 22 'authCompleted' - fired when user enters login and password. Fires with an
22 argument |credentials| which contains. 23 argument |credentials| which contains.
23 |credentials| = { 'useOffline': true, 24 |credentials| = { 'useOffline': true,
24 'email': <typed email>, 25 'email': <email>,
25 'password': <typed password> } 26 'password': <typed password> }
27 If user did not type domain |email| will be added by
28 "@gmail.com" or by 'emailDomain' if it is set.
26 Methods: 29 Methods:
27 'focus' - focuses current screen (email input or password input); 30 'focus' - focuses current screen (email input or password input);
28 'setEmail' - accepts an argument |email|. If |email| is empty it sets 31 'setEmail' - accepts an argument |email|. If |email| is empty it sets
29 current screen to the email input, otherwise it sets current 32 current screen to the email input, otherwise it sets current
30 screen to password input and shows error that previously 33 screen to password input and shows error that previously
31 entered password is incorrect. 34 entered password is incorrect.
32 --> 35 -->
33 <polymer-element name="offline-gaia" vertical layout attributes="enterpriseInfo" > 36 <polymer-element name="offline-gaia" vertical layout
37 attributes="enterpriseInfo emailDomain">
34 <template> 38 <template>
35 <link rel="stylesheet" href="offline_gaia.css"> 39 <link rel="stylesheet" href="offline_gaia.css">
36 <gaia-core-icon-button id="backButton" icon="arrow-back" 40 <gaia-core-icon-button id="backButton" icon="arrow-back"
37 on-tap="{{onBack}}"> 41 on-tap="{{onBack}}">
38 </gaia-core-icon-button> 42 </gaia-core-icon-button>
39 <core-animated-pages id="animatedPages" transitions="slide-from-right" 43 <core-animated-pages id="animatedPages" transitions="slide-from-right"
40 on-core-animated-pages-transition-end="{{onTransitionEnd}}" flex> 44 on-core-animated-pages-transition-end="{{onTransitionEnd}}" flex>
41 <section flex> 45 <section flex>
42 <gaia-card> 46 <gaia-card>
43 <div class="header" flex vertical layout end-justified start> 47 <div class="header" flex vertical layout end-justified start>
44 <h1 class="welcome-message" i18n-content="offlineLoginWelcome"></h1> 48 <h1 class="welcome-message" i18n-content="offlineLoginWelcome"></h1>
45 <p class="enterprise-info" hidden?="{{!enterpriseInfo}}"> 49 <p class="enterprise-info" hidden?="{{!enterpriseInfo}}">
46 {{enterpriseInfo}} 50 {{enterpriseInfo}}
47 </p> 51 </p>
48 </div> 52 </div>
49 <div class="footer" flex vertical layout justified> 53 <div class="footer" flex vertical layout justified>
50 <gaia-input-form id="emailInput" inputType="email" 54 <gaia-input-form id="emailInput" inputType="email"
55 emailDomain="{{emailDomain}}"
51 i18n-values="errorMsg:offlineLoginInvalidEmail; 56 i18n-values="errorMsg:offlineLoginInvalidEmail;
52 inputLabel:offlineLoginEmail; 57 inputLabel:offlineLoginEmail;
53 buttonText:offlineLoginNextBtn"> 58 buttonText:offlineLoginNextBtn">
54 </gaia-input-form> 59 </gaia-input-form>
55 <img self-center src="chrome://theme/IDR_LOGO_GOOGLE_COLOR_90" 60 <img self-center src="chrome://theme/IDR_LOGO_GOOGLE_COLOR_90"
56 alt=""> 61 alt="">
57 </div> 62 </div>
58 </gaia-card> 63 </gaia-card>
59 </section> 64 </section>
60 <section flex> 65 <section flex>
(...skipping 15 matching lines...) Expand all
76 <gaia-paper-button id="dialogCloseBtn" affirmative autofocus 81 <gaia-paper-button id="dialogCloseBtn" affirmative autofocus
77 i18n-content="offlineLoginCloseBtn"> 82 i18n-content="offlineLoginCloseBtn">
78 </gaia-paper-button> 83 </gaia-paper-button>
79 </paper-action-dialog> 84 </paper-action-dialog>
80 </gaia-input-form> 85 </gaia-input-form>
81 </gaia-card> 86 </gaia-card>
82 </section> 87 </section>
83 </core-animated-pages> 88 </core-animated-pages>
84 </template> 89 </template>
85 </polymer-element> 90 </polymer-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698