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

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

Issue 159060: Use a real download item.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: first round of review comments addressed 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/cocoa/download_shelf_controller.mm ('k') | chrome/browser/cocoa/gradient_button_cell.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/gradient_button_cell.h
===================================================================
--- chrome/browser/cocoa/gradient_button_cell.h (revision 21145)
+++ chrome/browser/cocoa/gradient_button_cell.h (working copy)
@@ -9,12 +9,15 @@
#include "base/scoped_nsobject.h"
+@class GTMTheme;
+
// Base class for button cells for toolbar and bookmark bar.
//
// This is a button cell that handles drawing/highlighting of buttons.
// The appearance is determined by setting the cell's tag (not the
// view's) to one of the constants below (ButtonType).
+// Set this as the cell's tag.
enum {
kLeftButtonType = -1,
kLeftButtonWithShadowType = -2,
@@ -33,6 +36,15 @@
}
// Turn off theming. Temporary work-around.
- (void)setShouldTheme:(BOOL)shouldTheme;
+
+- (void)drawBorderAndFillForTheme:(GTMTheme*)theme
+ controlView:(NSView*)controlView
+ outerPath:(NSBezierPath*)outerPath
+ innerPath:(NSBezierPath*)innerPath
+ showHighlightGradient:(BOOL)showHighlightGradient
+ showClickedGradient:(BOOL)showClickedGradient
+ active:(BOOL)active
+ cellFrame:(NSRect)cellFrame;
@end
@interface GradientButtonCell(TestingAPI)
« no previous file with comments | « chrome/browser/cocoa/download_shelf_controller.mm ('k') | chrome/browser/cocoa/gradient_button_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698