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

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

Issue 2096903002: Revert of [Polymer] update polymer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 * @struct 2 * @struct
3 * @constructor 3 * @constructor
4 * @private 4 * @private
5 */ 5 */
6 Polymer.IronOverlayManagerClass = function() { 6 Polymer.IronOverlayManagerClass = function() {
7 /** 7 /**
8 * Used to keep track of the opened overlays. 8 * Used to keep track of the opened overlays.
9 * @private {Array<Element>} 9 * @private {Array<Element>}
10 */ 10 */
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 } 305 }
306 // Use logical parentNode, or native ShadowRoot host. 306 // Use logical parentNode, or native ShadowRoot host.
307 node = Polymer.dom(node).parentNode || node.host; 307 node = Polymer.dom(node).parentNode || node.host;
308 } 308 }
309 }, 309 },
310 310
311 /** 311 /**
312 * Returns the deepest overlay in the path. 312 * Returns the deepest overlay in the path.
313 * @param {Array<Element>=} path 313 * @param {Array<Element>=} path
314 * @return {Element|undefined} 314 * @return {Element|undefined}
315 * @suppress {missingProperties}
316 * @private 315 * @private
317 */ 316 */
318 _overlayInPath: function(path) { 317 _overlayInPath: function(path) {
319 path = path || []; 318 path = path || [];
320 for (var i = 0; i < path.length; i++) { 319 for (var i = 0; i < path.length; i++) {
321 if (path[i]._manager === this) { 320 if (path[i]._manager === this) {
322 return path[i]; 321 return path[i];
323 } 322 }
324 } 323 }
325 }, 324 },
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 overlay._onCaptureTab(event); 362 overlay._onCaptureTab(event);
364 } 363 }
365 } 364 }
366 }, 365 },
367 366
368 /** 367 /**
369 * Returns if the overlay1 should be behind overlay2. 368 * Returns if the overlay1 should be behind overlay2.
370 * @param {!Element} overlay1 369 * @param {!Element} overlay1
371 * @param {!Element} overlay2 370 * @param {!Element} overlay2
372 * @return {boolean} 371 * @return {boolean}
373 * @suppress {missingProperties}
374 * @private 372 * @private
375 */ 373 */
376 _shouldBeBehindOverlay: function(overlay1, overlay2) { 374 _shouldBeBehindOverlay: function(overlay1, overlay2) {
377 return !overlay1.alwaysOnTop && overlay2.alwaysOnTop; 375 var o1 = /** @type {?} */ (overlay1);
376 var o2 = /** @type {?} */ (overlay2);
377 return !o1.alwaysOnTop && o2.alwaysOnTop;
378 } 378 }
379 }; 379 };
380 380
381 Polymer.IronOverlayManager = new Polymer.IronOverlayManagerClass(); 381 Polymer.IronOverlayManager = new Polymer.IronOverlayManagerClass();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698