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

Unified Diff: third_party/polymer/v1_0/components/paper-drawer-panel/paper-drawer-panel.html

Issue 1187823002: Update Polymer components and re-run reproduce.sh (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/polymer/v1_0/components/paper-drawer-panel/paper-drawer-panel.html
diff --git a/third_party/polymer/v1_0/components/paper-drawer-panel/paper-drawer-panel.html b/third_party/polymer/v1_0/components/paper-drawer-panel/paper-drawer-panel.html
index 758d88a7812aad252057678189631e291b95e1a3..148cfeb1c294beadecf520c3209e94b6a1f7d75f 100644
--- a/third_party/polymer/v1_0/components/paper-drawer-panel/paper-drawer-panel.html
+++ b/third_party/polymer/v1_0/components/paper-drawer-panel/paper-drawer-panel.html
@@ -210,7 +210,9 @@ To change the drawer container when it's in the right side:
*/
dragging: {
type: Boolean,
- value: false
+ value: false,
+ readOnly: true,
+ notify: true
},
/**
@@ -266,6 +268,7 @@ To change the drawer container when it's in the right side:
reflectToAttribute: true,
type: Boolean,
value: false,
+ readOnly: true,
notify: true
},
@@ -274,7 +277,9 @@ To change the drawer container when it's in the right side:
*/
peeking: {
type: Boolean,
- value: false
+ value: false,
+ readOnly: true,
+ notify: true
},
/**
@@ -299,6 +304,7 @@ To change the drawer container when it's in the right side:
*/
selected: {
reflectToAttribute: true,
+ notify: true,
type: String,
value: null
},
@@ -425,7 +431,7 @@ To change the drawer container when it's in the right side:
},
_responsiveChange: function(narrow) {
- this.narrow = narrow;
+ this._setNarrow(narrow);
if (this.narrow) {
this.selected = this.defaultSelected;
@@ -456,12 +462,12 @@ To change the drawer container when it's in the right side:
this.width = this.$.drawer.offsetWidth;
this._moveDrawer(this._translateXForDeltaX(this.rightDrawer ?
-this.edgeSwipeSensitivity : this.edgeSwipeSensitivity));
- this.peeking = true;
+ this._setPeeking(true);
},
_stopEdgePeek: function() {
if (this.peeking) {
- this.peeking = false;
+ this._setPeeking(false);
this._moveDrawer(null);
}
},
@@ -500,13 +506,13 @@ To change the drawer container when it's in the right side:
x <= this.edgeSwipeSensitivity);
},
- _trackStart: function() {
+ _trackStart: function(event) {
if (this._swipeAllowed()) {
sharedPanel = this;
- this.dragging = true;
+ this._setDragging(true);
if (this._isMainSelected()) {
- this.dragging = this.peeking || this._isEdgeTouch(event);
+ this._setDragging(this.peeking || this._isEdgeTouch(event));
}
if (this.dragging) {
@@ -535,7 +541,7 @@ To change the drawer container when it's in the right side:
// Ignore trackx until we move past the edge peek.
return;
}
- this.peeking = false;
+ this._setPeeking(false);
}
this._moveDrawer(this._translateXForDeltaX(dx));
@@ -546,7 +552,7 @@ To change the drawer container when it's in the right side:
if (this.dragging) {
var xDirection = e.detail.dx > 0;
- this.dragging = false;
+ this._setDragging(false);
this.transition = true;
sharedPanel = null;
this._moveDrawer(null);

Powered by Google App Engine
This is Rietveld 408576698