Fix OOP <webview> resize and autosize.
[chromium-blink-merge.git] / third_party / polymer / v1_0 / components-chromium / paper-behaviors / paper-inky-focus-behavior-extracted.js
blobc4a8aa84333823a1e2ac8cc9683bbd115b0b08d2
1 /**
2    * `Polymer.PaperInkyFocusBehavior` implements a ripple when the element has keyboard focus.
3    *
4    * @polymerBehavior Polymer.PaperInkyFocusBehavior
5    */
6   Polymer.PaperInkyFocusBehaviorImpl = {
8     observers: [
9       '_focusedChanged(receivedFocusFromKeyboard)'
10     ],
12     _focusedChanged: function(receivedFocusFromKeyboard) {
13       if (!this.$.ink) {
14         return;
15       }
17       this.$.ink.holdDown = receivedFocusFromKeyboard;
18     }
20   };
22   /** @polymerBehavior Polymer.PaperInkyFocusBehavior */
23   Polymer.PaperInkyFocusBehavior = [
24     Polymer.IronButtonState,
25     Polymer.IronControlState,
26     Polymer.PaperInkyFocusBehaviorImpl
27   ];