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

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

Issue 348018: Foo. (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 20 matching lines...) Expand all
31 @private 31 @private
32 // Custom drawing means we need to perform our own mouse tracking if 32 // Custom drawing means we need to perform our own mouse tracking if
33 // the cell is setShowsBorderOnlyWhileMouseInside:YES. 33 // the cell is setShowsBorderOnlyWhileMouseInside:YES.
34 BOOL isMouseInside_; 34 BOOL isMouseInside_;
35 scoped_nsobject<NSTrackingArea> trackingArea_; 35 scoped_nsobject<NSTrackingArea> trackingArea_;
36 BOOL shouldTheme_; 36 BOOL shouldTheme_;
37 CGFloat hoverAlpha_; // 0-1. Controls the alpha during mouse hover 37 CGFloat hoverAlpha_; // 0-1. Controls the alpha during mouse hover
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 scoped_nsobject<NSColor> textColor_;
41 } 42 }
42 43
43 // Turn off theming. Temporary work-around. 44 // Turn off theming. Temporary work-around.
44 - (void)setShouldTheme:(BOOL)shouldTheme; 45 - (void)setShouldTheme:(BOOL)shouldTheme;
45 46
46 - (void)drawBorderAndFillForTheme:(GTMTheme*)theme 47 - (void)drawBorderAndFillForTheme:(GTMTheme*)theme
47 controlView:(NSView*)controlView 48 controlView:(NSView*)controlView
48 outerPath:(NSBezierPath*)outerPath 49 outerPath:(NSBezierPath*)outerPath
49 innerPath:(NSBezierPath*)innerPath 50 innerPath:(NSBezierPath*)innerPath
50 showClickedGradient:(BOOL)showClickedGradient 51 showClickedGradient:(BOOL)showClickedGradient
(...skipping 11 matching lines...) Expand all
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
« no previous file with comments | « chrome/browser/cocoa/bookmark_button_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