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

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

Issue 115133: Add import settings dialog on linux. (Closed)
Patch Set: fix mac build again 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
Index: chrome/browser/gtk/import_dialog_gtk.h
diff --git a/chrome/browser/gtk/import_dialog_gtk.h b/chrome/browser/gtk/import_dialog_gtk.h
new file mode 100644
index 0000000000000000000000000000000000000000..ad71b40082a9fe5a8339a62dafb4cfaaa223a0a3
--- /dev/null
+++ b/chrome/browser/gtk/import_dialog_gtk.h
@@ -0,0 +1,56 @@
+// 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_DIALOG_GTK_H_
+#define CHROME_BROWSER_GTK_IMPORT_DIALOG_GTK_H_
+
+#include "chrome/browser/importer/importer.h"
+
+#include <gtk/gtk.h>
+
+class Profile;
+typedef struct _GtkWindow GtkWindow;
+
+class ImportDialogGtk {
+ public:
+ // Displays the import box to import data from another browser into |profile|
+ static void Show(GtkWindow* parent, Profile* profile);
+
+ private:
+ ImportDialogGtk(GtkWindow* parent, Profile* profile);
+ ~ImportDialogGtk() { }
+
+ static void HandleOnResponseDialog(GtkWidget* widget,
+ int response,
+ gpointer user_data) {
+ reinterpret_cast<ImportDialogGtk*>(user_data)->OnDialogResponse(widget,
+ response);
+ }
+ void OnDialogResponse(GtkWidget* widget, int response);
+
+ // Combo box that displays list of profiles from which we can import.
+ GtkWidget* combo_;
+
+ // Bookmarks/Favorites checkbox
+ GtkWidget* bookmarks_;
+
+ // Search Engines checkbox
+ GtkWidget* search_engines_;
+
+ // Passwords checkbox
+ GtkWidget* passwords_;
+
+ // History checkbox
+ GtkWidget* history_;
+
+ // Our current profile
+ Profile* profile_;
+
+ // Utility class that does the actual import.
+ scoped_refptr<ImporterHost> importer_host_;
+
+ DISALLOW_COPY_AND_ASSIGN(ImportDialogGtk);
+};
+
+#endif // CHROME_BROWSER_GTK_IMPORT_DIALOG_GTK_H_

Powered by Google App Engine
This is Rietveld 408576698