diff options
author | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-22 16:42:07 +0000 |
---|---|---|
committer | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-22 16:42:07 +0000 |
commit | 80a9966966b76bba436398ca529f9e4d509d5aab (patch) | |
tree | 11aec759e5dde6a0ae4b9262c557c90205e27690 /chrome/browser/gtk/import_dialog_gtk.cc | |
parent | a37bd9baafb3ccc1532b77db9df922d35a10e2f3 (diff) | |
download | chromium_src-80a9966966b76bba436398ca529f9e4d509d5aab.zip chromium_src-80a9966966b76bba436398ca529f9e4d509d5aab.tar.gz chromium_src-80a9966966b76bba436398ca529f9e4d509d5aab.tar.bz2 |
Move importer data types into a separate file to prepare for moving importer
into its own process.
BUG= 18774
TEST= none
Review URL: http://codereview.chromium.org/1110005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42224 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/import_dialog_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/import_dialog_gtk.cc | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/chrome/browser/gtk/import_dialog_gtk.cc b/chrome/browser/gtk/import_dialog_gtk.cc index 1d1c4dc..c4c3804 100644 --- a/chrome/browser/gtk/import_dialog_gtk.cc +++ b/chrome/browser/gtk/import_dialog_gtk.cc @@ -11,6 +11,7 @@ #include "base/utf_string_conversions.h" #include "chrome/browser/gtk/accessible_widget_helper_gtk.h" #include "chrome/browser/gtk/gtk_util.h" +#include "chrome/browser/importer/importer_data_types.h" #include "grit/generated_resources.h" #include "grit/locale_settings.h" @@ -91,25 +92,25 @@ ImportDialogGtk::ImportDialogGtk(GtkWindow* parent, Profile* profile, l10n_util::GetStringUTF8(IDS_IMPORT_FAVORITES_CHKBOX).c_str()); gtk_box_pack_start(GTK_BOX(vbox), bookmarks_, FALSE, FALSE, 0); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(bookmarks_), - (initial_state_ & FAVORITES) != 0); + (initial_state_ & importer::FAVORITES) != 0); search_engines_ = gtk_check_button_new_with_label( l10n_util::GetStringUTF8(IDS_IMPORT_SEARCH_ENGINES_CHKBOX).c_str()); gtk_box_pack_start(GTK_BOX(vbox), search_engines_, FALSE, FALSE, 0); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(search_engines_), - (initial_state_ & SEARCH_ENGINES) != 0); + (initial_state_ & importer::SEARCH_ENGINES) != 0); passwords_ = gtk_check_button_new_with_label( l10n_util::GetStringUTF8(IDS_IMPORT_PASSWORDS_CHKBOX).c_str()); gtk_box_pack_start(GTK_BOX(vbox), passwords_, FALSE, FALSE, 0); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(passwords_), - (initial_state_ & PASSWORDS) != 0); + (initial_state_ & importer::PASSWORDS) != 0); history_ = gtk_check_button_new_with_label( l10n_util::GetStringUTF8(IDS_IMPORT_HISTORY_CHKBOX).c_str()); gtk_box_pack_start(GTK_BOX(vbox), history_, FALSE, FALSE, 0); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(history_), - (initial_state_ & HISTORY) !=0); + (initial_state_ & importer::HISTORY) !=0); gtk_box_pack_start(GTK_BOX(content_area), vbox, FALSE, FALSE, 0); @@ -145,15 +146,15 @@ ImportDialogGtk::~ImportDialogGtk() { void ImportDialogGtk::OnDialogResponse(GtkWidget* widget, int response) { gtk_widget_hide_all(dialog_); if (response == GTK_RESPONSE_ACCEPT) { - uint16 items = NONE; + uint16 items = importer::NONE; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(bookmarks_))) - items |= FAVORITES; + items |= importer::FAVORITES; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(search_engines_))) - items |= SEARCH_ENGINES; + items |= importer::SEARCH_ENGINES; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(passwords_))) - items |= PASSWORDS; + items |= importer::PASSWORDS; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(history_))) - items |= HISTORY; + items |= importer::HISTORY; if (items == 0) { ImportComplete(); |