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

Unified Diff: chrome/browser/cocoa/section_separator_view.h

Issue 558066: Autofill dialog for the Mac. This is UI only at this point. The UI is not h... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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
Index: chrome/browser/cocoa/section_separator_view.h
===================================================================
--- chrome/browser/cocoa/section_separator_view.h (revision 0)
+++ chrome/browser/cocoa/section_separator_view.h (revision 0)
@@ -0,0 +1,32 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_COCOA_SECTION_SEPARATOR_VIEW_
+#define CHROME_BROWSER_COCOA_SECTION_SEPARATOR_VIEW_
+
+#import <Cocoa/Cocoa.h>
+
+// A view class that renders a gradient "section" separator. The visual
+// style is modelled similarly to iPhone table view separators. This view
+// paints a simple top-to-bottom gradient in its bounds of fixed gray values.
+// Optionally, it also paints a "topline" and "baseline". Default is to
+// draw both topline and baseline, but these can be overridden.
+// The user of the class can override the color of the base line and top line
+// using the |baselineSeparatorColor| and |toplineSeparatorColor| properties.
+@interface SectionSeparatorView : NSView {
+ @private
+ BOOL showBaseLine_;
+ NSColor* baselineSeparatorColor_;
+ BOOL showTopLine_;
+ NSColor* toplineSeparatorColor_;
+}
+
+@property (nonatomic, assign) BOOL showBaseLine;
+@property (nonatomic, retain) NSColor* baselineSeparatorColor;
+@property (nonatomic, assign) BOOL showTopLine;
+@property (nonatomic, retain) NSColor* toplineSeparatorColor;
+
+@end
+
+#endif // CHROME_BROWSER_COCOA_SECTION_SEPARATOR_VIEW_
« no previous file with comments | « chrome/browser/cocoa/preferences_window_controller.mm ('k') | chrome/browser/cocoa/section_separator_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698