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

Side by Side Diff: third_party/polymer/v1_0/components/iron-behaviors/iron-button-state.html

Issue 1187823002: Update Polymer components and re-run reproduce.sh (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 <!-- 1 <!--
2 @license 2 @license
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt 4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
7 Code distributed by Google as part of the polymer project is also 7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
9 --> 9 -->
10 10
11 <link rel="import" href="../polymer/polymer.html"> 11 <link rel="import" href="../polymer/polymer.html">
12 <link rel="import" href="../iron-a11y-keys-behavior/iron-a11y-keys-behavior.html "> 12 <link rel="import" href="../iron-a11y-keys-behavior/iron-a11y-keys-behavior.html ">
13 <link rel="import" href="iron-control-state.html"> 13 <link rel="import" href="iron-control-state.html">
14 14
15 <script> 15 <script>
16 16
17 /** @polymerBehavior Polymer.IronButtonState */ 17 /**
18 * @demo demo/index.html
19 * @polymerBehavior
20 */
18 Polymer.IronButtonStateImpl = { 21 Polymer.IronButtonStateImpl = {
19 22
20 properties: { 23 properties: {
21 24
22 /** 25 /**
23 * If true, the user is currently holding down the button. 26 * If true, the user is currently holding down the button.
24 *
25 * @attribute pressed
26 * @type boolean
27 * @default false
28 */ 27 */
29 pressed: { 28 pressed: {
30 type: Boolean, 29 type: Boolean,
31 readOnly: true, 30 readOnly: true,
32 value: false, 31 value: false,
33 reflectToAttribute: true, 32 reflectToAttribute: true,
34 observer: '_pressedChanged' 33 observer: '_pressedChanged'
35 }, 34 },
36 35
37 /** 36 /**
38 * If true, the button toggles the active state with each tap or press 37 * If true, the button toggles the active state with each tap or press
39 * of the spacebar. 38 * of the spacebar.
40 *
41 * @attribute toggles
42 * @type boolean
43 * @default false
44 */ 39 */
45 toggles: { 40 toggles: {
46 type: Boolean, 41 type: Boolean,
47 value: false, 42 value: false,
48 reflectToAttribute: true 43 reflectToAttribute: true
49 }, 44 },
50 45
51 /** 46 /**
52 * If true, the button is a toggle and is currently in the active state. 47 * If true, the button is a toggle and is currently in the active state.
53 *
54 * @attribute active
55 * @type boolean
56 * @default false
57 */ 48 */
58 active: { 49 active: {
59 type: Boolean, 50 type: Boolean,
60 value: false, 51 value: false,
61 notify: true, 52 notify: true,
62 reflectToAttribute: true, 53 reflectToAttribute: true,
63 observer: '_activeChanged' 54 observer: '_activeChanged'
64 }, 55 },
65 56
66 /** 57 /**
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 177
187 }; 178 };
188 179
189 /** @polymerBehavior Polymer.IronButtonState */ 180 /** @polymerBehavior Polymer.IronButtonState */
190 Polymer.IronButtonState = [ 181 Polymer.IronButtonState = [
191 Polymer.IronA11yKeysBehavior, 182 Polymer.IronA11yKeysBehavior,
192 Polymer.IronButtonStateImpl 183 Polymer.IronButtonStateImpl
193 ]; 184 ];
194 185
195 </script> 186 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698