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

Side by Side Diff: chrome/browser/resources/options/password_manager_list.js

Issue 1803353002: [Password Manager] Enables reading origins on chrome://settings/password for screen readers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@android_credentials
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.passwordManager', function() { 5 cr.define('options.passwordManager', function() {
6 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; 6 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel;
7 /** @const */ var DeletableItemList = options.DeletableItemList; 7 /** @const */ var DeletableItemList = options.DeletableItemList;
8 /** @const */ var DeletableItem = options.DeletableItem; 8 /** @const */ var DeletableItem = options.DeletableItem;
9 /** @const */ var List = cr.ui.List; 9 /** @const */ var List = cr.ui.List;
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 * element. 72 * element.
73 * @return {Element} The element for displaying password origin. 73 * @return {Element} The element for displaying password origin.
74 */ 74 */
75 function createUrlLink(item, urlDiv) { 75 function createUrlLink(item, urlDiv) {
76 var urlLink; 76 var urlLink;
77 if (!item.isAndroidUri) { 77 if (!item.isAndroidUri) {
78 urlLink = item.ownerDocument.createElement('a'); 78 urlLink = item.ownerDocument.createElement('a');
79 urlLink.href = item.url; 79 urlLink.href = item.url;
80 urlLink.setAttribute('target', '_blank'); 80 urlLink.setAttribute('target', '_blank');
81 urlLink.textContent = item.shownUrl.split('').reverse().join(''); 81 urlLink.textContent = item.shownUrl.split('').reverse().join('');
82 82 urlLink.setAttribute('aria-label', item.shownUrl);
83 urlDiv.classList.add('left-elided-url'); 83 urlDiv.classList.add('left-elided-url');
84 } else { 84 } else {
85 urlLink = item.ownerDocument.createElement('span'); 85 urlLink = item.ownerDocument.createElement('span');
86 urlLink.textContent = item.shownUrl; 86 urlLink.textContent = item.shownUrl;
87 } 87 }
88 urlLink.addEventListener('focus', function() { 88 urlLink.addEventListener('focus', function() {
89 item.handleFocus(); 89 item.handleFocus();
90 }.bind(item)); 90 }.bind(item));
91 return urlLink; 91 return urlLink;
92 } 92 }
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 PasswordExceptionsList: PasswordExceptionsList, 558 PasswordExceptionsList: PasswordExceptionsList,
559 ORIGIN_FIELD: ORIGIN_FIELD, 559 ORIGIN_FIELD: ORIGIN_FIELD,
560 SHOWN_URL_FIELD: SHOWN_URL_FIELD, 560 SHOWN_URL_FIELD: SHOWN_URL_FIELD,
561 IS_SECURE_FIELD: IS_SECURE_FIELD, 561 IS_SECURE_FIELD: IS_SECURE_FIELD,
562 USERNAME_FIELD: USERNAME_FIELD, 562 USERNAME_FIELD: USERNAME_FIELD,
563 PASSWORD_FIELD: PASSWORD_FIELD, 563 PASSWORD_FIELD: PASSWORD_FIELD,
564 FEDERATION_FIELD: FEDERATION_FIELD, 564 FEDERATION_FIELD: FEDERATION_FIELD,
565 ORIGINAL_INDEX_FIELD: ORIGINAL_INDEX_FIELD 565 ORIGINAL_INDEX_FIELD: ORIGINAL_INDEX_FIELD
566 }; 566 };
567 }); 567 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698