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

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

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 | « no previous file | chrome/browser/cocoa/repost_form_warning_mac.mm » ('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.h
diff --git a/chrome/browser/cocoa/repost_form_warning_mac.h b/chrome/browser/cocoa/repost_form_warning_mac.h
index d55beeb2eff76cb7f9816f2eca460995f7bfda3b..7841fa5d5e96e3913da6477e382679b249615c19 100644
--- a/chrome/browser/cocoa/repost_form_warning_mac.h
+++ b/chrome/browser/cocoa/repost_form_warning_mac.h
@@ -11,17 +11,13 @@
#include "chrome/common/notification_registrar.h"
class NavigationController;
+@class RepostDelegate;
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
-
+// Displays a dialog that warns the user that they are about to resubmit a form.
+// To display the dialog, allocate this object on the heap. It will open the
+// dialog from its constructor and then delete itself when the user dismisses
+// the dialog.
class RepostFormWarningMac : public NotificationObserver {
public:
RepostFormWarningMac(NSWindow* parent,
« no previous file with comments | « no previous file | chrome/browser/cocoa/repost_form_warning_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698