| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2009 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_DOWNLOAD_DOWNLOAD_REQUEST_DIALOG_DELEGATE_MAC_H_ |
| 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_DIALOG_DELEGATE_MAC_H_ |
| 7 |
| 8 #include "base/scoped_nsobject.h" |
| 9 #include "base/scoped_ptr.h" |
| 10 #include "chrome/browser/cocoa/constrained_window_mac.h" |
| 11 #include "chrome/browser/download/download_request_dialog_delegate.h" |
| 12 #include "chrome/browser/download/download_request_manager.h" |
| 13 |
| 14 @class SheetCallback; |
| 15 class TabContents; |
| 16 |
| 17 class DownloadRequestDialogDelegateMac : public DownloadRequestDialogDelegate, |
| 18 public ConstrainedWindowMacDelegateSystemSheet { |
| 19 public: |
| 20 DownloadRequestDialogDelegateMac(TabContents* tab, |
| 21 DownloadRequestManager::TabDownloadState* host); |
| 22 |
| 23 // Implement ConstrainedWindowMacDelegateSystemSheet. |
| 24 virtual void DeleteDelegate(); |
| 25 |
| 26 // Called when the sheet is done. |
| 27 void SheetDidEnd(int returnCode); |
| 28 |
| 29 private: |
| 30 // DownloadRequestDialogDelegate methods. |
| 31 virtual void CloseWindow(); |
| 32 |
| 33 // The ConstrainedWindow that is hosting our DownloadRequestDialog. |
| 34 ConstrainedWindow* window_; |
| 35 |
| 36 // Has a button on the sheet been clicked? |
| 37 bool responded_; |
| 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(DownloadRequestDialogDelegateMac); |
| 40 }; |
| 41 |
| 42 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_DIALOG_DELEGATE_MAC_H_ |
| 43 |
| OLD | NEW |