1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_BUTTON_
6 #define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_BUTTON_
8 #import <Cocoa/Cocoa.h>
10 #import "ui/base/cocoa/tracking_area.h"
12 // A push button for use in a constrained window. Specialized constrained
13 // windows that need a push button should use this class instead of NSButton.
14 @interface ConstrainedWindowButton
: NSButton
{
16 ui::ScopedCrTrackingArea trackingArea_
;
21 // A button cell used by ConstrainedWindowButton.
22 @interface ConstrainedWindowButtonCell
: NSButtonCell
{
27 @
property(nonatomic
, assign
) BOOL isMouseInside
;
31 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_BUTTON_