OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012 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_UI_GTK_DOWNLOAD_DOWNLOAD_IN_PROGRESS_DIALOG_GTK_H_ | |
6 #define CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_IN_PROGRESS_DIALOG_GTK_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "chrome/browser/ui/browser.h" | |
10 #include "ui/base/gtk/gtk_signal.h" | |
11 #include "ui/gfx/native_widget_types.h" | |
12 | |
13 class DownloadInProgressDialogGtk { | |
14 public: | |
15 static void Show(gfx::NativeWindow parent_window, | |
16 int download_count, | |
17 Browser::DownloadClosePreventionType dialog_type, | |
18 bool app_modal, | |
19 const base::Callback<void(bool)>& callback); | |
20 | |
21 private: | |
22 DownloadInProgressDialogGtk(gfx::NativeWindow parent_window, | |
23 int download_count, | |
24 Browser::DownloadClosePreventionType dialog_type, | |
25 bool app_modal, | |
26 const base::Callback<void(bool)>& callback); | |
27 ~DownloadInProgressDialogGtk(); | |
28 | |
29 CHROMEGTK_CALLBACK_1(DownloadInProgressDialogGtk, void, OnResponse, int); | |
30 | |
31 const bool app_modal_; | |
32 const base::Callback<void(bool)> callback_; | |
33 | |
34 DISALLOW_COPY_AND_ASSIGN(DownloadInProgressDialogGtk); | |
35 }; | |
36 | |
37 #endif // CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_IN_PROGRESS_DIALOG_GTK_H_ | |
OLD | NEW |