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

Unified Diff: chrome/browser/ui/views/download/download_in_progress_dialog_view.h

Issue 9969193: Change the "close Chrome with downloads in progress" dialog to resemble kenmoore's mock (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: GTK and Mac Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/download/download_in_progress_dialog_view.h
diff --git a/chrome/browser/ui/views/download/download_in_progress_dialog_view.h b/chrome/browser/ui/views/download/download_in_progress_dialog_view.h
index 0540d7dcdbfd050b600ad29845cf390d8d338ca8..8b7960d69ac301963f4f8d0ca40604f10c2fc191 100644
--- a/chrome/browser/ui/views/download/download_in_progress_dialog_view.h
+++ b/chrome/browser/ui/views/download/download_in_progress_dialog_view.h
@@ -13,10 +13,10 @@
class Browser;
namespace views {
-class Label;
+class MessageBoxView;
}
-class DownloadInProgressDialogView : public views::DialogDelegateView {
+class DownloadInProgressDialogView : public views::DialogDelegate {
public:
static void Show(Browser* browser, gfx::NativeWindow parent_window);
@@ -24,22 +24,24 @@ class DownloadInProgressDialogView : public views::DialogDelegateView {
explicit DownloadInProgressDialogView(Browser* browser);
virtual ~DownloadInProgressDialogView();
- // views::View:
- virtual gfx::Size GetPreferredSize() OVERRIDE;
-
- // views::DialogDelegateView:
- virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE;
+ // views::DialogDelegate:
virtual int GetDefaultDialogButton() const OVERRIDE;
+ virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE;
virtual bool Cancel() OVERRIDE;
virtual bool Accept() OVERRIDE;
+
+ // views::WidgetDelegate:
virtual ui::ModalType GetModalType() const OVERRIDE;
virtual string16 GetWindowTitle() const OVERRIDE;
+ virtual void DeleteDelegate() OVERRIDE;
+ virtual views::Widget* GetWidget() OVERRIDE;
+ virtual const views::Widget* GetWidget() const OVERRIDE;
virtual views::View* GetContentsView() OVERRIDE;
Browser* browser_;
- views::Label* warning_;
- views::Label* explanation_;
+ views::MessageBoxView* message_box_view_;
+ string16 title_text_;
string16 ok_button_text_;
string16 cancel_button_text_;

Powered by Google App Engine
This is Rietveld 408576698