diff options
author | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-15 16:26:26 +0000 |
---|---|---|
committer | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-15 16:26:26 +0000 |
commit | e9a1a8ddf2167d7a052ac4736b7f5ae622d1e8b2 (patch) | |
tree | 776c0de37f69c69395686628fe6ff765a45ccad6 /chrome/browser/cocoa/hover_close_button.h | |
parent | b05e0ac05876e626cc85d3a59e5b8dc2b1a6d9c0 (diff) | |
download | chromium_src-e9a1a8ddf2167d7a052ac4736b7f5ae622d1e8b2.zip chromium_src-e9a1a8ddf2167d7a052ac4736b7f5ae622d1e8b2.tar.gz chromium_src-e9a1a8ddf2167d7a052ac4736b7f5ae622d1e8b2.tar.bz2 |
Committing issue 484006 for feldstein.
Refactor close button to its own class.
BUG= 23641
TEST= see http://codereview.chromium.org/484006
Review URL: http://codereview.chromium.org/501003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34556 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/hover_close_button.h')
-rw-r--r-- | chrome/browser/cocoa/hover_close_button.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/hover_close_button.h b/chrome/browser/cocoa/hover_close_button.h new file mode 100644 index 0000000..c470688 --- /dev/null +++ b/chrome/browser/cocoa/hover_close_button.h @@ -0,0 +1,19 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import <Cocoa/Cocoa.h> +#include "base/scoped_nsobject.h" + +// The standard close button for our Mac UI which is the "x" +// that changes to the red circle with the "x" when you hover over it. +// At this time it is used by the popup blocker, download bar, info bar +// and tabs. +@interface HoverCloseButton : NSButton { + // Tracking area for close button mouseover images. + scoped_nsobject<NSTrackingArea> closeTrackingArea_; +} + +// Enables or disables the |NSTrackingRect|s for the button. +- (void)setTrackingEnabled:(BOOL)enabled; +@end |