summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/cocoa/repost_form_warning_mac.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/cocoa/repost_form_warning_mac.h')
-rw-r--r--chrome/browser/ui/cocoa/repost_form_warning_mac.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/chrome/browser/ui/cocoa/repost_form_warning_mac.h b/chrome/browser/ui/cocoa/repost_form_warning_mac.h
new file mode 100644
index 0000000..a7ca8b2
--- /dev/null
+++ b/chrome/browser/ui/cocoa/repost_form_warning_mac.h
@@ -0,0 +1,40 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_COCOA_REPOST_FORM_WARNING_MAC_H_
+#define CHROME_BROWSER_UI_COCOA_REPOST_FORM_WARNING_MAC_H_
+#pragma once
+
+#import <Cocoa/Cocoa.h>
+
+#include "base/scoped_ptr.h"
+#include "chrome/browser/ui/cocoa/constrained_window_mac.h"
+
+class RepostFormWarningController;
+
+// Displays a dialog that warns the user that they are about to resubmit
+// a form. To show the dialog, call the |Create| method. It will open the
+// dialog and then delete itself when the user dismisses the dialog.
+class RepostFormWarningMac : public ConstrainedDialogDelegate {
+ public:
+ // Convenience method that creates a new |RepostFormWarningController| and
+ // then a new |RepostFormWarningMac| from that.
+ static RepostFormWarningMac* Create(NSWindow* parent,
+ TabContents* tab_contents);
+
+ RepostFormWarningMac(NSWindow* parent,
+ RepostFormWarningController* controller);
+
+ // ConstrainedWindowDelegateMacSystemSheet methods:
+ virtual void DeleteDelegate();
+
+ private:
+ virtual ~RepostFormWarningMac();
+
+ scoped_ptr<RepostFormWarningController> controller_;
+
+ DISALLOW_COPY_AND_ASSIGN(RepostFormWarningMac);
+};
+
+#endif // CHROME_BROWSER_UI_COCOA_REPOST_FORM_WARNING_MAC_H_