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

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

Issue 384115: Mac: Draw download item background like windows does if a theme is installed. (Closed)
Patch Set: Created 11 years, 1 month 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
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_CHROMIUM_BUTTON_CELL_H_ 5 #ifndef CHROME_BROWSER_COCOA_CHROMIUM_BUTTON_CELL_H_
6 #define CHROME_BROWSER_COCOA_CHROMIUM_BUTTON_CELL_H_ 6 #define CHROME_BROWSER_COCOA_CHROMIUM_BUTTON_CELL_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/scoped_nsobject.h" 10 #include "base/scoped_nsobject.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 - (void)setShouldTheme:(BOOL)shouldTheme; 44 - (void)setShouldTheme:(BOOL)shouldTheme;
45 45
46 - (void)drawBorderAndFillForTheme:(GTMTheme*)theme 46 - (void)drawBorderAndFillForTheme:(GTMTheme*)theme
47 controlView:(NSView*)controlView 47 controlView:(NSView*)controlView
48 outerPath:(NSBezierPath*)outerPath 48 outerPath:(NSBezierPath*)outerPath
49 innerPath:(NSBezierPath*)innerPath 49 innerPath:(NSBezierPath*)innerPath
50 showClickedGradient:(BOOL)showClickedGradient 50 showClickedGradient:(BOOL)showClickedGradient
51 showHighlightGradient:(BOOL)showHighlightGradient 51 showHighlightGradient:(BOOL)showHighlightGradient
52 hoverAlpha:(CGFloat)hoverAlpha 52 hoverAlpha:(CGFloat)hoverAlpha
53 active:(BOOL)active 53 active:(BOOL)active
54 cellFrame:(NSRect)cellFrame; 54 cellFrame:(NSRect)cellFrame
55 defaultGradient:(NSGradient*)defaultGradient;
55 56
56 // An image to underlay beneath the existing image; not themed. May be nil. 57 // An image to underlay beneath the existing image; not themed. May be nil.
57 - (NSImage*)underlayImage; 58 - (NSImage*)underlayImage;
58 - (void)setUnderlayImage:(NSImage*)image; 59 - (void)setUnderlayImage:(NSImage*)image;
59 60
60 // Let the view know when the mouse moves in and out. A timer will update 61 // Let the view know when the mouse moves in and out. A timer will update
61 // the current hoverAlpha_ based on these events. 62 // the current hoverAlpha_ based on these events.
62 - (void)setMouseInside:(BOOL)flag animate:(BOOL)animate; 63 - (void)setMouseInside:(BOOL)flag animate:(BOOL)animate;
63 64
64 @property(assign, nonatomic)CGFloat hoverAlpha; 65 @property(assign, nonatomic)CGFloat hoverAlpha;
65 @end 66 @end
66 67
67 @interface GradientButtonCell(TestingAPI) 68 @interface GradientButtonCell(TestingAPI)
68 - (BOOL)isMouseInside; 69 - (BOOL)isMouseInside;
69 @end 70 @end
70 71
71 #endif // CHROME_BROWSER_COCOA_CHROMIUM_BUTTON_CELL_H_ 72 #endif // CHROME_BROWSER_COCOA_CHROMIUM_BUTTON_CELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698