| OLD | NEW |
| 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 Loading... |
| 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} |
| 315 * @private | 316 * @private |
| 316 */ | 317 */ |
| 317 _overlayInPath: function(path) { | 318 _overlayInPath: function(path) { |
| 318 path = path || []; | 319 path = path || []; |
| 319 for (var i = 0; i < path.length; i++) { | 320 for (var i = 0; i < path.length; i++) { |
| 320 if (path[i]._manager === this) { | 321 if (path[i]._manager === this) { |
| 321 return path[i]; | 322 return path[i]; |
| 322 } | 323 } |
| 323 } | 324 } |
| 324 }, | 325 }, |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 overlay._onCaptureTab(event); | 363 overlay._onCaptureTab(event); |
| 363 } | 364 } |
| 364 } | 365 } |
| 365 }, | 366 }, |
| 366 | 367 |
| 367 /** | 368 /** |
| 368 * Returns if the overlay1 should be behind overlay2. | 369 * Returns if the overlay1 should be behind overlay2. |
| 369 * @param {!Element} overlay1 | 370 * @param {!Element} overlay1 |
| 370 * @param {!Element} overlay2 | 371 * @param {!Element} overlay2 |
| 371 * @return {boolean} | 372 * @return {boolean} |
| 373 * @suppress {missingProperties} |
| 372 * @private | 374 * @private |
| 373 */ | 375 */ |
| 374 _shouldBeBehindOverlay: function(overlay1, overlay2) { | 376 _shouldBeBehindOverlay: function(overlay1, overlay2) { |
| 375 var o1 = /** @type {?} */ (overlay1); | 377 return !overlay1.alwaysOnTop && overlay2.alwaysOnTop; |
| 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(); |
| OLD | NEW |