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

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

Issue 1221923003: Update bower.json for Polymer elements and add PRESUBMIT.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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 /** 17 /**
18 * @demo demo/index.html 18 * @demo demo/index.html
19 * @polymerBehavior 19 * @polymerBehavior Polymer.IronButtonState
20 */ 20 */
21 Polymer.IronButtonStateImpl = { 21 Polymer.IronButtonStateImpl = {
22 22
23 properties: { 23 properties: {
24 24
25 /** 25 /**
26 * If true, the user is currently holding down the button. 26 * If true, the user is currently holding down the button.
27 */ 27 */
28 pressed: { 28 pressed: {
29 type: Boolean, 29 type: Boolean,
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // provide hook for follow-on behaviors to react to button-state 170 // provide hook for follow-on behaviors to react to button-state
171 171
172 _changedButtonState: function() { 172 _changedButtonState: function() {
173 if (this._buttonStateChanged) { 173 if (this._buttonStateChanged) {
174 this._buttonStateChanged(); // abstract 174 this._buttonStateChanged(); // abstract
175 } 175 }
176 } 176 }
177 177
178 }; 178 };
179 179
180 /** @polymerBehavior Polymer.IronButtonState */ 180 /** @polymerBehavior */
181 Polymer.IronButtonState = [ 181 Polymer.IronButtonState = [
182 Polymer.IronA11yKeysBehavior, 182 Polymer.IronA11yKeysBehavior,
183 Polymer.IronButtonStateImpl 183 Polymer.IronButtonStateImpl
184 ]; 184 ];
185 185
186 </script> 186 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698