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

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

Issue 2860113002: [Mac] Remove unused property on GradientButtonCell (Closed)
Patch Set: Created 3 years, 7 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 | « chrome/browser/ui/cocoa/gradient_button_cell.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/gradient_button_cell.mm
diff --git a/chrome/browser/ui/cocoa/gradient_button_cell.mm b/chrome/browser/ui/cocoa/gradient_button_cell.mm
index 323916e5c048a96c1021d1b1f804bbdf14edd383..c638b78dbe91c5d113a9191e23ae2d68e5108536 100644
--- a/chrome/browser/ui/cocoa/gradient_button_cell.mm
+++ b/chrome/browser/ui/cocoa/gradient_button_cell.mm
@@ -285,15 +285,6 @@ static const NSTimeInterval kAnimationHideDuration = 0.4;
shouldTheme_ = shouldTheme;
}
-- (NSImage*)overlayImage {
- return overlayImage_.get();
-}
-
-- (void)setOverlayImage:(NSImage*)image {
- overlayImage_.reset([image retain]);
- [[self controlView] setNeedsDisplay:YES];
-}
-
- (NSBackgroundStyle)interiorBackgroundStyle {
// Never lower the interior, since that just leads to a weird shadow which can
// often interact badly with the theme.
@@ -682,17 +673,6 @@ static const NSTimeInterval kAnimationHideDuration = 0.4;
[super drawInteriorWithFrame:NSOffsetRect(cellFrame, 0, lineWidth)
inView:controlView];
}
-
- if (overlayImage_) {
- NSRect imageRect = NSZeroRect;
- imageRect.size = [overlayImage_ size];
- [overlayImage_ drawInRect:[self imageRectForBounds:cellFrame]
- fromRect:imageRect
- operation:NSCompositeSourceOver
- fraction:[self isEnabled] ? 1.0 : 0.5
- respectFlipped:YES
- hints:nil];
- }
}
- (int)verticalTextOffset {
« no previous file with comments | « chrome/browser/ui/cocoa/gradient_button_cell.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698