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

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

Issue 10885024: Integrate Chrome To Mobile with Action Box UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable ShowChromeToMobileBubble on GTK. Created 8 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) 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 "base/memory/scoped_nsobject.h" 10 #include "base/memory/scoped_nsobject.h"
(...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 // Return the anchor point for the Chrome To Mobile bubble on its icon.
150 // The returned value is in the associated window's coordinate system.
151 - (NSPoint)chromeToMobileBubblePoint;
152
153 // Returns the desired toolbar height for the given compression factor. 149 // Returns the desired toolbar height for the given compression factor.
154 - (CGFloat)desiredHeightForCompression:(CGFloat)compressByHeight; 150 - (CGFloat)desiredHeightForCompression:(CGFloat)compressByHeight;
155 151
156 // Set the opacity of the divider (the line at the bottom) *if* we have a 152 // Set the opacity of the divider (the line at the bottom) *if* we have a
157 // |ToolbarView| (0 means don't show it); no-op otherwise. 153 // |ToolbarView| (0 means don't show it); no-op otherwise.
158 - (void)setDividerOpacity:(CGFloat)opacity; 154 - (void)setDividerOpacity:(CGFloat)opacity;
159 155
160 // Create and add the Browser Action buttons to the toolbar view. 156 // Create and add the Browser Action buttons to the toolbar view.
161 - (void)createBrowserActionButtons; 157 - (void)createBrowserActionButtons;
162 158
(...skipping 23 matching lines...) Expand all
186 // Returns an array of views in the order of the outlets above. 182 // Returns an array of views in the order of the outlets above.
187 - (NSArray*)toolbarViews; 183 - (NSArray*)toolbarViews;
188 - (void)showOptionalHomeButton; 184 - (void)showOptionalHomeButton;
189 - (void)installWrenchMenu; 185 - (void)installWrenchMenu;
190 - (WrenchMenuController*)wrenchMenuController; 186 - (WrenchMenuController*)wrenchMenuController;
191 // Return a hover button for the current event. 187 // Return a hover button for the current event.
192 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent; 188 - (NSButton*)hoverButtonForEvent:(NSEvent*)theEvent;
193 @end 189 @end
194 190
195 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_ 191 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698