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.
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_
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"
13 class DownloadInProgressDialogGtk {
15 static void Show(gfx::NativeWindow parent_window,
17 Browser::DownloadClosePreventionType dialog_type,
19 const base::Callback<void(bool)>& callback);
22 DownloadInProgressDialogGtk(gfx::NativeWindow parent_window,
24 Browser::DownloadClosePreventionType dialog_type,
26 const base::Callback<void(bool)>& callback);
27 ~DownloadInProgressDialogGtk();
29 CHROMEGTK_CALLBACK_1(DownloadInProgressDialogGtk, void, OnResponse, int);
31 const bool app_modal_;
32 const base::Callback<void(bool)> callback_;
34 DISALLOW_COPY_AND_ASSIGN(DownloadInProgressDialogGtk);
37 #endif // CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_IN_PROGRESS_DIALOG_GTK_H_