Commit c4ba3fff authored by Stepan Khapugin's avatar Stepan Khapugin Committed by Commit Bot

[iOS] Remove references to UI Refresh in OmniboxPopupRow.

Since UIRefresh had long been the only option, remove references to it
in constant names.

Bug: none
Test: none
Change-Id: Ifb3cdb5fec82ad4ea015014c098685010b04e81e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1991455
Auto-Submit: Stepan Khapugin <stkhapugin@chromium.org>
Reviewed-by: default avatarRobbie Gibson <rkgibson@google.com>
Commit-Queue: Robbie Gibson <rkgibson@google.com>
Cr-Commit-Position: refs/heads/master@{#730118}
parent 32081ddb
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
namespace { namespace {
// Side (w or h) length for the leading image view. // Side (w or h) length for the leading image view.
const CGFloat kImageViewSizeUIRefresh = 28.0; const CGFloat kImageViewSize = 28.0;
const CGFloat kImageViewCornerRadiusUIRefresh = 7.0; const CGFloat kImageViewCornerRadius = 7.0;
const CGFloat kTrailingButtonTrailingMargin = 4; const CGFloat kTrailingButtonTrailingMargin = 4;
const CGFloat kTrailingButtonSize = 48.0; const CGFloat kTrailingButtonSize = 48.0;
const CGFloat kLeadingPaddingIpad = 183; const CGFloat kLeadingPaddingIpad = 183;
...@@ -94,7 +94,7 @@ const CGFloat kLeadingPaddingIpadCompact = 71; ...@@ -94,7 +94,7 @@ const CGFloat kLeadingPaddingIpadCompact = 71;
_imageView.userInteractionEnabled = NO; _imageView.userInteractionEnabled = NO;
_imageView.contentMode = UIViewContentModeCenter; _imageView.contentMode = UIViewContentModeCenter;
_imageView.layer.cornerRadius = kImageViewCornerRadiusUIRefresh; _imageView.layer.cornerRadius = kImageViewCornerRadius;
_imageView.backgroundColor = UIColor.clearColor; _imageView.backgroundColor = UIColor.clearColor;
_imageView.tintColor = color::DarkModeDynamicColor( _imageView.tintColor = color::DarkModeDynamicColor(
[UIColor colorNamed:@"omnibox_suggestion_icon_color"], _incognito, [UIColor colorNamed:@"omnibox_suggestion_icon_color"], _incognito,
...@@ -119,7 +119,7 @@ const CGFloat kLeadingPaddingIpadCompact = 71; ...@@ -119,7 +119,7 @@ const CGFloat kLeadingPaddingIpadCompact = 71;
} }
- (void)layoutAccessoryViews { - (void)layoutAccessoryViews {
CGFloat imageViewSize = kImageViewSizeUIRefresh; CGFloat imageViewSize = kImageViewSize;
LayoutRect imageViewLayout = LayoutRectMake( LayoutRect imageViewLayout = LayoutRectMake(
([self showsLeadingIcons] && IsCompactTablet()) ([self showsLeadingIcons] && IsCompactTablet())
? kLeadingPaddingIpadCompact ? kLeadingPaddingIpadCompact
...@@ -141,7 +141,7 @@ const CGFloat kLeadingPaddingIpadCompact = 71; ...@@ -141,7 +141,7 @@ const CGFloat kLeadingPaddingIpadCompact = 71;
_imageView.image = image; _imageView.image = image;
// Adjust the vertical position based on the current size of the row. // Adjust the vertical position based on the current size of the row.
CGFloat imageViewSize = kImageViewSizeUIRefresh; CGFloat imageViewSize = kImageViewSize;
CGRect frame = _imageView.frame; CGRect frame = _imageView.frame;
frame.origin.y = floor((_rowHeight - imageViewSize) / 2); frame.origin.y = floor((_rowHeight - imageViewSize) / 2);
_imageView.frame = frame; _imageView.frame = frame;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment