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

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

Issue 2096903002: Revert of [Polymer] update polymer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 // Generate unique, monotonically increasing IDs for labels (needed by 1 // Generate unique, monotonically increasing IDs for labels (needed by
2 // aria-labelledby) and add-ons. 2 // aria-labelledby) and add-ons.
3 Polymer.PaperInputHelper = {}; 3 Polymer.PaperInputHelper = {};
4 Polymer.PaperInputHelper.NextLabelID = 1; 4 Polymer.PaperInputHelper.NextLabelID = 1;
5 Polymer.PaperInputHelper.NextAddonID = 1; 5 Polymer.PaperInputHelper.NextAddonID = 1;
6 6
7 /** 7 /**
8 * Use `Polymer.PaperInputBehavior` to implement inputs with `<paper-input-con tainer>`. This 8 * Use `Polymer.PaperInputBehavior` to implement inputs with `<paper-input-con tainer>`. This
9 * behavior is implemented by `<paper-input>`. It exposes a number of properti es from 9 * behavior is implemented by `<paper-input>`. It exposes a number of properti es from
10 * `<paper-input-container>` and `<input is="iron-input">` and they should be bound in your 10 * `<paper-input-container>` and `<input is="iron-input">` and they should be bound in your
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 * @return {boolean} 423 * @return {boolean}
424 */ 424 */
425 validate: function() { 425 validate: function() {
426 return this.inputElement.validate(); 426 return this.inputElement.validate();
427 }, 427 },
428 428
429 /** 429 /**
430 * Forward focus to inputElement. Overriden from IronControlState. 430 * Forward focus to inputElement. Overriden from IronControlState.
431 */ 431 */
432 _focusBlurHandler: function(event) { 432 _focusBlurHandler: function(event) {
433 if (this._shiftTabPressed)
434 return;
435
433 Polymer.IronControlState._focusBlurHandler.call(this, event); 436 Polymer.IronControlState._focusBlurHandler.call(this, event);
434 437
435 // Forward the focus to the nested input. 438 // Forward the focus to the nested input.
436 if (this.focused && !this._shiftTabPressed) 439 if (this.focused)
437 this._focusableElement.focus(); 440 this._focusableElement.focus();
438 }, 441 },
439 442
440 /** 443 /**
441 * Handler that is called when a shift+tab keypress is detected by the menu. 444 * Handler that is called when a shift+tab keypress is detected by the menu.
442 * 445 *
443 * @param {CustomEvent} event A key combination event. 446 * @param {CustomEvent} event A key combination event.
444 */ 447 */
445 _onShiftTabDown: function(event) { 448 _onShiftTabDown: function(event) {
446 var oldTabIndex = this.getAttribute('tabindex'); 449 var oldTabIndex = this.getAttribute('tabindex');
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 } 518 }
516 } 519 }
517 } 520 }
518 521
519 /** @polymerBehavior */ 522 /** @polymerBehavior */
520 Polymer.PaperInputBehavior = [ 523 Polymer.PaperInputBehavior = [
521 Polymer.IronControlState, 524 Polymer.IronControlState,
522 Polymer.IronA11yKeysBehavior, 525 Polymer.IronA11yKeysBehavior,
523 Polymer.PaperInputBehaviorImpl 526 Polymer.PaperInputBehaviorImpl
524 ]; 527 ];
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698