| 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 #include "chrome/browser/cocoa/extensions/chevron_menu_button_cell.h" | 5 #include "chrome/browser/cocoa/extensions/chevron_menu_button_cell.h" |
| 6 | 6 |
| 7 namespace { | 7 namespace { |
| 8 | 8 |
| 9 // Width of the divider. | 9 // Width of the divider. |
| 10 const CGFloat kDividerWidth = 1.0; | 10 const CGFloat kDividerWidth = 1.0; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 nil]); | 38 nil]); |
| 39 | 39 |
| 40 NSRect edgeRect, remainder; | 40 NSRect edgeRect, remainder; |
| 41 NSDivideRect(cellFrame, &edgeRect, &remainder, kDividerWidth, NSMaxXEdge); | 41 NSDivideRect(cellFrame, &edgeRect, &remainder, kDividerWidth, NSMaxXEdge); |
| 42 edgeRect = NSInsetRect(edgeRect, 0.0, kDividerInset); | 42 edgeRect = NSInsetRect(edgeRect, 0.0, kDividerInset); |
| 43 | 43 |
| 44 [borderGradient drawInRect:edgeRect angle:90.0]; | 44 [borderGradient drawInRect:edgeRect angle:90.0]; |
| 45 } | 45 } |
| 46 | 46 |
| 47 @end | 47 @end |
| OLD | NEW |