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

Side by Side Diff: third_party/polymer/v0_8/components/iron-behaviors/iron-control-state.html

Issue 1162563004: Upgrade to 1.0 and switch clients to dom-repeat where needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a layout import and remove the gzipped webanimation in reproduce.sh 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 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
3 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
4 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
5 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
6 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
7 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
8 --> 9 -->
9 10
10 <link rel="import" href="../polymer/polymer.html"> 11 <link rel="import" href="../polymer/polymer.html">
11 12
12 <script> 13 <script>
13 14
15 /** @polymerBehavior */
16
14 Polymer.IronControlState = { 17 Polymer.IronControlState = {
15 18
16 properties: { 19 properties: {
17 20
18 /** 21 /**
19 * If true, the element currently has focus. 22 * If true, the element currently has focus.
20 * 23 *
21 * @attribute focused 24 * @attribute focused
22 * @type boolean 25 * @type boolean
23 * @default false 26 * @default false
(...skipping 15 matching lines...) Expand all
39 */ 42 */
40 disabled: { 43 disabled: {
41 type: Boolean, 44 type: Boolean,
42 value: false, 45 value: false,
43 notify: true, 46 notify: true,
44 observer: '_disabledChanged', 47 observer: '_disabledChanged',
45 reflectToAttribute: true 48 reflectToAttribute: true
46 }, 49 },
47 50
48 _oldTabIndex: { 51 _oldTabIndex: {
49 type: String 52 type: Number
50 } 53 }
51 }, 54 },
52 55
53 observers: [ 56 observers: [
54 '_changedControlState(focused, disabled)' 57 '_changedControlState(focused, disabled)'
55 ], 58 ],
56 59
57 listeners: { 60 listeners: {
58 focus: '_focusHandler', 61 focus: '_focusHandler',
59 blur: '_blurHandler' 62 blur: '_blurHandler'
(...skipping 30 matching lines...) Expand all
90 _changedControlState: function() { 93 _changedControlState: function() {
91 // _controlStateChanged is abstract, follow-on behaviors may implement it 94 // _controlStateChanged is abstract, follow-on behaviors may implement it
92 if (this._controlStateChanged) { 95 if (this._controlStateChanged) {
93 this._controlStateChanged(); 96 this._controlStateChanged();
94 } 97 }
95 } 98 }
96 99
97 }; 100 };
98 101
99 </script> 102 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698