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

Side by Side Diff: chrome/browser/download/download_request_dialog_delegate_win.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) 2006-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_WIN_H_
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_DIALOG_DELEGATE_WIN_H_
7
8 #include "base/basictypes.h"
9
10 #include "chrome/browser/download/download_request_dialog_delegate.h"
11 #include "chrome/browser/download/download_request_manager.h"
12 #include "views/window/dialog_delegate.h"
13
14 class ConstrainedWindow;
15 class MessageBoxView;
16 class TabContents;
17
18 class DownloadRequestDialogDelegateWin : public DownloadRequestDialogDelegate,
19 public views::DialogDelegate {
20 public:
21 DownloadRequestDialogDelegateWin(TabContents* tab,
22 DownloadRequestManager::TabDownloadState* host);
23
24 private:
25 // DownloadRequestDialogDelegate methods.
26 virtual void CloseWindow();
27 // DialogDelegate methods.
28 virtual bool Cancel();
29 virtual bool Accept();
30 virtual views::View* GetContentsView();
31 virtual std::wstring GetDialogButtonLabel(
32 MessageBoxFlags::DialogButton button) const;
33 virtual int GetDefaultDialogButton() const {
34 return MessageBoxFlags::DIALOGBUTTON_CANCEL;
35 }
36 virtual void DeleteDelegate();
37
38 MessageBoxView* message_view_;
39
40 ConstrainedWindow* window_;
41
42 DISALLOW_COPY_AND_ASSIGN(DownloadRequestDialogDelegateWin);
43 };
44
45 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_DIALOG_DELEGATE_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698