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

Unified Diff: chrome/browser/gtk/options/content_page_gtk.h

Issue 610003: Linux: Implement the new AutoFill section of the Options dialog.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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/autofill/autofill_dialog_gtk.cc ('k') | chrome/browser/gtk/options/content_page_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/options/content_page_gtk.h
===================================================================
--- chrome/browser/gtk/options/content_page_gtk.h (revision 38819)
+++ chrome/browser/gtk/options/content_page_gtk.h (working copy)
@@ -7,13 +7,15 @@
#include <gtk/gtk.h>
+#include "chrome/browser/autofill/personal_data_manager.h"
#include "chrome/browser/options_page_base.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/common/pref_member.h"
class ContentPageGtk : public OptionsPageBase,
- public ProfileSyncServiceObserver {
+ public ProfileSyncServiceObserver,
+ public PersonalDataManager::Observer {
public:
explicit ContentPageGtk(Profile* profile);
~ContentPageGtk();
@@ -37,6 +39,9 @@
const NotificationSource& source,
const NotificationDetails& details);
+ // Overriden from PersonalDataManager::Observer.
+ virtual void OnPersonalDataLoaded();
+
// Update content area after a theme changed.
void ObserveThemeChanged();
@@ -47,6 +52,9 @@
GtkWidget* InitThemesGroup();
GtkWidget* InitSyncGroup();
+ // Callback for autofill button.
+ static void OnAutoFillButtonClicked(GtkButton* widget, ContentPageGtk* page);
+
// Callback for import button.
static void OnImportButtonClicked(GtkButton* widget, ContentPageGtk* page);
@@ -96,8 +104,8 @@
GtkWidget* passwords_neversave_radio_;
// Widgets for the Form Autofill group.
- GtkWidget* form_autofill_asktosave_radio_;
- GtkWidget* form_autofill_neversave_radio_;
+ GtkWidget* form_autofill_enable_radio_;
+ GtkWidget* form_autofill_disable_radio_;
// Widgets for the Appearance group.
GtkWidget* system_title_bar_show_radio_;
@@ -119,7 +127,7 @@
// Pref members.
BooleanPrefMember ask_to_save_passwords_;
- BooleanPrefMember ask_to_save_form_autofill_;
+ BooleanPrefMember enable_form_autofill_;
BooleanPrefMember use_custom_chrome_frame_;
// Flag to ignore gtk callbacks while we are loading prefs, to avoid
@@ -132,6 +140,10 @@
// and NULL-ed out on destruction.
ProfileSyncService* sync_service_;
+ // The personal data manager, used to save and load personal data to/from the
+ // web database. This can be NULL.
+ PersonalDataManager* personal_data_;
+
DISALLOW_COPY_AND_ASSIGN(ContentPageGtk);
};
« no previous file with comments | « chrome/browser/autofill/autofill_dialog_gtk.cc ('k') | chrome/browser/gtk/options/content_page_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698