OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2009 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_GTK_IMPORT_LOCK_DIALOG_GTK_H_ |
| 6 #define CHROME_BROWSER_GTK_IMPORT_LOCK_DIALOG_GTK_H_ |
| 7 |
| 8 #include "chrome/browser/importer/importer.h" |
| 9 |
| 10 #include <gtk/gtk.h> |
| 11 |
| 12 class ImportLockDialogGtk { |
| 13 public: |
| 14 // Displays the Firefox profile locked warning |
| 15 static void Show(GtkWindow* parent, ImporterHost* importer_host); |
| 16 |
| 17 private: |
| 18 ImportLockDialogGtk(GtkWindow* parent, ImporterHost* importer_host); |
| 19 ~ImportLockDialogGtk() { } |
| 20 |
| 21 static void HandleOnResponseDialog(GtkWidget* widget, |
| 22 int response, |
| 23 gpointer user_data) { |
| 24 reinterpret_cast<ImportLockDialogGtk*>(user_data)->OnDialogResponse( |
| 25 widget, response); |
| 26 } |
| 27 void OnDialogResponse(GtkWidget* widget, int response); |
| 28 |
| 29 // Dialog box |
| 30 GtkWidget* dialog_; |
| 31 |
| 32 // Utility class that does the actual import. |
| 33 scoped_refptr<ImporterHost> importer_host_; |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(ImportLockDialogGtk); |
| 36 }; |
| 37 |
| 38 #endif // CHROME_BROWSER_GTK_IMPORT_LOCK_DIALOG_GTK_H_ |
OLD | NEW |