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

Side by Side Diff: third_party/polymer/v1_0/components-chromium/paper-dropdown-menu/paper-dropdown-menu-extracted.js

Issue 1862213002: Roll third_party/polymer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove obsolete appearance_browsertest.js, result of a previous bad merge. Created 4 years, 8 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 (function() { 1 (function() {
2 'use strict'; 2 'use strict';
3 3
4 Polymer({ 4 Polymer({
5 is: 'paper-dropdown-menu', 5 is: 'paper-dropdown-menu',
6 6
7 /**
8 * Fired when the dropdown opens.
9 *
10 * @event paper-dropdown-open
11 */
12
13 /**
14 * Fired when the dropdown closes.
15 *
16 * @event paper-dropdown-close
17 */
18
19 behaviors: [ 7 behaviors: [
20 Polymer.IronButtonState, 8 Polymer.IronButtonState,
21 Polymer.IronControlState, 9 Polymer.IronControlState,
22 Polymer.IronFormElementBehavior, 10 Polymer.IronFormElementBehavior,
23 Polymer.IronValidatableBehavior 11 Polymer.IronValidatableBehavior
24 ], 12 ],
25 13
26 properties: { 14 properties: {
27 /** 15 /**
28 * The derived "label" of the currently selected item. This value 16 * The derived "label" of the currently selected item. This value
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 251
264 _openedChanged: function() { 252 _openedChanged: function() {
265 var openState = this.opened ? 'true' : 'false'; 253 var openState = this.opened ? 'true' : 'false';
266 var e = this.contentElement; 254 var e = this.contentElement;
267 if (e) { 255 if (e) {
268 e.setAttribute('aria-expanded', openState); 256 e.setAttribute('aria-expanded', openState);
269 } 257 }
270 } 258 }
271 }); 259 });
272 })(); 260 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698