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

Side by Side Diff: chrome/browser/cocoa/infobar_gradient_view.h

Issue 155788: Infobar UI cleanup on Mac. Adds the yellow background gradient and... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef CHROME_BROWSER_COCOA_BACKGROUND_GRADIENT_VIEW_H_ 5 #ifndef CHROME_BROWSER_COCOA_INFOBAR_GRADIENT_VIEW_H_
6 #define CHROME_BROWSER_COCOA_BACKGROUND_GRADIENT_VIEW_H_ 6 #define CHROME_BROWSER_COCOA_INFOBAR_GRADIENT_VIEW_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #import "third_party/GTM/AppKit/GTMTheme.h"
10 9
11 // A custom view that draws a 'standard' background gradient. 10 // A custom view that draws the yellow background gradient for an infobar.
12 // Base class for other Chromium views.
13 11
14 @interface BackgroundGradientView : NSView { 12 @interface InfoBarGradientView : NSView {
15 @private
16 BOOL showsDivider_;
17 } 13 }
18
19 // The color used for the bottom stroke. Public so subclasses can use.
20 - (NSColor *)strokeColor;
21
22 // Controls whether the bar draws a dividing line at the bottom.
23 @property(assign) BOOL showsDivider;
24 @end 14 @end
25 15
26 #endif // CHROME_BROWSER_COCOA_BACKGROUND_GRADIENT_VIEW_H_ 16 #endif // CHROME_BROWSER_COCOA_INFOBAR_GRADIENT_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/infobar_controller.mm ('k') | chrome/browser/cocoa/infobar_gradient_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698