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

Side by Side Diff: third_party/polymer/v1_0/components-chromium/paper-behaviors/paper-inky-focus-behavior-extracted.js

Issue 1351623008: MD Settings: Languages model for language pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SingletonPrefs
Patch Set: Created 5 years, 3 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 /** 1
2
3 /**
2 * `Polymer.PaperInkyFocusBehavior` implements a ripple when the element has k eyboard focus. 4 * `Polymer.PaperInkyFocusBehavior` implements a ripple when the element has k eyboard focus.
3 * 5 *
4 * @polymerBehavior Polymer.PaperInkyFocusBehavior 6 * @polymerBehavior Polymer.PaperInkyFocusBehavior
5 */ 7 */
6 Polymer.PaperInkyFocusBehaviorImpl = { 8 Polymer.PaperInkyFocusBehaviorImpl = {
7 9
8 observers: [ 10 observers: [
9 '_focusedChanged(receivedFocusFromKeyboard)' 11 '_focusedChanged(receivedFocusFromKeyboard)'
10 ], 12 ],
11 13
12 _focusedChanged: function(receivedFocusFromKeyboard) { 14 _focusedChanged: function(receivedFocusFromKeyboard) {
13 if (!this.$.ink) { 15 if (!this.$.ink) {
14 return; 16 return;
15 } 17 }
16 18
17 this.$.ink.holdDown = receivedFocusFromKeyboard; 19 this.$.ink.holdDown = receivedFocusFromKeyboard;
18 } 20 }
19 21
20 }; 22 };
21 23
22 /** @polymerBehavior Polymer.PaperInkyFocusBehavior */ 24 /** @polymerBehavior Polymer.PaperInkyFocusBehavior */
23 Polymer.PaperInkyFocusBehavior = [ 25 Polymer.PaperInkyFocusBehavior = [
24 Polymer.IronButtonState, 26 Polymer.IronButtonState,
25 Polymer.IronControlState, 27 Polymer.IronControlState,
26 Polymer.PaperInkyFocusBehaviorImpl 28 Polymer.PaperInkyFocusBehaviorImpl
27 ]; 29 ];
30
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698