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

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

Issue 155788: Infobar UI cleanup on Mac. Adds the yellow background gradient and... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/nibs/InfoBar.xib ('k') | chrome/browser/cocoa/infobar_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/infobar_controller.h
===================================================================
--- chrome/browser/cocoa/infobar_controller.h (revision 21109)
+++ chrome/browser/cocoa/infobar_controller.h (working copy)
@@ -19,13 +19,21 @@
InfoBarDelegate* delegate_; // weak
IBOutlet NSImageView* image_;
IBOutlet NSTextField* label_;
+ IBOutlet NSButton* okButton_;
+ IBOutlet NSButton* cancelButton_;
IBOutlet NSButton* closeButton_;
};
// Initializes a new InfoBarController.
- (id)initWithDelegate:(InfoBarDelegate*)delegate;
-// Dismisses the infobar without taking any action.
+// Called when someone clicks on the ok or cancel buttons. Subclasses
+// must override if they do not hide the buttons.
+- (void)ok:(id)sender;
+- (void)cancel:(id)sender;
+
+// Called when someone clicks on the close button. Dismisses the
+// infobar without taking any action.
- (IBAction)dismiss:(id)sender;
// Subclasses can override this method to add additional controls to
« no previous file with comments | « chrome/app/nibs/InfoBar.xib ('k') | chrome/browser/cocoa/infobar_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698