| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import "chrome/browser/ui/cocoa/side_tab_strip_view.h" | 5 #import "chrome/browser/ui/cocoa/tabs/side_tab_strip_view.h" |
| 6 | 6 |
| 7 #include "base/scoped_nsobject.h" | 7 #include "base/scoped_nsobject.h" |
| 8 #import "third_party/GTM/AppKit/GTMNSColor+Luminance.h" | 8 #import "third_party/GTM/AppKit/GTMNSColor+Luminance.h" |
| 9 | 9 |
| 10 @implementation SideTabStripView | 10 @implementation SideTabStripView |
| 11 | 11 |
| 12 - (void)drawBorder:(NSRect)bounds { | 12 - (void)drawBorder:(NSRect)bounds { |
| 13 // Draw a border on the right side. | 13 // Draw a border on the right side. |
| 14 NSRect borderRect, contentRect; | 14 NSRect borderRect, contentRect; |
| 15 NSDivideRect(bounds, &borderRect, &contentRect, 1, NSMaxXEdge); | 15 NSDivideRect(bounds, &borderRect, &contentRect, 1, NSMaxXEdge); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 34 [[NSGradient alloc] initWithStartingColor:aColor endingColor:bColor]); | 34 [[NSGradient alloc] initWithStartingColor:aColor endingColor:bColor]); |
| 35 | 35 |
| 36 NSRect gradientRect = [self bounds]; | 36 NSRect gradientRect = [self bounds]; |
| 37 [gradient drawInRect:gradientRect angle:270.0]; | 37 [gradient drawInRect:gradientRect angle:270.0]; |
| 38 | 38 |
| 39 // Draw borders and any drop feedback. | 39 // Draw borders and any drop feedback. |
| 40 [super drawRect:rect]; | 40 [super drawRect:rect]; |
| 41 } | 41 } |
| 42 | 42 |
| 43 @end | 43 @end |
| OLD | NEW |