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

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

Issue 354008: [Mac] Enables animations for the infobar.... (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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/cocoa/infobar_controller.h
===================================================================
--- chrome/browser/cocoa/infobar_controller.h (revision 30850)
+++ chrome/browser/cocoa/infobar_controller.h (working copy)
@@ -4,7 +4,8 @@
#import <Cocoa/Cocoa.h>
-@class InfoBarContainerController;
+@class AnimatableView;
+@protocol InfoBarContainer;
class InfoBarDelegate;
// A controller for an infobar in the browser window. There is one
@@ -13,10 +14,12 @@
// override addAdditionalControls to customize the UI.
@interface InfoBarController : NSViewController {
@private
- InfoBarContainerController* containerController_; // weak, owns us
+ id<InfoBarContainer> containerController_; // weak, owns us
+ BOOL infoBarClosing_;
@protected
InfoBarDelegate* delegate_; // weak
+ IBOutlet NSView* infoBarView_;
IBOutlet NSImageView* image_;
IBOutlet NSTextField* label_;
IBOutlet NSButton* okButton_;
@@ -35,12 +38,23 @@
// infobar without taking any action.
- (IBAction)dismiss:(id)sender;
+// Returns a pointer to this controller's view, cast as an AnimatableView.
+- (AnimatableView*)animatableView;
+
+// Open or animate open the infobar.
+- (void)open;
+- (void)animateOpen;
+
+// Close or animate close the infobar.
+- (void)close;
+- (void)animateClosed;
+
// Subclasses can override this method to add additional controls to
// the infobar view. This method is called by awakeFromNib. The
// default implementation does nothing.
- (void)addAdditionalControls;
-@property(assign, nonatomic) InfoBarContainerController* containerController;
+@property(assign, nonatomic) id<InfoBarContainer> containerController;
@property(readonly) InfoBarDelegate* delegate;
@end
« no previous file with comments | « chrome/browser/cocoa/infobar_container_controller_unittest.mm ('k') | chrome/browser/cocoa/infobar_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698