OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 cr.define('options', function() { | 5 cr.define('options', function() { |
6 /** @const */ var Page = cr.ui.pageManager.Page; | 6 /** @const */ var Page = cr.ui.pageManager.Page; |
7 /** @const */ var PageManager = cr.ui.pageManager.PageManager; | 7 /** @const */ var PageManager = cr.ui.pageManager.PageManager; |
8 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; | 8 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; |
9 | 9 |
10 ///////////////////////////////////////////////////////////////////////////// | 10 ///////////////////////////////////////////////////////////////////////////// |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
282 /** | 282 /** |
283 * @param {boolean} visible Whether the link should be visible. | 283 * @param {boolean} visible Whether the link should be visible. |
284 * @private | 284 * @private |
285 */ | 285 */ |
286 setManageAccountLinkVisibility_: function(visible) { | 286 setManageAccountLinkVisibility_: function(visible) { |
287 $('manage-passwords-span').hidden = !visible; | 287 $('manage-passwords-span').hidden = !visible; |
288 }, | 288 }, |
289 | 289 |
290 /** @private */ | 290 /** @private */ |
291 showImportExportButton_: function() { | 291 showImportExportButton_: function() { |
292 $('password-manager-import').hidden = false; | 292 $('password-manager-import-export').style.display = '-webkit-box'; |
vabr (Chromium)
2016/07/18 14:07:17
-webkit-box is what the action-area class in ui/we
stevenjb
2016/07/18 15:27:18
Instead can you toggle a class, e.g. 'noDisplay' a
vabr (Chromium)
2016/07/18 15:53:10
Good idea, done.
If you prefer "noDisplay" to the
stevenjb
2016/07/18 16:34:33
Since there is already a global 'hidden' attribute
vabr (Chromium)
2016/07/19 08:16:57
Acknowledged.
(Would implement that, but your othe
| |
293 $('password-manager-export').hidden = false; | |
294 }, | 293 }, |
295 }; | 294 }; |
296 | 295 |
297 /** | 296 /** |
298 * Removes a saved password. | 297 * Removes a saved password. |
299 * @param {number} rowIndex indicating the row to remove. | 298 * @param {number} rowIndex indicating the row to remove. |
300 */ | 299 */ |
301 PasswordManager.removeSavedPassword = function(rowIndex) { | 300 PasswordManager.removeSavedPassword = function(rowIndex) { |
302 chrome.send('removeSavedPassword', [String(rowIndex)]); | 301 chrome.send('removeSavedPassword', [String(rowIndex)]); |
303 chrome.send('coreOptionsUserMetricsAction', | 302 chrome.send('coreOptionsUserMetricsAction', |
(...skipping 19 matching lines...) Expand all Loading... | |
323 'showImportExportButton', | 322 'showImportExportButton', |
324 'showPassword', | 323 'showPassword', |
325 ]); | 324 ]); |
326 | 325 |
327 // Export | 326 // Export |
328 return { | 327 return { |
329 PasswordManager: PasswordManager | 328 PasswordManager: PasswordManager |
330 }; | 329 }; |
331 | 330 |
332 }); | 331 }); |
OLD | NEW |