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

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

Issue 2074813002: Roll Polymer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: chromium.patch Created 4 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 (function() { 1 (function() {
2 'use strict'; 2 'use strict';
3 3
4 Polymer({ 4 Polymer({
5 is: 'paper-dropdown-menu-light', 5 is: 'paper-dropdown-menu-light',
6 6
7 behaviors: [ 7 behaviors: [
8 Polymer.IronButtonState, 8 Polymer.IronButtonState,
9 Polymer.IronControlState, 9 Polymer.IronControlState,
10 Polymer.PaperRippleBehavior, 10 Polymer.PaperRippleBehavior,
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 listeners: { 128 listeners: {
129 'tap': '_onTap' 129 'tap': '_onTap'
130 }, 130 },
131 131
132 keyBindings: { 132 keyBindings: {
133 'up down': 'open', 133 'up down': 'open',
134 'esc': 'close' 134 'esc': 'close'
135 }, 135 },
136 136
137 hostAttributes: { 137 hostAttributes: {
138 tabindex: 0,
138 role: 'combobox', 139 role: 'combobox',
139 'aria-autocomplete': 'none', 140 'aria-autocomplete': 'none',
140 'aria-haspopup': 'true' 141 'aria-haspopup': 'true'
141 }, 142 },
142 143
143 observers: [ 144 observers: [
144 '_selectedItemChanged(selectedItem)' 145 '_selectedItemChanged(selectedItem)'
145 ], 146 ],
146 147
147 attached: function() { 148 attached: function() {
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 272
272 _valueChanged: function() { 273 _valueChanged: function() {
273 // Only update if it's actually different. 274 // Only update if it's actually different.
274 if (this.$.input && this.$.input.textContent !== this.value) { 275 if (this.$.input && this.$.input.textContent !== this.value) {
275 this.$.input.textContent = this.value; 276 this.$.input.textContent = this.value;
276 } 277 }
277 this._setHasContent(!!this.value); 278 this._setHasContent(!!this.value);
278 }, 279 },
279 }); 280 });
280 })(); 281 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698