diff options
author | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-02 18:51:59 +0000 |
---|---|---|
committer | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-02 18:51:59 +0000 |
commit | 125628446db08f0a43be1dbe9681376514fa836d (patch) | |
tree | b854e5215e2df43cf4951f226b24ad56377a5caa /chrome/browser/cocoa/tab_view.h | |
parent | 699ffb85a67ee640e266f8348622f22aa5d8a908 (diff) | |
download | chromium_src-125628446db08f0a43be1dbe9681376514fa836d.zip chromium_src-125628446db08f0a43be1dbe9681376514fa836d.tar.gz chromium_src-125628446db08f0a43be1dbe9681376514fa836d.tar.bz2 |
Adds mouseover images to the close tab button on Mac.
BUG=none
TEST=Mousing over the close button should change its image.
Review URL: http://codereview.chromium.org/113857
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17417 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/tab_view.h')
-rw-r--r-- | chrome/browser/cocoa/tab_view.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/tab_view.h b/chrome/browser/cocoa/tab_view.h index 96536d7..2124c20 100644 --- a/chrome/browser/cocoa/tab_view.h +++ b/chrome/browser/cocoa/tab_view.h @@ -7,6 +7,8 @@ #import <Cocoa/Cocoa.h> +#include "base/scoped_nsobject.h" + @class TabController, TabWindowController; // A view that handles the event tracking (clicking and dragging) for a tab @@ -20,6 +22,9 @@ // in and out on mouseovers. IBOutlet NSButton* closeButton_; + // Tracking area for close button mouseover images. + scoped_nsobject<NSTrackingArea> trackingArea_; + // All following variables are valid for the duration of a drag. // These are released on mouseUp: BOOL isTheOnlyTab_; // Is this the only tab in the window? |