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

Unified Diff: chrome/browser/cocoa/toolbar_controller.h

Issue 384105: Mac: Animate the bookmark bar showing/hiding. (Closed)
Patch Set: Comments added per rohitrao's review. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/cocoa/toolbar_compressable.h ('k') | chrome/browser/cocoa/toolbar_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/toolbar_controller.h
diff --git a/chrome/browser/cocoa/toolbar_controller.h b/chrome/browser/cocoa/toolbar_controller.h
index 991ff397348bea3ee0c74f862764aefe5d5f071c..f46e264ae776ec7453bec26a0e76c52668de4872 100644
--- a/chrome/browser/cocoa/toolbar_controller.h
+++ b/chrome/browser/cocoa/toolbar_controller.h
@@ -10,7 +10,6 @@
#include "base/scoped_ptr.h"
#include "base/scoped_nsobject.h"
#import "chrome/browser/cocoa/command_observer_bridge.h"
-#import "chrome/browser/cocoa/toolbar_compressable.h"
#import "chrome/browser/cocoa/delayedmenu_button.h"
#import "chrome/browser/cocoa/view_resizer.h"
#include "chrome/common/pref_member.h"
@@ -18,7 +17,6 @@
@class AutocompleteTextField;
@class AutocompleteTextFieldEditor;
@class BackForwardMenuController;
-@class BackgroundGradientView;
class Browser;
@class BrowserActionsController;
class BubblePositioner;
@@ -41,7 +39,7 @@ class ToolbarView;
// the web content view.
@interface ToolbarController :
- NSViewController<CommandObserverProtocol, ToolbarCompressable> {
+ NSViewController<CommandObserverProtocol> {
@private
ToolbarModel* toolbarModel_; // weak, one per window
CommandUpdater* commands_; // weak, one per window
@@ -111,9 +109,6 @@ class ToolbarView;
// returns nil if we don't want to override the custom field editor for |obj|.
- (id)customFieldEditorForObject:(id)obj;
-// Returns the backdrop to the toolbar.
-- (BackgroundGradientView*)backgroundGradientView;
-
// Make the location bar the first responder, if possible.
- (void)focusLocationBar;
@@ -140,6 +135,14 @@ class ToolbarView;
// Somewhere near the star button seems like a good start.
- (NSRect)starButtonInWindowCoordinates;
+// Chop off the bottom of the toolbar by |compressByHeight|; needed when the
+// bookmark bar is attached.
+- (void)setHeightCompression:(CGFloat)compressByHeight;
+
+// Display (or not) the divider (line at bottom); needed when the bookmark bar
+// is attached.
+- (void)setShowsDivider:(BOOL)showDivider;
+
@end
// A set of private methods used by tests, in the absence of "friends" in ObjC.
« no previous file with comments | « chrome/browser/cocoa/toolbar_compressable.h ('k') | chrome/browser/cocoa/toolbar_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698