summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/hover_close_button.h
diff options
context:
space:
mode:
authormirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-15 16:26:26 +0000
committermirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-15 16:26:26 +0000
commite9a1a8ddf2167d7a052ac4736b7f5ae622d1e8b2 (patch)
tree776c0de37f69c69395686628fe6ff765a45ccad6 /chrome/browser/cocoa/hover_close_button.h
parentb05e0ac05876e626cc85d3a59e5b8dc2b1a6d9c0 (diff)
downloadchromium_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.h19
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