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

Side by Side Diff: chrome/browser/ui/cocoa/gradient_button_cell.h

Issue 6889025: Mac. Ensure no more than one visibly selected item in each bookmark folder menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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 | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm ('k') | chrome/browser/ui/cocoa/gradient_button_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698