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

Side by Side Diff: third_party/polymer/v1_0/components-chromium/iron-resizable-behavior/iron-resizable-behavior-extracted.js

Issue 1766433002: Roll Polymer to 1.3.1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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 * `IronResizableBehavior` is a behavior that can be used in Polymer elements to 2 * `IronResizableBehavior` is a behavior that can be used in Polymer elements to
3 * coordinate the flow of resize events between "resizers" (elements that cont rol the 3 * coordinate the flow of resize events between "resizers" (elements that cont rol the
4 * size or hidden state of their children) and "resizables" (elements that nee d to be 4 * size or hidden state of their children) and "resizables" (elements that nee d to be
5 * notified when they are resized or un-hidden by their parents in order to ta ke 5 * notified when they are resized or un-hidden by their parents in order to ta ke
6 * action on their new measurements). 6 * action on their new measurements).
7 *
7 * Elements that perform measurement should add the `IronResizableBehavior` be havior to 8 * Elements that perform measurement should add the `IronResizableBehavior` be havior to
8 * their element definition and listen for the `iron-resize` event on themselv es. 9 * their element definition and listen for the `iron-resize` event on themselv es.
9 * This event will be fired when they become showing after having been hidden, 10 * This event will be fired when they become showing after having been hidden,
10 * when they are resized explicitly by another resizable, or when the window h as been 11 * when they are resized explicitly by another resizable, or when the window h as been
11 * resized. 12 * resized.
13 *
12 * Note, the `iron-resize` event is non-bubbling. 14 * Note, the `iron-resize` event is non-bubbling.
13 * 15 *
14 * @polymerBehavior Polymer.IronResizableBehavior 16 * @polymerBehavior Polymer.IronResizableBehavior
15 * @demo demo/index.html 17 * @demo demo/index.html
16 **/ 18 **/
17 Polymer.IronResizableBehavior = { 19 Polymer.IronResizableBehavior = {
18 properties: { 20 properties: {
19 /** 21 /**
20 * The closest ancestor element that implements `IronResizableBehavior`. 22 * The closest ancestor element that implements `IronResizableBehavior`.
21 */ 23 */
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // else they will get redundantly notified when the parent attaches). 171 // else they will get redundantly notified when the parent attaches).
170 if (!this.isAttached) { 172 if (!this.isAttached) {
171 return; 173 return;
172 } 174 }
173 175
174 this._notifyingDescendant = true; 176 this._notifyingDescendant = true;
175 descendant.notifyResize(); 177 descendant.notifyResize();
176 this._notifyingDescendant = false; 178 this._notifyingDescendant = false;
177 } 179 }
178 }; 180 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698