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

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

Issue 1965913005: ChromeOS: Implement minumal material design OOBE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 2015 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-icons/iron-icons.h tml"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h tml">
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> 6 <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-fab/paper-fab.htm l">
7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html"> 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html">
8 <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 ">
9 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
10 10
11 <!-- 11 <!--
12 Material design buttons that mimic GAIA's buttons. 12 Material design buttons for OOBE screens.
13
14 Attributes:
15 'disabled' - button is disabled when the attribute is set.
13 16
14 Example: 17 Example:
15 <gaia-button type="dialog"></gaia-button> 18 <oobe-button type="dialog"></oobe-button>
16
17 Attributes:
18 'type' - there are three kinds of button: regular blue button (none type
19 provided), dialog button (type="dialog") and a button that looks
20 more like a link (type="link").
21 'disabled' - button is disabled when the attribute is set.
22 --> 19 -->
23 <dom-module id="gaia-button"> 20 <dom-module id="oobe-button-next">
24 <link rel="stylesheet" href="gaia_button.css"> 21 <link rel="stylesheet" href="oobe_button.css">
jdufault 2016/05/11 22:07:43 Linked stylesheets are deprecated. Maybe inline th
Alexander Alekseev 2016/05/13 20:52:34 Done.
dzhioev_at_google 2016/05/25 01:01:32 Linked stylesheets are OK in Chrome code, because
25 22
26 <template> 23 <template>
27 <div on-click="onClick_" on-tap="onClick_"> 24 <paper-fab icon="arrow-forward" disabled="[[disabled]]"></paper-fab>
28 <paper-button id="button" disabled="[[disabled]]"
29 on-focused-changed="focusedChanged_">
30 <content></content>
31 </paper-button>
32 </div>
33 </template> 25 </template>
34 </dom-module> 26 </dom-module>
35 27
36 <!-- 28 <!--
37 Material desing icon button with a special styling. 29 Material desing icon button with a special styling.
38 30
39 Example: 31 Example:
40 <gaia-icon-button icon="close"></gaia-icon> 32 <oobe-icon-button icon="close"></oobe-icon>
41 33
42 Attributes: 34 Attributes:
43 'icon' - a name of icon from material design set to show on button. 35 'icon' - a name of icon from material design set to show on button.
44 'disabled' - button is disabled when the attribute is set. 36 'disabled' - button is disabled when the attribute is set.
45 'aria-label' - accessibility label. 37 'aria-label' - accessibility label.
46 --> 38 -->
47 <dom-module id="gaia-icon-button"> 39 <dom-module id="oobe-icon-button">
48 <link rel="stylesheet" href="gaia_icon_button.css"> 40 <link rel="stylesheet" href="oobe_icon_button.css">
jdufault 2016/05/11 22:07:43 Inline the css?
Alexander Alekseev 2016/05/13 20:52:34 Done.
49 41
50 <template> 42 <template>
51 <div on-click="onClick_" on-tap="onClick_"> 43 <div on-click="onClick_" on-tap="onClick_">
52 <paper-icon-button id="iconButton" icon="[[icon]]" disabled="[[disabled]]" 44 <paper-icon-button id="iconButton" icon="[[icon]]" disabled="[[disabled]]"
53 aria-label="[[ariaLabel]]"> 45 aria-label="[[ariaLabel]]">
54 </paper-icon-button> 46 </paper-icon-button>
55 </div> 47 </div>
56 </template> 48 </template>
57 </dom-module> 49 </dom-module>
58 50
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698