| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_COCOA_TAB_VIEW_H_ | 5 #ifndef CHROME_BROWSER_COCOA_TAB_VIEW_H_ |
| 6 #define CHROME_BROWSER_COCOA_TAB_VIEW_H_ | 6 #define CHROME_BROWSER_COCOA_TAB_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
| 10 #include <ApplicationServices/ApplicationServices.h> | 10 #include <ApplicationServices/ApplicationServices.h> |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 @property(assign, nonatomic) NSCellStateValue state; | 99 @property(assign, nonatomic) NSCellStateValue state; |
| 100 @property(assign, nonatomic) CGFloat hoverAlpha; | 100 @property(assign, nonatomic) CGFloat hoverAlpha; |
| 101 @property(assign, nonatomic) CGFloat alertAlpha; | 101 @property(assign, nonatomic) CGFloat alertAlpha; |
| 102 | 102 |
| 103 // Determines if the tab is in the process of animating closed. It may still | 103 // Determines if the tab is in the process of animating closed. It may still |
| 104 // be visible on-screen, but should not respond to/initiate any events. Upon | 104 // be visible on-screen, but should not respond to/initiate any events. Upon |
| 105 // setting to NO, clears the target/action of the close button to prevent | 105 // setting to NO, clears the target/action of the close button to prevent |
| 106 // clicks inside it from sending messages. | 106 // clicks inside it from sending messages. |
| 107 @property(assign, nonatomic, getter=isClosing) BOOL closing; | 107 @property(assign, nonatomic, getter=isClosing) BOOL closing; |
| 108 | 108 |
| 109 // Return the state of the mouse if it's hovering on the tab |
| 110 - (BOOL)isMouseIn; |
| 111 |
| 109 // Enables/Disables tracking regions for the tab. | 112 // Enables/Disables tracking regions for the tab. |
| 110 - (void)setTrackingEnabled:(BOOL)enabled; | 113 - (void)setTrackingEnabled:(BOOL)enabled; |
| 111 | 114 |
| 112 // Begin showing an "alert" glow (shown to call attention to an unselected | 115 // Begin showing an "alert" glow (shown to call attention to an unselected |
| 113 // pinned tab whose title changed). | 116 // pinned tab whose title changed). |
| 114 - (void)startAlert; | 117 - (void)startAlert; |
| 115 | 118 |
| 116 // Stop showing the "alert" glow; this won't immediately wipe out any glow, but | 119 // Stop showing the "alert" glow; this won't immediately wipe out any glow, but |
| 117 // will make it fade away. | 120 // will make it fade away. |
| 118 - (void)cancelAlert; | 121 - (void)cancelAlert; |
| 119 | 122 |
| 120 @end | 123 @end |
| 121 | 124 |
| 122 // The TabController |controller_| is not the only owner of this view. If the | 125 // The TabController |controller_| is not the only owner of this view. If the |
| 123 // controller is released before this view, then we could be hanging onto a | 126 // controller is released before this view, then we could be hanging onto a |
| 124 // garbage pointer. To prevent this, the TabController uses this interface to | 127 // garbage pointer. To prevent this, the TabController uses this interface to |
| 125 // clear the |controller_| pointer when it is dying. | 128 // clear the |controller_| pointer when it is dying. |
| 126 @interface TabView (TabControllerInterface) | 129 @interface TabView (TabControllerInterface) |
| 127 - (void)setController:(TabController*)controller; | 130 - (void)setController:(TabController*)controller; |
| 128 @end | 131 @end |
| 129 | 132 |
| 130 #endif // CHROME_BROWSER_COCOA_TAB_VIEW_H_ | 133 #endif // CHROME_BROWSER_COCOA_TAB_VIEW_H_ |
| OLD | NEW |