| 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_GRADIENT_BUTTON_CELL_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_GRADIENT_BUTTON_CELL_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_GRADIENT_BUTTON_CELL_H_ | 6 #define CHROME_BROWSER_UI_COCOA_GRADIENT_BUTTON_CELL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
| 10 | 10 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 - (void)setIsContinuousPulsing:(BOOL)continuous; | 97 - (void)setIsContinuousPulsing:(BOOL)continuous; |
| 98 | 98 |
| 99 // Returns continuous pulse state. | 99 // Returns continuous pulse state. |
| 100 - (BOOL)isContinuousPulsing; | 100 - (BOOL)isContinuousPulsing; |
| 101 | 101 |
| 102 // Safely stop continuous pulsing by turning off all timers. | 102 // Safely stop continuous pulsing by turning off all timers. |
| 103 // May leave the cell in an odd state. | 103 // May leave the cell in an odd state. |
| 104 // Needed by an owning control's dealloc routine. | 104 // Needed by an owning control's dealloc routine. |
| 105 - (void)safelyStopPulsing; | 105 - (void)safelyStopPulsing; |
| 106 | 106 |
| 107 // Actually fetches current mouse position and does a hit test. |
| 108 - (BOOL)isMouseReallyInside; |
| 109 |
| 107 @property(assign, nonatomic) CGFloat hoverAlpha; | 110 @property(assign, nonatomic) CGFloat hoverAlpha; |
| 108 | 111 |
| 109 // An image that will be drawn after the normal content of the button cell, | 112 // An image that will be drawn after the normal content of the button cell, |
| 110 // overlaying it. Never themed. | 113 // overlaying it. Never themed. |
| 111 @property(retain, nonatomic) NSImage* overlayImage; | 114 @property(retain, nonatomic) NSImage* overlayImage; |
| 112 | 115 |
| 113 @end | 116 @end |
| 114 | 117 |
| 115 @interface GradientButtonCell(TestingAPI) | 118 @interface GradientButtonCell(TestingAPI) |
| 116 - (BOOL)isMouseInside; | 119 - (BOOL)isMouseInside; |
| 117 - (BOOL)pulsing; | 120 - (BOOL)pulsing; |
| 118 - (gradient_button_cell::PulseState)pulseState; | 121 - (gradient_button_cell::PulseState)pulseState; |
| 119 - (void)setPulseState:(gradient_button_cell::PulseState)pstate; | 122 - (void)setPulseState:(gradient_button_cell::PulseState)pstate; |
| 120 @end | 123 @end |
| 121 | 124 |
| 122 #endif // CHROME_BROWSER_UI_COCOA_GRADIENT_BUTTON_CELL_H_ | 125 #endif // CHROME_BROWSER_UI_COCOA_GRADIENT_BUTTON_CELL_H_ |
| OLD | NEW |