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

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

Issue 495010: Mac: fix/implement app windows (not app mode), popups, drawing; refactor code. (Closed)
Patch Set: Updated per pink's review. Created 11 years 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 27 matching lines...) Expand all
38 NSTimeInterval lastHoverUpdate_; 38 NSTimeInterval lastHoverUpdate_;
39 scoped_nsobject<NSGradient> gradient_; 39 scoped_nsobject<NSGradient> gradient_;
40 scoped_nsobject<NSImage> underlayImage_; 40 scoped_nsobject<NSImage> underlayImage_;
41 } 41 }
42 42
43 // Turn off theming. Temporary work-around. 43 // Turn off theming. Temporary work-around.
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
49 innerPath:(NSBezierPath*)innerPath 48 innerPath:(NSBezierPath*)innerPath
50 showClickedGradient:(BOOL)showClickedGradient 49 showClickedGradient:(BOOL)showClickedGradient
51 showHighlightGradient:(BOOL)showHighlightGradient 50 showHighlightGradient:(BOOL)showHighlightGradient
52 hoverAlpha:(CGFloat)hoverAlpha 51 hoverAlpha:(CGFloat)hoverAlpha
53 active:(BOOL)active 52 active:(BOOL)active
54 cellFrame:(NSRect)cellFrame 53 cellFrame:(NSRect)cellFrame
55 defaultGradient:(NSGradient*)defaultGradient; 54 defaultGradient:(NSGradient*)defaultGradient;
56 55
57 // An image to underlay beneath the existing image; not themed. May be nil. 56 // An image to underlay beneath the existing image; not themed. May be nil.
58 - (NSImage*)underlayImage; 57 - (NSImage*)underlayImage;
(...skipping 10 matching lines...) Expand all
69 inView:(NSView*)controlView; 68 inView:(NSView*)controlView;
70 69
71 @property(assign, nonatomic)CGFloat hoverAlpha; 70 @property(assign, nonatomic)CGFloat hoverAlpha;
72 @end 71 @end
73 72
74 @interface GradientButtonCell(TestingAPI) 73 @interface GradientButtonCell(TestingAPI)
75 - (BOOL)isMouseInside; 74 - (BOOL)isMouseInside;
76 @end 75 @end
77 76
78 #endif // CHROME_BROWSER_COCOA_CHROMIUM_BUTTON_CELL_H_ 77 #endif // CHROME_BROWSER_COCOA_CHROMIUM_BUTTON_CELL_H_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/download_item_cell.mm ('k') | chrome/browser/cocoa/gradient_button_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698