blob: 372582ca8455932889432aca4b2f2fab6a27928e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright (c) 2010 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"
#include "chrome/browser/ui/cocoa/hover_button.h"
// The standard close button for our Mac UI which is the "x" that changes to a
// dark 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 : HoverButton {
@private
// Bezier path for drawing the 'x' within the button.
scoped_nsobject<NSBezierPath> xPath_;
// Bezier path for drawing the hover state circle behind the 'x'.
scoped_nsobject<NSBezierPath> circlePath_;
}
// Sets up the button's tracking areas and accessibility info when instantiated
// via initWithFrame or awakeFromNib.
- (void)commonInit;
@end
|