Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / constrained_window / constrained_window_button.h
blob9bd32ae125e0eb900277842d634294dc30a8b442
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 {
15 @private
16 ui::ScopedCrTrackingArea trackingArea_;
19 @end
21 // A button cell used by ConstrainedWindowButton.
22 @interface ConstrainedWindowButtonCell : NSButtonCell {
23 @private
24 BOOL isMouseInside_;
27 @property(nonatomic, assign) BOOL isMouseInside;
29 @end
31 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_BUTTON_