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

Unified Diff: chrome/browser/cocoa/repost_form_warning_mac.mm

Issue 354009: Address post-submit comments from http://codereview.chromium.org/327009 . (Closed)
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
« no previous file with comments | « chrome/browser/cocoa/repost_form_warning_mac.h ('k') | chrome/browser/gtk/repost_form_warning_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/repost_form_warning_mac.mm
diff --git a/chrome/browser/cocoa/repost_form_warning_mac.mm b/chrome/browser/cocoa/repost_form_warning_mac.mm
index ab63ceedcdffe493229f2f59bfe7a7c48c1408f1..0635e95a268b5e1637664f3f552da9c23926986d 100644
--- a/chrome/browser/cocoa/repost_form_warning_mac.mm
+++ b/chrome/browser/cocoa/repost_form_warning_mac.mm
@@ -10,6 +10,17 @@
#include "chrome/common/notification_service.h"
#include "grit/generated_resources.h"
+// The delegate of the NSAlert used to display the dialog. Forwards the alert's
+// completion event to the C++ class |RepostFormWarningMac|.
+@interface RepostDelegate : NSObject {
+ RepostFormWarningMac* warning_; // weak, owns us.
+}
+- (id)initWithWarning:(RepostFormWarningMac*)warning;
+- (void)alertDidEnd:(NSAlert*)alert
+ returnCode:(int)returnCode
+ contextInfo:(void*)contextInfo;
+@end
+
@implementation RepostDelegate
- (id)initWithWarning:(RepostFormWarningMac*)warning {
if ((self = [super init])) {
« no previous file with comments | « chrome/browser/cocoa/repost_form_warning_mac.h ('k') | chrome/browser/gtk/repost_form_warning_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698