diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-24 23:22:23 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-24 23:22:23 +0000 |
commit | d50e877baf62f4b553fee834e88941d864527797 (patch) | |
tree | bf4f6173a891bc1d9df1e7ed771f5f3f64036ce2 /chrome/browser/cocoa/gradient_button_cell.h | |
parent | 3cfcae2bed49e80e31fbedf4e2ed45c594e7b941 (diff) | |
download | chromium_src-d50e877baf62f4b553fee834e88941d864527797.zip chromium_src-d50e877baf62f4b553fee834e88941d864527797.tar.gz chromium_src-d50e877baf62f4b553fee834e88941d864527797.tar.bz2 |
Mac: make bookmark bar drag buttons prettier.
(In particular, clip them to their rounded rectangle.)
BUG=28593
TEST=Drag bookmark bar buttons with a wide variety of themes; make sure edges/corners are correctly clipped from drag images.
Review URL: http://codereview.chromium.org/435028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32995 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/gradient_button_cell.h')
-rw-r--r-- | chrome/browser/cocoa/gradient_button_cell.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/gradient_button_cell.h b/chrome/browser/cocoa/gradient_button_cell.h index 23dc5d1..e9d09bd 100644 --- a/chrome/browser/cocoa/gradient_button_cell.h +++ b/chrome/browser/cocoa/gradient_button_cell.h @@ -62,6 +62,12 @@ typedef NSInteger ButtonType; // the current hoverAlpha_ based on these events. - (void)setMouseInside:(BOOL)flag animate:(BOOL)animate; +// Gets the path which tightly bounds the outside of the button. This is needed +// to produce images of clear buttons which only include the area inside, since +// the background of the button is drawn by someone else. +- (NSBezierPath*)clipPathForFrame:(NSRect)cellFrame + inView:(NSView*)controlView; + @property(assign, nonatomic)CGFloat hoverAlpha; @end |