| OLD | NEW |
| 1 // Copyright (c) 2009 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_GTK_IMPORT_LOCK_DIALOG_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_IMPORT_LOCK_DIALOG_GTK_H_ |
| 6 #define CHROME_BROWSER_GTK_IMPORT_LOCK_DIALOG_GTK_H_ | 6 #define CHROME_BROWSER_GTK_IMPORT_LOCK_DIALOG_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include "chrome/browser/ui/gtk/import_lock_dialog_gtk.h" |
| 10 | 10 // TODO(msw): remove this file once all includes have been updated. |
| 11 #include "app/gtk_signal.h" | |
| 12 #include "base/basictypes.h" | |
| 13 #include "base/ref_counted.h" | |
| 14 | |
| 15 class ImporterHost; | |
| 16 | |
| 17 class ImportLockDialogGtk { | |
| 18 public: | |
| 19 // Displays the Firefox profile locked warning | |
| 20 static void Show(GtkWindow* parent, ImporterHost* importer_host); | |
| 21 | |
| 22 private: | |
| 23 ImportLockDialogGtk(GtkWindow* parent, ImporterHost* importer_host); | |
| 24 ~ImportLockDialogGtk(); | |
| 25 | |
| 26 CHROMEGTK_CALLBACK_1(ImportLockDialogGtk, void, OnDialogResponse, int); | |
| 27 | |
| 28 // Dialog box | |
| 29 GtkWidget* dialog_; | |
| 30 | |
| 31 // Utility class that does the actual import. | |
| 32 scoped_refptr<ImporterHost> importer_host_; | |
| 33 | |
| 34 DISALLOW_COPY_AND_ASSIGN(ImportLockDialogGtk); | |
| 35 }; | |
| 36 | 11 |
| 37 #endif // CHROME_BROWSER_GTK_IMPORT_LOCK_DIALOG_GTK_H_ | 12 #endif // CHROME_BROWSER_GTK_IMPORT_LOCK_DIALOG_GTK_H_ |
| OLD | NEW |