OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_OPTIONS_CONTENT_PAGE_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_OPTIONS_CONTENT_PAGE_GTK_H_ |
6 #define CHROME_BROWSER_GTK_OPTIONS_CONTENT_PAGE_GTK_H_ | 6 #define CHROME_BROWSER_GTK_OPTIONS_CONTENT_PAGE_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnSyncStartStopButtonClicked); | 62 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnSyncStartStopButtonClicked); |
63 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnSyncCustomizeButtonClicked); | 63 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnSyncCustomizeButtonClicked); |
64 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnSyncActionLinkClicked); | 64 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnSyncActionLinkClicked); |
65 CHROMEGTK_CALLBACK_1(ContentPageGtk, void, OnStopSyncDialogResponse, int); | 65 CHROMEGTK_CALLBACK_1(ContentPageGtk, void, OnStopSyncDialogResponse, int); |
66 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnPrivacyDashboardLinkClicked); | 66 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnPrivacyDashboardLinkClicked); |
67 | 67 |
68 // Widgets for the Password saving group. | 68 // Widgets for the Password saving group. |
69 GtkWidget* passwords_asktosave_radio_; | 69 GtkWidget* passwords_asktosave_radio_; |
70 GtkWidget* passwords_neversave_radio_; | 70 GtkWidget* passwords_neversave_radio_; |
71 | 71 |
| 72 // Widgets for the AutoFill group. |
| 73 GtkWidget* autofill_button_; |
| 74 |
72 // Widgets for the Appearance group. | 75 // Widgets for the Appearance group. |
73 GtkWidget* system_title_bar_show_radio_; | 76 GtkWidget* system_title_bar_show_radio_; |
74 GtkWidget* system_title_bar_hide_radio_; | 77 GtkWidget* system_title_bar_hide_radio_; |
75 GtkWidget* themes_reset_button_; | 78 GtkWidget* themes_reset_button_; |
76 #if defined(TOOLKIT_GTK) | 79 #if defined(TOOLKIT_GTK) |
77 GtkWidget* gtk_theme_button_; | 80 GtkWidget* gtk_theme_button_; |
78 #endif | 81 #endif |
79 | 82 |
80 // Widgets for the Sync group. | 83 // Widgets for the Sync group. |
81 GtkWidget* sync_status_label_background_; | 84 GtkWidget* sync_status_label_background_; |
82 GtkWidget* sync_status_label_; | 85 GtkWidget* sync_status_label_; |
83 GtkWidget* sync_action_link_background_; | 86 GtkWidget* sync_action_link_background_; |
84 GtkWidget* sync_action_link_; | 87 GtkWidget* sync_action_link_; |
85 GtkWidget* sync_start_stop_button_; | 88 GtkWidget* sync_start_stop_button_; |
86 GtkWidget* sync_customize_button_; | 89 GtkWidget* sync_customize_button_; |
87 GtkWidget* privacy_dashboard_link_; | 90 GtkWidget* privacy_dashboard_link_; |
88 | 91 |
89 // The parent GtkTable widget | 92 // The parent GtkTable widget |
90 GtkWidget* page_; | 93 GtkWidget* page_; |
91 | 94 |
92 // Pref members. | 95 // Pref members. |
93 BooleanPrefMember ask_to_save_passwords_; | 96 BooleanPrefMember ask_to_save_passwords_; |
| 97 BooleanPrefMember form_autofill_enabled_; |
94 BooleanPrefMember use_custom_chrome_frame_; | 98 BooleanPrefMember use_custom_chrome_frame_; |
95 | 99 |
96 // Flag to ignore gtk callbacks while we are loading prefs, to avoid | 100 // Flag to ignore gtk callbacks while we are loading prefs, to avoid |
97 // then turning around and saving them again. | 101 // then turning around and saving them again. |
98 bool initializing_; | 102 bool initializing_; |
99 | 103 |
100 NotificationRegistrar registrar_; | 104 NotificationRegistrar registrar_; |
101 | 105 |
102 // Cached pointer to ProfileSyncService, if it exists. Kept up to date | 106 // Cached pointer to ProfileSyncService, if it exists. Kept up to date |
103 // and NULL-ed out on destruction. | 107 // and NULL-ed out on destruction. |
104 ProfileSyncService* sync_service_; | 108 ProfileSyncService* sync_service_; |
105 | 109 |
106 // Tracks managed preference warning banner state. | 110 // Tracks managed preference warning banner state. |
107 ManagedPrefsBannerGtk managed_prefs_banner_; | 111 ManagedPrefsBannerGtk managed_prefs_banner_; |
108 | 112 |
109 DISALLOW_COPY_AND_ASSIGN(ContentPageGtk); | 113 DISALLOW_COPY_AND_ASSIGN(ContentPageGtk); |
110 }; | 114 }; |
111 | 115 |
112 #endif // CHROME_BROWSER_GTK_OPTIONS_CONTENT_PAGE_GTK_H_ | 116 #endif // CHROME_BROWSER_GTK_OPTIONS_CONTENT_PAGE_GTK_H_ |
OLD | NEW |