OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_UI_GTK_IMPORTER_IMPORT_LOCK_DIALOG_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_IMPORTER_IMPORT_LOCK_DIALOG_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_IMPORTER_IMPORT_LOCK_DIALOG_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_IMPORTER_IMPORT_LOCK_DIALOG_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "ui/base/gtk/gtk_signal.h" | 11 #include "ui/base/gtk/gtk_signal.h" |
12 | 12 |
13 class ImporterHost; | 13 class ImporterHost; |
14 | 14 |
15 typedef struct _GtkWidget GtkWidget; | 15 typedef struct _GtkWidget GtkWidget; |
16 typedef struct _GtkWindow GtkWindow; | 16 typedef struct _GtkWindow GtkWindow; |
17 | 17 |
18 // ImportLockDialogGtk presents the dialog which asks the user to shut down | 18 // ImportLockDialogGtk presents the dialog which asks the user to shut down |
19 // Firefox before starting the profile import. | 19 // Firefox before starting the profile import. |
20 class ImportLockDialogGtk { | 20 class ImportLockDialogGtk { |
21 public: | 21 public: |
22 static void Show(GtkWindow* parent, ImporterHost* importer_host); | 22 static void Show(GtkWindow* parent, ImporterHost* importer_host); |
23 | 23 |
24 private: | 24 private: |
25 ImportLockDialogGtk(GtkWindow* parent, ImporterHost* importer_host); | 25 ImportLockDialogGtk(GtkWindow* parent, ImporterHost* importer_host); |
26 ~ImportLockDialogGtk(); | 26 virtual ~ImportLockDialogGtk(); |
27 | 27 |
28 CHROMEGTK_CALLBACK_1(ImportLockDialogGtk, void, OnResponse, int); | 28 CHROMEGTK_CALLBACK_1(ImportLockDialogGtk, void, OnResponse, int); |
29 | 29 |
30 // Import lock dialog. | 30 // Import lock dialog. |
31 GtkWidget* dialog_; | 31 GtkWidget* dialog_; |
32 | 32 |
33 // Utility class that does the actual import. | 33 // Utility class that does the actual import. |
34 scoped_refptr<ImporterHost> importer_host_; | 34 scoped_refptr<ImporterHost> importer_host_; |
35 | 35 |
36 DISALLOW_COPY_AND_ASSIGN(ImportLockDialogGtk); | 36 DISALLOW_COPY_AND_ASSIGN(ImportLockDialogGtk); |
37 }; | 37 }; |
38 | 38 |
39 #endif // CHROME_BROWSER_UI_GTK_IMPORTER_IMPORT_LOCK_DIALOG_GTK_H_ | 39 #endif // CHROME_BROWSER_UI_GTK_IMPORTER_IMPORT_LOCK_DIALOG_GTK_H_ |
OLD | NEW |