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

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

Issue 2663293002: MD WebUI: Networking polish in OOBE and Settings (Closed)
Patch Set: Rebase Created 3 years, 10 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 <!-- Copyright 2016 The Chromium Authors. All rights reserved. 1 <!-- Copyright 2016 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-icon/iron-icon.htm l"> 5 <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-iconset-svg/iron-i conset-svg.html"> 6 <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/paper-button/paper-butt on.html"> 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html">
8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-fab/paper-fab.htm l"> 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-fab/paper-fab.htm l">
9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html "> 9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html ">
10 10
11 <iron-iconset-svg name="oobe-buttons" size="24"> 11 <iron-iconset-svg name="oobe-buttons" size="24">
12 <svg> 12 <svg>
13 <defs> 13 <defs>
14 <g id="arrow-back"> 14 <g id="arrow-back">
15 <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"> 15 <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z">
16 </path> 16 </path>
17 </g> 17 </g>
18 <g id="arrow-forward">
19 <path d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z">
20 </path>
21 </g>
18 </defs> 22 </defs>
19 </svg> 23 </svg>
20 </iron-iconset-svg> 24 </iron-iconset-svg>
21 25
22 <!-- 26 <!--
23 Material design square button for text-labelled buttons. 27 Material design square button for text-labelled buttons.
24 By default, text is blue, background is white. 28 By default, text is blue, background is white.
25 |inverse| makes text white on a blue background. 29 |inverse| makes text white on a blue background.
26 Note, that content must have separate DOM node (i.e. a separate div). 30 Note, that content must have separate DOM node (i.e. a separate div).
27 31
(...skipping 13 matching lines...) Expand all
41 inverse$="[[inverse]]"> 45 inverse$="[[inverse]]">
42 <div id="container" 46 <div id="container"
43 class="flex layout horizontal center center-justified self-stretch"> 47 class="flex layout horizontal center center-justified self-stretch">
44 <content></content> 48 <content></content>
45 </div> 49 </div>
46 </paper-button> 50 </paper-button>
47 </template> 51 </template>
48 </dom-module> 52 </dom-module>
49 53
50 <!-- 54 <!--
51 Material design square "<- Back" button. 55 Material design square "<- Back" and "Next ->" buttons.
52 Text is blue, background is white. 56 Text is blue, background is white.
53 57
54 Example: 58 Example:
55 <oobe-back-button on-tap="handleOnTap_"> 59 <oobe-back-button on-tap="handleOnTap_">
56 </oobe-back-button> 60 </oobe-back-button>
57 61
58 Attributes: 62 Attributes:
59 'disabled' - button is disabled when the attribute is set. 63 'disabled' - button is disabled when the attribute is set.
60 --> 64 -->
61 <dom-module id="oobe-back-button"> 65 <dom-module id="oobe-back-button">
62 <link rel="stylesheet" href="oobe_back_button.css"> 66 <link rel="stylesheet" href="oobe_nav_button.css">
63 <template> 67 <template>
64 <paper-button id="button" on-tap="onClick_" disabled="[[disabled]]"> 68 <paper-button id="button" on-tap="onClick_" disabled="[[disabled]]">
65 <div class="flex horizontal layout start center"> 69 <div class="flex horizontal layout start center">
66 <iron-icon icon="oobe-buttons:arrow-back"></iron-icon> 70 <iron-icon icon="oobe-buttons:arrow-back"></iron-icon>
67 <div id="text">$i18n{back}</div> 71 <div id="text">$i18n{back}</div>
68 </div> 72 </div>
69 </paper-button> 73 </paper-button>
70 </template> 74 </template>
71 </dom-module> 75 </dom-module>
72 76
77 <dom-module id="oobe-next-button">
78 <link rel="stylesheet" href="oobe_nav_button.css">
79 <template>
80 <paper-button id="button" on-tap="onClick_" disabled="[[disabled]]">
81 <div class="flex horizontal layout start center">
82 <div id="text">$i18n{next}</div>
83 <iron-icon icon="oobe-buttons:arrow-forward"></iron-icon>
84 </div>
85 </paper-button>
86 </template>
87 </dom-module>
88
73 <!-- 89 <!--
74 Material design button that shows an icon and displays text. 90 Material design button that shows an icon and displays text.
75 91
76 Example: 92 Example:
77 <oobe-welcome-secondary-button icon="close"> 93 <oobe-welcome-secondary-button icon="close">
78 <div>i18n version of oobeCloseButtonText</div> 94 <div>i18n version of oobeCloseButtonText</div>
79 </oobe-welcome-secondary-button> 95 </oobe-welcome-secondary-button>
80 96
81 Attributes: 97 Attributes:
82 'icon' - a name of icon from material design set to show on button. 98 'icon' - a name of icon from material design set to show on button.
83 'aria-label' - accessibility label. 99 'aria-label' - accessibility label.
84 --> 100 -->
85 <dom-module id="oobe-welcome-secondary-button"> 101 <dom-module id="oobe-welcome-secondary-button">
86 <link rel="stylesheet" href="oobe_welcome_secondary_button.css"> 102 <link rel="stylesheet" href="oobe_welcome_secondary_button.css">
87 <template> 103 <template>
88 <paper-button id="button" aria-label="[[ariaLabel]]"> 104 <paper-button id="button" aria-label="[[ariaLabel]]">
89 <div id="container" class="flex layout vertical center self-stretch"> 105 <div id="container" class="flex layout vertical center self-stretch">
90 <div id="subcontainer" 106 <div id="subcontainer"
91 class="flex layout horizontal center self-stretch"> 107 class="flex layout horizontal center self-stretch">
92 <iron-icon icon="[[icon]]" class="oobe-icon"></iron-icon> 108 <iron-icon icon="[[icon]]" class="oobe-icon"></iron-icon>
93 <content></content> 109 <content></content>
94 </div> 110 </div>
95 </div> 111 </div>
96 </paper-button> 112 </paper-button>
97 </template> 113 </template>
98 </dom-module> 114 </dom-module>
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/login/oobe_back_button.css ('k') | chrome/browser/resources/chromeos/login/oobe_buttons.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698