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

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

Issue 2092213003: [MD settings] 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}
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
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();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698