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

Unified Diff: ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.mm

Issue 2769213004: Add accessibility ID to the icon next to autosuggest drop down for iPads. (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.mm
diff --git a/ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.mm b/ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.mm
index 42d4a3af7d0aadd510d6c52e9034e158c490981f..42d63170b6377d901c5f9eebf07aeaa8414dd208 100644
--- a/ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.mm
+++ b/ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.mm
@@ -125,6 +125,9 @@ const CGFloat kAppendButtonSize = 48.0;
- (void)updateLeadingImage:(int)imageID {
_imageView.image = NativeImage(imageID);
+ _imageView.accessibilityIdentifier =
+ [NSString stringWithFormat:@"leading image id %d", imageID];
+
// Adjust the vertical position based on the current size of the row.
CGRect frame = _imageView.frame;
frame.origin.y = floor((_rowHeight - kImageDimensionLength) / 2);
« 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