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

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

Issue 2314283002: Roll Polymer (Closed)
Patch Set: dep Created 4 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 (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 behaviors: [ 7 behaviors: [
8 Polymer.IronButtonState, 8 Polymer.IronButtonState,
9 Polymer.IronControlState, 9 Polymer.IronControlState,
10 Polymer.IronFormElementBehavior, 10 Polymer.IronFormElementBehavior,
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 value: 'right' 126 value: 'right'
127 }, 127 },
128 128
129 /** 129 /**
130 * The orientation against which to align the menu dropdown 130 * The orientation against which to align the menu dropdown
131 * vertically relative to the dropdown trigger. 131 * vertically relative to the dropdown trigger.
132 */ 132 */
133 verticalAlign: { 133 verticalAlign: {
134 type: String, 134 type: String,
135 value: 'top' 135 value: 'top'
136 } 136 },
137
138 /**
139 * If true, the `horizontalAlign` and `verticalAlign` properties will
140 * be considered preferences instead of strict requirements when
141 * positioning the dropdown and may be changed if doing so reduces
142 * the area of the dropdown falling outside of `fitInto`.
143 */
144 dynamicAlign: {
145 type: Boolean
146 },
137 }, 147 },
138 148
139 listeners: { 149 listeners: {
140 'tap': '_onTap' 150 'tap': '_onTap'
141 }, 151 },
142 152
143 keyBindings: { 153 keyBindings: {
144 'up down': 'open', 154 'up down': 'open',
145 'esc': 'close' 155 'esc': 'close'
146 }, 156 },
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 272
263 _openedChanged: function() { 273 _openedChanged: function() {
264 var openState = this.opened ? 'true' : 'false'; 274 var openState = this.opened ? 'true' : 'false';
265 var e = this.contentElement; 275 var e = this.contentElement;
266 if (e) { 276 if (e) {
267 e.setAttribute('aria-expanded', openState); 277 e.setAttribute('aria-expanded', openState);
268 } 278 }
269 } 279 }
270 }); 280 });
271 })(); 281 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698