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

Side by Side Diff: chrome/browser/cocoa/download_request_dialog_delegate_mac.h

Issue 275011: Make the multiple download request dialog an infobar.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/cocoa/download_request_dialog_delegate_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698