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

Side by Side Diff: third_party/polymer/v0_8/components-chromium/paper-behaviors/paper-radio-button-behavior-extracted.js

Issue 1162563004: Upgrade to 1.0 and switch clients to dom-repeat where needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a layout import and remove the gzipped webanimation in reproduce.sh 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 unified diff | Download patch
OLDNEW
1 1
2 2
3 /** @polymerBehavior */
3 Polymer.PaperRadioButtonInk = { 4 Polymer.PaperRadioButtonInk = {
4 5
5 observers: [ 6 observers: [
6 `_focusedChanged(focused)` 7 '_focusedChanged(receivedFocusFromKeyboard)'
7 ], 8 ],
8 9
9 _focusedChanged: function(focused) { 10 _focusedChanged: function(receivedFocusFromKeyboard) {
10 if (!this.$.ink) 11 if (!this.$.ink) {
11 return; 12 return;
13 }
12 14
13 if (focused) { 15 this.$.ink.holdDown = receivedFocusFromKeyboard;
14 var rect = this.$.ink.getBoundingClientRect();
15 this.$.ink.mousedownAction();
16 } else {
17 this.$.ink.mouseupAction();
18 }
19 } 16 }
20 17
21 }; 18 };
22 19
20 /** @polymerBehavior */
23 Polymer.PaperRadioButtonBehavior = [ 21 Polymer.PaperRadioButtonBehavior = [
22 Polymer.IronButtonState,
24 Polymer.IronControlState, 23 Polymer.IronControlState,
25 Polymer.IronButtonState,
26 Polymer.PaperRadioButtonInk 24 Polymer.PaperRadioButtonInk
27 ]; 25 ];
28 26
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698