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

Unified Diff: polymer_1.2.3/bower_components/paper-behaviors/paper-inky-focus-behavior.html

Issue 1581713003: [third_party] add polymer 1.2.3 (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: 1.2.3 Created 4 years, 11 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: polymer_1.2.3/bower_components/paper-behaviors/paper-inky-focus-behavior.html
diff --git a/polymer_1.0.4/bower_components/paper-behaviors/paper-inky-focus-behavior.html b/polymer_1.2.3/bower_components/paper-behaviors/paper-inky-focus-behavior.html
similarity index 71%
copy from polymer_1.0.4/bower_components/paper-behaviors/paper-inky-focus-behavior.html
copy to polymer_1.2.3/bower_components/paper-behaviors/paper-inky-focus-behavior.html
index 4f6e9f8933c12202e94cc90e35660c01a7ba8505..76fffc116baf351c2bec4f627c9e547c626e2935 100644
--- a/polymer_1.0.4/bower_components/paper-behaviors/paper-inky-focus-behavior.html
+++ b/polymer_1.2.3/bower_components/paper-behaviors/paper-inky-focus-behavior.html
@@ -10,6 +10,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../iron-behaviors/iron-button-state.html">
+<link rel="import" href="paper-ripple-behavior.html">
<script>
@@ -25,11 +26,20 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
],
_focusedChanged: function(receivedFocusFromKeyboard) {
- if (!this.$.ink) {
- return;
+ if (receivedFocusFromKeyboard) {
+ this.ensureRipple();
}
-
- this.$.ink.holdDown = receivedFocusFromKeyboard;
+ if (this.hasRipple()) {
+ this._ripple.holdDown = receivedFocusFromKeyboard;
+ }
+ },
+
+ _createRipple: function() {
+ var ripple = Polymer.PaperRippleBehavior._createRipple();
+ ripple.id = 'ink';
+ ripple.setAttribute('center', '');
+ ripple.classList.add('circle');
+ return ripple;
}
};
@@ -38,6 +48,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
Polymer.PaperInkyFocusBehavior = [
Polymer.IronButtonState,
Polymer.IronControlState,
+ Polymer.PaperRippleBehavior,
Polymer.PaperInkyFocusBehaviorImpl
];

Powered by Google App Engine
This is Rietveld 408576698