summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/infobar_controller.h
diff options
context:
space:
mode:
authorrohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-20 23:35:24 +0000
committerrohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-20 23:35:24 +0000
commite1b58df5167ebd4374ee36ec57ee77d4f2e68595 (patch)
treead520f91eb90596d93382ead3eb2b9d42a6aa99c /chrome/browser/cocoa/infobar_controller.h
parentf88f164cd5cbf64075fbfa5d95b0178c2fbb7f4c (diff)
downloadchromium_src-e1b58df5167ebd4374ee36ec57ee77d4f2e68595.zip
chromium_src-e1b58df5167ebd4374ee36ec57ee77d4f2e68595.tar.gz
chromium_src-e1b58df5167ebd4374ee36ec57ee77d4f2e68595.tar.bz2
Infobar UI cleanup on Mac. Adds the yellow background gradient and
centers all of the buttons. Also adds the ok/cancel buttons to the xib file. Infobars that do not need the buttons can remove them from the view before displaying. BUG=http://crbug.com/14462 BUG=http://crbug.com/17195 TEST=Infobars should have yellow background, look less ugly. Review URL: http://codereview.chromium.org/155788 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21128 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/infobar_controller.h')
-rw-r--r--chrome/browser/cocoa/infobar_controller.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/infobar_controller.h b/chrome/browser/cocoa/infobar_controller.h
index b8d7231..f037ddf 100644
--- a/chrome/browser/cocoa/infobar_controller.h
+++ b/chrome/browser/cocoa/infobar_controller.h
@@ -19,13 +19,21 @@ class InfoBarDelegate;
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