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

Side by Side Diff: third_party/polymer/v1_0/components-chromium/paper-header-panel/paper-header-panel-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 (function() { 1 (function() {
2 'use strict'; 2 'use strict';
3 3
4 var SHADOW_WHEN_SCROLLING = 1; 4 var SHADOW_WHEN_SCROLLING = 1;
5 var SHADOW_ALWAYS = 2; 5 var SHADOW_ALWAYS = 2;
6 var MODE_CONFIGS = { 6 var MODE_CONFIGS = {
7 outerScroll: { 7 outerScroll: {
8 'scroll': true 8 'scroll': true
9 }, 9 },
10 10
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 value: 'tall' 96 value: 'tall'
97 }, 97 },
98 98
99 /** 99 /**
100 * If true, the scroller is at the top 100 * If true, the scroller is at the top
101 */ 101 */
102 atTop: { 102 atTop: {
103 type: Boolean, 103 type: Boolean,
104 value: true, 104 value: true,
105 notify: true, 105 notify: true,
106 readOnly: true 106 readOnly: true,
107 reflectToAttribute: true
107 } 108 }
108 }, 109 },
109 110
110 observers: [ 111 observers: [
111 '_computeDropShadowHidden(atTop, mode, shadow)' 112 '_computeDropShadowHidden(atTop, mode, shadow)'
112 ], 113 ],
113 114
114 ready: function() { 115 ready: function() {
115 this.scrollHandler = this._scroll.bind(this); 116 this.scrollHandler = this._scroll.bind(this);
116 }, 117 },
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 this._keepScrollingState(); 229 this._keepScrollingState();
229 this.fire('content-scroll', {target: this.scroller}, {bubbles: false}) ; 230 this.fire('content-scroll', {target: this.scroller}, {bubbles: false}) ;
230 }, 231 },
231 232
232 _getScrollerForMode: function(mode) { 233 _getScrollerForMode: function(mode) {
233 return MODE_CONFIGS.outerScroll[mode] ? 234 return MODE_CONFIGS.outerScroll[mode] ?
234 this : this.$.mainContainer; 235 this : this.$.mainContainer;
235 } 236 }
236 }); 237 });
237 })(); 238 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698