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

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

Issue 7857014: patch for global error bubbles (view/gtk) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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_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 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 10
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 // Allow turning off the toolbar (but we may keep the location bar without a 140 // Allow turning off the toolbar (but we may keep the location bar without a
141 // surrounding toolbar). If |toolbar| is YES, the value of |hasLocationBar| is 141 // surrounding toolbar). If |toolbar| is YES, the value of |hasLocationBar| is
142 // ignored. This changes the behavior of other methods, like |-view|. 142 // ignored. This changes the behavior of other methods, like |-view|.
143 - (void)setHasToolbar:(BOOL)toolbar hasLocationBar:(BOOL)locBar; 143 - (void)setHasToolbar:(BOOL)toolbar hasLocationBar:(BOOL)locBar;
144 144
145 // Point on the star icon for the bookmark bubble to be - in the 145 // Point on the star icon for the bookmark bubble to be - in the
146 // associated window's coordinate system. 146 // associated window's coordinate system.
147 - (NSPoint)bookmarkBubblePoint; 147 - (NSPoint)bookmarkBubblePoint;
148 148
149 // Point on the wrench menu button for the global error bubble to be - in the
150 // associated window's coordinate system.
151 - (NSPoint)wrenchButtonBubblePoint;
152
149 // Returns the desired toolbar height for the given compression factor. 153 // Returns the desired toolbar height for the given compression factor.
150 - (CGFloat)desiredHeightForCompression:(CGFloat)compressByHeight; 154 - (CGFloat)desiredHeightForCompression:(CGFloat)compressByHeight;
151 155
152 // Set the opacity of the divider (the line at the bottom) *if* we have a 156 // Set the opacity of the divider (the line at the bottom) *if* we have a
153 // |ToolbarView| (0 means don't show it); no-op otherwise. 157 // |ToolbarView| (0 means don't show it); no-op otherwise.
154 - (void)setDividerOpacity:(CGFloat)opacity; 158 - (void)setDividerOpacity:(CGFloat)opacity;
155 159
156 // Create and add the Browser Action buttons to the toolbar view. 160 // Create and add the Browser Action buttons to the toolbar view.
157 - (void)createBrowserActionButtons; 161 - (void)createBrowserActionButtons;
158 162
(...skipping 20 matching lines...) Expand all
179 // Returns an array of views in the order of the outlets above. 183 // Returns an array of views in the order of the outlets above.
180 - (NSArray*)toolbarViews; 184 - (NSArray*)toolbarViews;
181 - (void)showOptionalHomeButton; 185 - (void)showOptionalHomeButton;
182 - (void)installWrenchMenu; 186 - (void)installWrenchMenu;
183 - (WrenchMenuController*)wrenchMenuController; 187 - (WrenchMenuController*)wrenchMenuController;
184 // Return a hover button for the current event. 188 // Return a hover button for the current event.
185 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent; 189 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent;
186 @end 190 @end
187 191
188 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_ 192 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/l10n_util.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