Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: chrome/browser/ui/cocoa/constrained_window/constrained_window_button.h

Issue 12763002: Move CrTrackingArea from chrome/browser/ui/cocoa to ui/base/cocoa. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test in namespace Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_BUTTON_ 5 #ifndef CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_BUTTON_
6 #define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_BUTTON_ 6 #define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_BUTTON_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #import "chrome/browser/ui/cocoa/tracking_area.h" 10 #import "ui/base/cocoa/tracking_area.h"
11 11
12 // A push button for use in a constrained window. Specialized constrained 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. 13 // windows that need a push button should use this class instead of NSButton.
14 @interface ConstrainedWindowButton : NSButton { 14 @interface ConstrainedWindowButton : NSButton {
15 @private 15 @private
16 ScopedCrTrackingArea trackingArea_; 16 ui::ScopedCrTrackingArea trackingArea_;
17 } 17 }
18 18
19 @end 19 @end
20 20
21 // A button cell used by ConstrainedWindowButton. 21 // A button cell used by ConstrainedWindowButton.
22 @interface ConstrainedWindowButtonCell : NSButtonCell { 22 @interface ConstrainedWindowButtonCell : NSButtonCell {
23 @private 23 @private
24 BOOL isMouseInside_; 24 BOOL isMouseInside_;
25 } 25 }
26 26
27 @property(nonatomic, assign) BOOL isMouseInside; 27 @property(nonatomic, assign) BOOL isMouseInside;
28 28
29 @end 29 @end
30 30
31 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_BUTTON_ 31 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_BUTTON_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser/zoom_bubble_controller.h ('k') | chrome/browser/ui/cocoa/hover_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698