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

Side by Side Diff: chrome/browser/cocoa/toolbar_controller.h

Issue 391035: [Mac] Add support for growing or shrinking the window during animations.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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) 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_TOOLBAR_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_COCOA_TOOLBAR_CONTROLLER_H_
6 #define CHROME_BROWSER_COCOA_TOOLBAR_CONTROLLER_H_ 6 #define CHROME_BROWSER_COCOA_TOOLBAR_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 // Allow turning off the toolbar (but we keep the location bar 128 // Allow turning off the toolbar (but we keep the location bar
129 // around). This changes the behavior of other methods, like 129 // around). This changes the behavior of other methods, like
130 // [self view]. 130 // [self view].
131 - (void)setHasToolbar:(BOOL)toolbar; 131 - (void)setHasToolbar:(BOOL)toolbar;
132 132
133 // The bookmark bubble (when you click the star) needs to know where to go. 133 // The bookmark bubble (when you click the star) needs to know where to go.
134 // Somewhere near the star button seems like a good start. 134 // Somewhere near the star button seems like a good start.
135 - (NSRect)starButtonInWindowCoordinates; 135 - (NSRect)starButtonInWindowCoordinates;
136 136
137 // Chop off the bottom of the toolbar by |compressByHeight|; needed when the 137 // Returns the desired toolbar height for the given compression factor.
138 // bookmark bar is attached. 138 - (CGFloat)desiredHeightForCompression:(CGFloat)compressByHeight;
139 - (void)setHeightCompression:(CGFloat)compressByHeight;
140 139
141 // Set the opacity of the divider (the line at the bottom) *if* we have a 140 // Set the opacity of the divider (the line at the bottom) *if* we have a
142 // |ToolbarView| (0 means don't show it); no-op otherwise. 141 // |ToolbarView| (0 means don't show it); no-op otherwise.
143 - (void)setDividerOpacity:(CGFloat)opacity; 142 - (void)setDividerOpacity:(CGFloat)opacity;
144 143
145 @end 144 @end
146 145
147 // A set of private methods used by tests, in the absence of "friends" in ObjC. 146 // A set of private methods used by tests, in the absence of "friends" in ObjC.
148 @interface ToolbarController(PrivateTestMethods) 147 @interface ToolbarController(PrivateTestMethods)
149 // Returns an array of views in the order of the outlets above. 148 // Returns an array of views in the order of the outlets above.
150 - (NSArray*)toolbarViews; 149 - (NSArray*)toolbarViews;
151 - (void)showOptionalHomeButton; 150 - (void)showOptionalHomeButton;
152 - (void)showOptionalPageWrenchButtons; 151 - (void)showOptionalPageWrenchButtons;
153 - (gfx::Rect)locationStackBounds; 152 - (gfx::Rect)locationStackBounds;
154 // Return a hover button for the current event. 153 // Return a hover button for the current event.
155 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent; 154 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent;
156 @end 155 @end
157 156
158 #endif // CHROME_BROWSER_COCOA_TOOLBAR_CONTROLLER_H_ 157 #endif // CHROME_BROWSER_COCOA_TOOLBAR_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/browser_window_controller_unittest.mm ('k') | chrome/browser/cocoa/toolbar_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698