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

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

Issue 2586373003: MacViews: Allow toolkit-views for "Global Error" bubbles. (Closed)
Patch Set: addObserverForName Created 3 years, 11 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_TOOLBAR_TOOLBAR_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // ignored. This changes the behavior of other methods, like |-view|. 158 // ignored. This changes the behavior of other methods, like |-view|.
159 - (void)setHasToolbar:(BOOL)toolbar hasLocationBar:(BOOL)locBar; 159 - (void)setHasToolbar:(BOOL)toolbar hasLocationBar:(BOOL)locBar;
160 160
161 // Point on the star icon for the bookmark bubble to be - in the 161 // Point on the star icon for the bookmark bubble to be - in the
162 // associated window's coordinate system. 162 // associated window's coordinate system.
163 - (NSPoint)bookmarkBubblePoint; 163 - (NSPoint)bookmarkBubblePoint;
164 164
165 // Point on the save credit card icon for the save credit card bubble. 165 // Point on the save credit card icon for the save credit card bubble.
166 - (NSPoint)saveCreditCardBubblePoint; 166 - (NSPoint)saveCreditCardBubblePoint;
167 167
168 // Point in the window's coordinate system for bubbles attached to the app menu.
169 - (NSPoint)appMenuBubblePoint;
170
168 // Returns the desired toolbar height for the given compression factor. 171 // Returns the desired toolbar height for the given compression factor.
169 - (CGFloat)desiredHeightForCompression:(CGFloat)compressByHeight; 172 - (CGFloat)desiredHeightForCompression:(CGFloat)compressByHeight;
170 173
171 // Set the opacity of the divider (the line at the bottom) *if* we have a 174 // Set the opacity of the divider (the line at the bottom) *if* we have a
172 // |ToolbarView| (0 means don't show it); no-op otherwise. 175 // |ToolbarView| (0 means don't show it); no-op otherwise.
173 - (void)setDividerOpacity:(CGFloat)opacity; 176 - (void)setDividerOpacity:(CGFloat)opacity;
174 177
175 // Create and add the Browser Action buttons to the toolbar view. 178 // Create and add the Browser Action buttons to the toolbar view.
176 - (void)createBrowserActionButtons; 179 - (void)createBrowserActionButtons;
177 180
(...skipping 18 matching lines...) Expand all
196 @interface ToolbarController(PrivateTestMethods) 199 @interface ToolbarController(PrivateTestMethods)
197 // Returns an array of views in the order of the outlets above. 200 // Returns an array of views in the order of the outlets above.
198 - (NSArray*)toolbarViews; 201 - (NSArray*)toolbarViews;
199 - (void)showOptionalHomeButton; 202 - (void)showOptionalHomeButton;
200 - (void)installAppMenu; 203 - (void)installAppMenu;
201 // Return a hover button for the current event. 204 // Return a hover button for the current event.
202 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent; 205 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent;
203 @end 206 @end
204 207
205 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_ 208 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/global_error_bubble_controller_views.mm ('k') | chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698