Lines Matching refs:button
17 * @param {boolean} showPasswords If true, add a button to the element to
76 // The show/hide button.
78 var button = this.ownerDocument.createElement('button');
79 button.hidden = true;
80 button.className = 'list-inline-button custom-appearance';
81 button.textContent = loadTimeData.getString('passwordShowButton');
82 button.addEventListener('click', this.onClick_.bind(this), true);
83 button.addEventListener('mousedown', function(event) {
84 // Don't focus on this button by mousedown.
89 passwordInputDiv.appendChild(button);
90 this.passwordShowButton = button;
99 var button = this.passwordShowButton;
100 // The button doesn't exist when passwords can't be shown.
101 if (!button)
106 button.hidden = false;
109 button.hidden = true;
120 var button = this.passwordShowButton;
121 if (button)
122 button.textContent = loadTimeData.getString('passwordHideButton');
131 var button = this.passwordShowButton;
132 if (button)
133 button.textContent = loadTimeData.getString('passwordShowButton');