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

Unified Diff: chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm

Issue 2488383002: Modify WebBluetooth chooser based on UI review feedback (Closed)
Patch Set: removed unused include file Created 4 years, 1 month 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 | « chrome/browser/ui/cocoa/chooser_content_view_cocoa.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm b/chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm
index 5df8fd3cdf20853640149a5a7bd5c1a2234f0e8c..409d5e41c537ac700067376fb782e7685e5dbab3 100644
--- a/chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm
+++ b/chrome/browser/ui/cocoa/chooser_content_view_cocoa.mm
@@ -567,8 +567,9 @@ void ChooserContentViewController::UpdateTableView() {
// Separator.
CGFloat separatorOriginX = 0.0f;
- CGFloat separatorOriginY = kMarginY + helpButtonHeight + kVerticalPadding;
- [separator_ setFrameOrigin:NSMakePoint(separatorOriginX, separatorOriginY)];
+ separatorOriginY_ = kMarginY + helpButtonHeight + kVerticalPadding;
+ [separator_
+ setFrameOrigin:NSMakePoint(separatorOriginX, separatorOriginY_)];
[self addSubview:separator_];
// Help button.
@@ -878,4 +879,12 @@ void ChooserContentViewController::UpdateTableView() {
return [tableRowView pairedStatus];
}
+- (void)drawRect:(NSRect)rect {
+ [[NSColor colorWithCalibratedWhite:245.0f / 255.0f alpha:1.0f] setFill];
+ NSRect footnoteFrame =
+ NSMakeRect(0.0f, 0.0f, kChooserWidth, separatorOriginY_);
+ NSRectFill(footnoteFrame);
+ [super drawRect:footnoteFrame];
+}
+
@end
« no previous file with comments | « chrome/browser/ui/cocoa/chooser_content_view_cocoa.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698