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

Unified Diff: chrome/browser/ui/cocoa/tab_modal_dialog_mac.h

Issue 8851007: WIP / Do not commit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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/ui/cocoa/repost_form_warning_mac.mm ('k') | chrome/browser/ui/cocoa/tab_modal_dialog_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/tab_modal_dialog_mac.h
diff --git a/chrome/browser/ui/cocoa/tab_modal_dialog_mac.h b/chrome/browser/ui/cocoa/tab_modal_dialog_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..32de7cdac274a594bae28368ca99d5b281958164
--- /dev/null
+++ b/chrome/browser/ui/cocoa/tab_modal_dialog_mac.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2011 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_TAB_MODAL_DIALOG_MAC_H_
+#define CHROME_BROWSER_UI_COCOA_TAB_MODAL_DIALOG_MAC_H_
+#pragma once
+
+#import <Cocoa/Cocoa.h>
+
+#include "base/memory/scoped_ptr.h"
+#include "chrome/browser/ui/cocoa/constrained_window_mac.h"
+
+class TabModalDialogDelegate;
+class TabContents;
+
+// Displays a dialog that warns the user that they are about to resubmit
+// a form. To show the dialog, allocate a new instance on the heap. It will open
+// the dialog and then delete itself when the user dismisses the dialog.
+class TabModalDialogMac : public ConstrainedWindowMacDelegateSystemSheet {
+ public:
+ TabModalDialogMac(NSWindow* parent,
+ TabModalDialogDelegate* delegate,
+ TabContents* tab_contents);
+
+ // ConstrainedWindowDelegateMacSystemSheet methods:
+ virtual void DeleteDelegate() OVERRIDE;
+
+ private:
+ virtual ~TabModalDialogMac();
+
+ scoped_ptr<TabModalDialogDelegate> delegate_;
+
+ DISALLOW_COPY_AND_ASSIGN(TabModalDialogMac);
+};
+
+#endif // CHROME_BROWSER_UI_COCOA_TAB_MODAL_DIALOG_MAC_H_
« no previous file with comments | « chrome/browser/ui/cocoa/repost_form_warning_mac.mm ('k') | chrome/browser/ui/cocoa/tab_modal_dialog_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698