| 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 #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 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 @interface TabView : BackgroundGradientView { | 42 @interface TabView : BackgroundGradientView { |
| 43 @private | 43 @private |
| 44 IBOutlet TabController* controller_; | 44 IBOutlet TabController* controller_; |
| 45 // TODO(rohitrao): Add this button to a CoreAnimation layer so we can fade it | 45 // TODO(rohitrao): Add this button to a CoreAnimation layer so we can fade it |
| 46 // in and out on mouseovers. | 46 // in and out on mouseovers. |
| 47 IBOutlet HoverCloseButton* closeButton_; | 47 IBOutlet HoverCloseButton* closeButton_; |
| 48 | 48 |
| 49 BOOL closing_; | 49 BOOL closing_; |
| 50 | 50 |
| 51 // Tracking area for close button mouseover images. | |
| 52 scoped_nsobject<NSTrackingArea> closeTrackingArea_; | |
| 53 | |
| 54 BOOL isMouseInside_; // Is the mouse hovering over? | 51 BOOL isMouseInside_; // Is the mouse hovering over? |
| 55 tabs::AlertState alertState_; | 52 tabs::AlertState alertState_; |
| 56 | 53 |
| 57 CGFloat hoverAlpha_; // How strong the hover glow is. | 54 CGFloat hoverAlpha_; // How strong the hover glow is. |
| 58 NSTimeInterval hoverHoldEndTime_; // When the hover glow will begin dimming. | 55 NSTimeInterval hoverHoldEndTime_; // When the hover glow will begin dimming. |
| 59 | 56 |
| 60 CGFloat alertAlpha_; // How strong the alert glow is. | 57 CGFloat alertAlpha_; // How strong the alert glow is. |
| 61 NSTimeInterval alertHoldEndTime_; // When the hover glow will begin dimming. | 58 NSTimeInterval alertHoldEndTime_; // When the hover glow will begin dimming. |
| 62 | 59 |
| 63 NSTimeInterval lastGlowUpdate_; // Time either glow was last updated. | 60 NSTimeInterval lastGlowUpdate_; // Time either glow was last updated. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 92 |
| 96 // The TabController |controller_| is not the only owner of this view. If the | 93 // The TabController |controller_| is not the only owner of this view. If the |
| 97 // controller is released before this view, then we could be hanging onto a | 94 // controller is released before this view, then we could be hanging onto a |
| 98 // garbage pointer. To prevent this, the TabController uses this interface to | 95 // garbage pointer. To prevent this, the TabController uses this interface to |
| 99 // clear the |controller_| pointer when it is dying. | 96 // clear the |controller_| pointer when it is dying. |
| 100 @interface TabView (TabControllerInterface) | 97 @interface TabView (TabControllerInterface) |
| 101 - (void)setController:(TabController*)controller; | 98 - (void)setController:(TabController*)controller; |
| 102 @end | 99 @end |
| 103 | 100 |
| 104 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_VIEW_H_ | 101 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_VIEW_H_ |
| OLD | NEW |