Index: chrome/browser/cocoa/extensions/browser_actions_container_view.mm |
diff --git a/chrome/browser/cocoa/extensions/browser_actions_container_view.mm b/chrome/browser/cocoa/extensions/browser_actions_container_view.mm |
index 234ed6cca28dc361d29f8ecdcde14e0da8706f59..56dbcec01c6d143fa059782cebea1e7dcf2c2b0e 100644 |
--- a/chrome/browser/cocoa/extensions/browser_actions_container_view.mm |
+++ b/chrome/browser/cocoa/extensions/browser_actions_container_view.mm |
@@ -19,13 +19,8 @@ NSString* const kBrowserActionGrippyDragFinishedNotification = |
namespace { |
const CGFloat kAnimationDuration = 0.2; |
-const CGFloat kGrippyWidth = 8.0; |
-const CGFloat kLowerPadding = 6.0; |
+const CGFloat kGrippyWidth = 4.0; |
const CGFloat kMinimumContainerWidth = 10.0; |
-const CGFloat kRightBorderXOffset = -1.0; |
-const CGFloat kRightBorderWidth = 1.0; |
-const CGFloat kRightBorderGrayscale = 0.5; |
-const CGFloat kUpperPadding = 9.0; |
} // namespace |
@interface BrowserActionsContainerView(Private) |
@@ -57,24 +52,6 @@ const CGFloat kUpperPadding = 9.0; |
return self; |
} |
-- (void)drawRect:(NSRect)dirtyRect { |
- NSRect bounds = [self bounds]; |
- NSColor* middleColor = |
- [NSColor colorWithCalibratedWhite:kRightBorderGrayscale alpha:1.0]; |
- NSColor* endPointColor = |
- [NSColor colorWithCalibratedWhite:kRightBorderGrayscale alpha:0.0]; |
- scoped_nsobject<NSGradient> borderGradient([[NSGradient alloc] |
- initWithColorsAndLocations:endPointColor, (CGFloat)0.0, |
- middleColor, (CGFloat)0.5, |
- endPointColor, (CGFloat)1.0, |
- nil]); |
- CGFloat xPos = bounds.origin.x + bounds.size.width - kRightBorderWidth + |
- kRightBorderXOffset; |
- NSRect borderRect = NSMakeRect(xPos, kLowerPadding, kRightBorderWidth, |
- bounds.size.height - kUpperPadding); |
- [borderGradient drawInRect:borderRect angle:90.0]; |
-} |
- |
- (void)setResizable:(BOOL)resizable { |
if (resizable == resizable_) |
return; |