OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TABS_TAB_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_VIEW_H_ |
6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_VIEW_H_ | 6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_VIEW_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 #include <ApplicationServices/ApplicationServices.h> | 9 #include <ApplicationServices/ApplicationServices.h> |
10 | 10 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // The location of the current mouseDown event in window coordinates. | 67 // The location of the current mouseDown event in window coordinates. |
68 NSPoint mouseDownPoint_; | 68 NSPoint mouseDownPoint_; |
69 | 69 |
70 NSCellStateValue state_; | 70 NSCellStateValue state_; |
71 | 71 |
72 // The tool tip text for this tab view. | 72 // The tool tip text for this tab view. |
73 scoped_nsobject<NSString> toolTipText_; | 73 scoped_nsobject<NSString> toolTipText_; |
74 | 74 |
75 // A one-element mask image cache. This cache makes drawing roughly 16% | 75 // A one-element mask image cache. This cache makes drawing roughly 16% |
76 // faster. | 76 // faster. |
77 base::mac::ScopedCFTypeRef<CGImageRef> maskCache_; | 77 base::ScopedCFTypeRef<CGImageRef> maskCache_; |
78 CGFloat maskCacheWidth_; | 78 CGFloat maskCacheWidth_; |
79 CGFloat maskCacheScale_; | 79 CGFloat maskCacheScale_; |
80 } | 80 } |
81 | 81 |
82 @property(assign, nonatomic) NSCellStateValue state; | 82 @property(assign, nonatomic) NSCellStateValue state; |
83 @property(assign, nonatomic) CGFloat hoverAlpha; | 83 @property(assign, nonatomic) CGFloat hoverAlpha; |
84 @property(assign, nonatomic) CGFloat alertAlpha; | 84 @property(assign, nonatomic) CGFloat alertAlpha; |
85 | 85 |
86 // Determines if the tab is in the process of animating closed. It may still | 86 // Determines if the tab is in the process of animating closed. It may still |
87 // be visible on-screen, but should not respond to/initiate any events. Upon | 87 // be visible on-screen, but should not respond to/initiate any events. Upon |
(...skipping 27 matching lines...) Expand all Loading... |
115 | 115 |
116 // The TabController |controller_| is not the only owner of this view. If the | 116 // The TabController |controller_| is not the only owner of this view. If the |
117 // controller is released before this view, then we could be hanging onto a | 117 // controller is released before this view, then we could be hanging onto a |
118 // garbage pointer. To prevent this, the TabController uses this interface to | 118 // garbage pointer. To prevent this, the TabController uses this interface to |
119 // clear the |controller_| pointer when it is dying. | 119 // clear the |controller_| pointer when it is dying. |
120 @interface TabView (TabControllerInterface) | 120 @interface TabView (TabControllerInterface) |
121 - (void)setController:(TabController*)controller; | 121 - (void)setController:(TabController*)controller; |
122 @end | 122 @end |
123 | 123 |
124 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_VIEW_H_ | 124 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_VIEW_H_ |
OLD | NEW |