diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-26 20:20:51 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-26 20:20:51 +0000 |
commit | 71f4c1dc80499f254b9f06e510002ff3b43a87e0 (patch) | |
tree | 6eeb8693a47e7990e5bb3995812e2fa641bcda09 /chrome/browser/cocoa/tab_view.h | |
parent | 7cc6c0ba59df63f9f084f8cdfc695fa7b4ae1823 (diff) | |
download | chromium_src-71f4c1dc80499f254b9f06e510002ff3b43a87e0.zip chromium_src-71f4c1dc80499f254b9f06e510002ff3b43a87e0.tar.gz chromium_src-71f4c1dc80499f254b9f06e510002ff3b43a87e0.tar.bz2 |
Updates to clean up default theme and add hover states.
Path by Cole.
BUG=http://crbug.com/18573;http://crbug.com/18574;http://crbug.com/18360;http://crbug.com/18438
TEST=none
Review URL: http://codereview.chromium.org/165499
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24512 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/tab_view.h')
-rw-r--r-- | chrome/browser/cocoa/tab_view.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/tab_view.h b/chrome/browser/cocoa/tab_view.h index fe6e567..2595ea2 100644 --- a/chrome/browser/cocoa/tab_view.h +++ b/chrome/browser/cocoa/tab_view.h @@ -24,7 +24,7 @@ IBOutlet NSButton* closeButton_; // Tracking area for close button mouseover images. - scoped_nsobject<NSTrackingArea> trackingArea_; + scoped_nsobject<NSTrackingArea> closeTrackingArea_; // All following variables are valid for the duration of a drag. // These are released on mouseUp: @@ -32,6 +32,10 @@ BOOL tabWasDragged_; // Has the tab been dragged? BOOL draggingWithinTabStrip_; // Did drag stay in the current tab strip? BOOL chromeIsVisible_; + BOOL isMouseInside_; // Is the mouse hovering over? + CGFloat hoverAlpha_; // How strong the mouse hover state is. + NSTimeInterval lastHoverUpdate_; // Time the hover value was last updated. + NSPoint hoverPoint_; // Current location of hover in view coords. NSTimeInterval tearTime_; // Time since tear happened NSPoint tearOrigin_; // Origin of the tear rect @@ -51,6 +55,7 @@ NSCellStateValue state_; } @property(assign) NSCellStateValue state; +@property(assign, nonatomic)CGFloat hoverAlpha; @end #endif // CHROME_BROWSER_COCOA_TAB_VIEW_H_ |