// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_GTK_IMPORT_LOCK_DIALOG_GTK_H_ #define CHROME_BROWSER_GTK_IMPORT_LOCK_DIALOG_GTK_H_ #include #include "base/basictypes.h" #include "base/ref_counted.h" class ImporterHost; class ImportLockDialogGtk { public: // Displays the Firefox profile locked warning static void Show(GtkWindow* parent, ImporterHost* importer_host); private: ImportLockDialogGtk(GtkWindow* parent, ImporterHost* importer_host); ~ImportLockDialogGtk() { } static void HandleOnResponseDialog(GtkWidget* widget, int response, gpointer user_data) { reinterpret_cast(user_data)->OnDialogResponse( widget, response); } void OnDialogResponse(GtkWidget* widget, int response); // Dialog box GtkWidget* dialog_; // Utility class that does the actual import. scoped_refptr importer_host_; DISALLOW_COPY_AND_ASSIGN(ImportLockDialogGtk); }; #endif // CHROME_BROWSER_GTK_IMPORT_LOCK_DIALOG_GTK_H_