Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1385)

Unified Diff: chrome/browser/gtk/import_lock_dialog_gtk.h

Issue 114047: Add import progress indicator dialog. (Closed)
Patch Set: code review fixes Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/gtk/import_dialog_gtk.cc ('k') | chrome/browser/gtk/import_lock_dialog_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/import_lock_dialog_gtk.h
diff --git a/chrome/browser/gtk/import_lock_dialog_gtk.h b/chrome/browser/gtk/import_lock_dialog_gtk.h
new file mode 100644
index 0000000000000000000000000000000000000000..99087d37830dedf65984b0e64a56527df0a65424
--- /dev/null
+++ b/chrome/browser/gtk/import_lock_dialog_gtk.h
@@ -0,0 +1,38 @@
+// 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 "chrome/browser/importer/importer.h"
+
+#include <gtk/gtk.h>
+
+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<ImportLockDialogGtk*>(user_data)->OnDialogResponse(
+ widget, response);
+ }
+ void OnDialogResponse(GtkWidget* widget, int response);
+
+ // Dialog box
+ GtkWidget* dialog_;
+
+ // Utility class that does the actual import.
+ scoped_refptr<ImporterHost> importer_host_;
+
+ DISALLOW_COPY_AND_ASSIGN(ImportLockDialogGtk);
+};
+
+#endif // CHROME_BROWSER_GTK_IMPORT_LOCK_DIALOG_GTK_H_
« no previous file with comments | « chrome/browser/gtk/import_dialog_gtk.cc ('k') | chrome/browser/gtk/import_lock_dialog_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698