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

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

Issue 2693543002: Remove logo from Physical Web omnibox suggestions (Closed)
Patch Set: Created 3 years, 10 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
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 9d066dcdb6b7a4d15c4a58e993a3f359b2d272b9..3196ae46d7e506a5e86867ed79bd9de53bb63bde 100644
--- a/ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.mm
+++ b/ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.mm
@@ -35,7 +35,6 @@ const CGFloat kAppendButtonSize = 48.0;
@synthesize textTruncatingLabel = _textTruncatingLabel;
@synthesize detailTruncatingLabel = _detailTruncatingLabel;
@synthesize appendButton = _appendButton;
-@synthesize physicalWebButton = _physicalWebButton;
@synthesize answerImageView = _answerImageView;
@synthesize imageView = _imageView;
@synthesize rowHeight = _rowHeight;
@@ -74,11 +73,6 @@ const CGFloat kAppendButtonSize = 48.0;
// The current implementation is from before using a UITableViewCell.
[self addSubview:_appendButton];
- _physicalWebButton = [[UIButton buttonWithType:UIButtonTypeCustom] retain];
- [_physicalWebButton setContentMode:UIViewContentModeRight];
- [self updatePhysicalWebImage];
- [self addSubview:_physicalWebButton];
-
// Leading icon is only displayed on iPad.
if (IsIPadIdiom()) {
_imageView = [[UIImageView alloc] initWithFrame:CGRectZero];
@@ -117,7 +111,6 @@ const CGFloat kAppendButtonSize = 48.0;
CGRectGetWidth(self.bounds), floor((_rowHeight - kAppendButtonSize) / 2),
kAppendButtonSize, kAppendButtonSize);
_appendButton.frame = LayoutRectGetRect(trailingAccessoryLayout);
- _physicalWebButton.frame = LayoutRectGetRect(trailingAccessoryLayout);
}
- (void)updateLeadingImage:(int)imageID {
@@ -166,16 +159,6 @@ const CGFloat kAppendButtonSize = 48.0;
forState:UIControlStateHighlighted];
}
-- (void)updatePhysicalWebImage {
- UIImage* physicalWebImage = NativeImage(IDR_IOS_OMNIBOX_PHYSICAL_WEB);
- [_physicalWebButton setImage:physicalWebImage forState:UIControlStateNormal];
-
- UIImage* physicalWebImageSelected =
- NativeImage(IDR_IOS_OMNIBOX_PHYSICAL_WEB_HIGHLIGHTED);
- [_physicalWebButton setImage:physicalWebImageSelected
- forState:UIControlStateHighlighted];
-}
-
- (NSString*)accessibilityLabel {
return _textTruncatingLabel.attributedText.string;
}

Powered by Google App Engine
This is Rietveld 408576698