- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / cocoa / constrained_window / constrained_window_button.h
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.
4
5 #ifndef CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_BUTTON_
6 #define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_BUTTON_
7
8 #import <Cocoa/Cocoa.h>
9
10 #import "ui/base/cocoa/tracking_area.h"
11
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 {
15  @private
16   ui::ScopedCrTrackingArea trackingArea_;
17 }
18
19 @end
20
21 // A button cell used by ConstrainedWindowButton.
22 @interface ConstrainedWindowButtonCell : NSButtonCell {
23  @private
24   BOOL isMouseInside_;
25 }
26
27 @property(nonatomic, assign) BOOL isMouseInside;
28
29 @end
30
31 #endif  // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_BUTTON_