OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/download/download_request_dialog_delegate_win.h" | 5 #include "chrome/browser/download/download_request_dialog_delegate_win.h" |
6 | 6 |
| 7 #include "app/l10n_util.h" |
7 #include "chrome/browser/tab_contents/constrained_window.h" | 8 #include "chrome/browser/tab_contents/constrained_window.h" |
8 #include "chrome/browser/tab_contents/tab_contents.h" | 9 #include "chrome/browser/tab_contents/tab_contents.h" |
9 #include "chrome/common/l10n_util.h" | |
10 #include "chrome/common/message_box_flags.h" | 10 #include "chrome/common/message_box_flags.h" |
11 #include "chrome/views/controls/message_box_view.h" | 11 #include "chrome/views/controls/message_box_view.h" |
12 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" |
13 | 13 |
14 // static | 14 // static |
15 DownloadRequestDialogDelegate* DownloadRequestDialogDelegate::Create( | 15 DownloadRequestDialogDelegate* DownloadRequestDialogDelegate::Create( |
16 TabContents* tab, | 16 TabContents* tab, |
17 DownloadRequestManager::TabDownloadState* host) { | 17 DownloadRequestManager::TabDownloadState* host) { |
18 return new DownloadRequestDialogDelegateWin(tab, host); | 18 return new DownloadRequestDialogDelegateWin(tab, host); |
19 } | 19 } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 return l10n_util::GetString(IDS_MULTI_DOWNLOAD_WARNING_ALLOW); | 51 return l10n_util::GetString(IDS_MULTI_DOWNLOAD_WARNING_ALLOW); |
52 if (button == MessageBoxFlags::DIALOGBUTTON_CANCEL) | 52 if (button == MessageBoxFlags::DIALOGBUTTON_CANCEL) |
53 return l10n_util::GetString(IDS_MULTI_DOWNLOAD_WARNING_DENY); | 53 return l10n_util::GetString(IDS_MULTI_DOWNLOAD_WARNING_DENY); |
54 return std::wstring(); | 54 return std::wstring(); |
55 } | 55 } |
56 | 56 |
57 void DownloadRequestDialogDelegateWin::DeleteDelegate() { | 57 void DownloadRequestDialogDelegateWin::DeleteDelegate() { |
58 DCHECK(!host_); | 58 DCHECK(!host_); |
59 delete this; | 59 delete this; |
60 } | 60 } |
OLD | NEW |