Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / gtk / download / download_in_progress_dialog_gtk.h
blobb45ab488198429fa93584734bb27960647a85bce
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 {
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);
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();
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_