| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_COCOA_TAB_MODAL_DIALOG_MAC_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_TAB_MODAL_DIALOG_MAC_H_ |
| 7 #pragma once |
| 8 |
| 9 #import <Cocoa/Cocoa.h> |
| 10 |
| 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "chrome/browser/ui/cocoa/constrained_window_mac.h" |
| 13 |
| 14 class TabModalDialogDelegate; |
| 15 class TabContents; |
| 16 |
| 17 // Displays a dialog that warns the user that they are about to resubmit |
| 18 // a form. To show the dialog, allocate a new instance on the heap. It will open |
| 19 // the dialog and then delete itself when the user dismisses the dialog. |
| 20 class TabModalDialogMac : public ConstrainedWindowMacDelegateSystemSheet { |
| 21 public: |
| 22 TabModalDialogMac(NSWindow* parent, |
| 23 TabModalDialogDelegate* delegate, |
| 24 TabContents* tab_contents); |
| 25 |
| 26 // ConstrainedWindowDelegateMacSystemSheet methods: |
| 27 virtual void DeleteDelegate() OVERRIDE; |
| 28 |
| 29 private: |
| 30 virtual ~TabModalDialogMac(); |
| 31 |
| 32 scoped_ptr<TabModalDialogDelegate> delegate_; |
| 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(TabModalDialogMac); |
| 35 }; |
| 36 |
| 37 #endif // CHROME_BROWSER_UI_COCOA_TAB_MODAL_DIALOG_MAC_H_ |
| OLD | NEW |