Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / polymer / v1_0 / components-chromium / paper-behaviors / paper-inky-focus-behavior-extracted.js
blob9130ec1070ff8c9f2e95df15f9935d2f9e4c1084
3 /**
4 * `Polymer.PaperInkyFocusBehavior` implements a ripple when the element has keyboard focus.
6 * @polymerBehavior Polymer.PaperInkyFocusBehavior
7 */
8 Polymer.PaperInkyFocusBehaviorImpl = {
10 observers: [
11 '_focusedChanged(receivedFocusFromKeyboard)'
14 _focusedChanged: function(receivedFocusFromKeyboard) {
15 if (!this.$.ink) {
16 return;
19 this.$.ink.holdDown = receivedFocusFromKeyboard;
24 /** @polymerBehavior Polymer.PaperInkyFocusBehavior */
25 Polymer.PaperInkyFocusBehavior = [
26 Polymer.IronButtonState,
27 Polymer.IronControlState,
28 Polymer.PaperInkyFocusBehaviorImpl