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

Side by Side 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 unified diff | Download patch
OLDNEW
(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_DIALOG_GTK_H_
6 #define CHROME_BROWSER_GTK_IMPORT_DIALOG_GTK_H_
7
8 #include "chrome/browser/importer/importer.h"
9
10 #include <gtk/gtk.h>
11
12 class Profile;
13 typedef struct _GtkWindow GtkWindow;
14
15 class ImportDialogGtk {
16 public:
17 // Displays the import box to import data from another browser into |profile|
18 static void Show(GtkWindow* parent, Profile* profile);
19
20 private:
21 ImportDialogGtk(GtkWindow* parent, Profile* profile);
22 ~ImportDialogGtk() { }
23
24 static void HandleOnResponseDialog(GtkWidget* widget,
25 int response,
26 gpointer user_data) {
27 reinterpret_cast<ImportDialogGtk*>(user_data)->OnDialogResponse(widget,
28 response);
29 }
30 void OnDialogResponse(GtkWidget* widget, int response);
31
32 // Combo box that displays list of profiles from which we can import.
33 GtkWidget* combo_;
34
35 // Bookmarks/Favorites checkbox
36 GtkWidget* bookmarks_;
37
38 // Search Engines checkbox
39 GtkWidget* search_engines_;
40
41 // Passwords checkbox
42 GtkWidget* passwords_;
43
44 // History checkbox
45 GtkWidget* history_;
46
47 // Our current profile
48 Profile* profile_;
49
50 // Utility class that does the actual import.
51 scoped_refptr<ImporterHost> importer_host_;
52
53 DISALLOW_COPY_AND_ASSIGN(ImportDialogGtk);
54 };
55
56 #endif // CHROME_BROWSER_GTK_IMPORT_DIALOG_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698