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

Side by Side Diff: third_party/polymer/components/iron-resizable-behavior/iron-resizable-behavior.html

Issue 3010683002: Update Polymer components. (Closed)
Patch Set: Rebase Created 3 years, 3 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
(...skipping 22 matching lines...) Expand all
33 properties: { 33 properties: {
34 /** 34 /**
35 * The closest ancestor element that implements `IronResizableBehavior`. 35 * The closest ancestor element that implements `IronResizableBehavior`.
36 */ 36 */
37 _parentResizable: { 37 _parentResizable: {
38 type: Object, 38 type: Object,
39 observer: '_parentResizableChanged' 39 observer: '_parentResizableChanged'
40 }, 40 },
41 41
42 /** 42 /**
43 * True if this element is currently notifying its descedant elements of 43 * True if this element is currently notifying its descendant elements of
44 * resize. 44 * resize.
45 */ 45 */
46 _notifyingDescendant: { 46 _notifyingDescendant: {
47 type: Boolean, 47 type: Boolean,
48 value: false 48 value: false
49 } 49 }
50 }, 50 },
51 51
52 listeners: { 52 listeners: {
53 'iron-request-resize-notifications': '_onIronRequestResizeNotifications' 53 'iron-request-resize-notifications': '_onIronRequestResizeNotifications'
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 * @return {boolean} True if the `element` should be notified of resize. 132 * @return {boolean} True if the `element` should be notified of resize.
133 */ 133 */
134 resizerShouldNotify: function(element) { return true; }, 134 resizerShouldNotify: function(element) { return true; },
135 135
136 _onDescendantIronResize: function(event) { 136 _onDescendantIronResize: function(event) {
137 if (this._notifyingDescendant) { 137 if (this._notifyingDescendant) {
138 event.stopPropagation(); 138 event.stopPropagation();
139 return; 139 return;
140 } 140 }
141 141
142 // NOTE(cdata): In ShadowDOM, event retargetting makes echoing of the 142 // NOTE(cdata): In ShadowDOM, event retargeting makes echoing of the
143 // otherwise non-bubbling event "just work." We do it manually here for 143 // otherwise non-bubbling event "just work." We do it manually here for
144 // the case where Polymer is not using shadow roots for whatever reason: 144 // the case where Polymer is not using shadow roots for whatever reason:
145 if (!Polymer.Settings.useShadow) { 145 if (!Polymer.Settings.useShadow) {
146 this._fireResize(); 146 this._fireResize();
147 } 147 }
148 }, 148 },
149 149
150 _fireResize: function() { 150 _fireResize: function() {
151 this.fire('iron-resize', null, { 151 this.fire('iron-resize', null, {
152 node: this, 152 node: this,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 return; 186 return;
187 } 187 }
188 188
189 this._notifyingDescendant = true; 189 this._notifyingDescendant = true;
190 descendant.notifyResize(); 190 descendant.notifyResize();
191 this._notifyingDescendant = false; 191 this._notifyingDescendant = false;
192 } 192 }
193 }; 193 };
194 </script> 194 </script>
195 195
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698