| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_COCOA_SECTION_SEPARATOR_VIEW_ | |
| 6 #define CHROME_BROWSER_COCOA_SECTION_SEPARATOR_VIEW_ | |
| 7 | |
| 8 #import <Cocoa/Cocoa.h> | |
| 9 | |
| 10 // A view class that renders a gradient "section" separator. The visual | |
| 11 // style is modelled similarly to iPhone table view separators. This view | |
| 12 // paints a simple top-to-bottom gradient in its bounds of fixed gray values. | |
| 13 // Optionally, it also paints a "topline" and "baseline". Default is to | |
| 14 // draw both topline and baseline, but these can be overridden. | |
| 15 // The user of the class can override the color of the base line and top line | |
| 16 // using the |baselineSeparatorColor| and |toplineSeparatorColor| properties. | |
| 17 @interface SectionSeparatorView : NSView { | |
| 18 @private | |
| 19 BOOL showBaseLine_; | |
| 20 NSColor* baselineSeparatorColor_; | |
| 21 BOOL showTopLine_; | |
| 22 NSColor* toplineSeparatorColor_; | |
| 23 } | |
| 24 | |
| 25 @property (nonatomic, assign) BOOL showBaseLine; | |
| 26 @property (nonatomic, retain) NSColor* baselineSeparatorColor; | |
| 27 @property (nonatomic, assign) BOOL showTopLine; | |
| 28 @property (nonatomic, retain) NSColor* toplineSeparatorColor; | |
| 29 | |
| 30 @end | |
| 31 | |
| 32 #endif // CHROME_BROWSER_COCOA_SECTION_SEPARATOR_VIEW_ | |
| OLD | NEW |