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

Side by Side Diff: chrome/browser/gtk/import_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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/gtk/import_dialog_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_GTK_IMPORT_DIALOG_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_IMPORT_DIALOG_GTK_H_
6 #define CHROME_BROWSER_GTK_IMPORT_DIALOG_GTK_H_ 6 #define CHROME_BROWSER_GTK_IMPORT_DIALOG_GTK_H_
7 7
8 #include "chrome/browser/importer/importer.h" 8 #include "chrome/browser/importer/importer.h"
9 9
10 class Profile; 10 #include "chrome/browser/profile.h"
11 typedef struct _GtkWindow GtkWindow;
12 11
13 class ImportDialogGtk { 12 class ImportDialogGtk : public ImportObserver {
14 public: 13 public:
15 // Displays the import box to import data from another browser into |profile| 14 // Displays the import box to import data from another browser into |profile|
16 static void Show(GtkWindow* parent, Profile* profile); 15 static void Show(GtkWindow* parent, Profile* profile);
17 16
17 // Overridden from ImportObserver:
18 virtual void ImportCanceled();
19 virtual void ImportComplete();
20
18 private: 21 private:
19 ImportDialogGtk(GtkWindow* parent, Profile* profile); 22 ImportDialogGtk(GtkWindow* parent, Profile* profile);
20 ~ImportDialogGtk() { } 23 ~ImportDialogGtk() { }
21 24
22 static void HandleOnResponseDialog(GtkWidget* widget, 25 static void HandleOnResponseDialog(GtkWidget* widget,
23 int response, 26 int response,
24 ImportDialogGtk* user_data) { 27 ImportDialogGtk* user_data) {
25 user_data->OnDialogResponse(widget, response); 28 user_data->OnDialogResponse(widget, response);
26 } 29 }
27 void OnDialogResponse(GtkWidget* widget, int response); 30 void OnDialogResponse(GtkWidget* widget, int response);
28 31
32 // Parent window
33 GtkWindow* parent_;
34
35 // Import Dialog
36 GtkWidget* dialog_;
37
29 // Combo box that displays list of profiles from which we can import. 38 // Combo box that displays list of profiles from which we can import.
30 GtkWidget* combo_; 39 GtkWidget* combo_;
31 40
32 // Bookmarks/Favorites checkbox 41 // Bookmarks/Favorites checkbox
33 GtkWidget* bookmarks_; 42 GtkWidget* bookmarks_;
34 43
35 // Search Engines checkbox 44 // Search Engines checkbox
36 GtkWidget* search_engines_; 45 GtkWidget* search_engines_;
37 46
38 // Passwords checkbox 47 // Passwords checkbox
39 GtkWidget* passwords_; 48 GtkWidget* passwords_;
40 49
41 // History checkbox 50 // History checkbox
42 GtkWidget* history_; 51 GtkWidget* history_;
43 52
44 // Our current profile 53 // Our current profile
45 Profile* profile_; 54 Profile* profile_;
46 55
47 // Utility class that does the actual import. 56 // Utility class that does the actual import.
48 scoped_refptr<ImporterHost> importer_host_; 57 scoped_refptr<ImporterHost> importer_host_;
49 58
50 DISALLOW_COPY_AND_ASSIGN(ImportDialogGtk); 59 DISALLOW_COPY_AND_ASSIGN(ImportDialogGtk);
51 }; 60 };
52 61
53 #endif // CHROME_BROWSER_GTK_IMPORT_DIALOG_GTK_H_ 62 #endif // CHROME_BROWSER_GTK_IMPORT_DIALOG_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gtk/import_dialog_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698