| 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 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 | 9 |
| 10 #include "app/gtk_signal.h" | 10 #include "app/gtk_signal.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnGetThemesButtonClicked); | 55 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnGetThemesButtonClicked); |
| 56 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnSystemTitleBarRadioToggled); | 56 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnSystemTitleBarRadioToggled); |
| 57 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnShowPasswordsButtonClicked); | 57 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnShowPasswordsButtonClicked); |
| 58 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnPasswordRadioToggled); | 58 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnPasswordRadioToggled); |
| 59 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnAutoFillButtonClicked); | 59 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnAutoFillButtonClicked); |
| 60 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnAutoFillRadioToggled); | 60 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnAutoFillRadioToggled); |
| 61 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnSyncStartStopButtonClicked); | 61 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnSyncStartStopButtonClicked); |
| 62 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnSyncCustomizeButtonClicked); | 62 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnSyncCustomizeButtonClicked); |
| 63 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnSyncActionLinkClicked); | 63 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnSyncActionLinkClicked); |
| 64 CHROMEGTK_CALLBACK_1(ContentPageGtk, void, OnStopSyncDialogResponse, int); | 64 CHROMEGTK_CALLBACK_1(ContentPageGtk, void, OnStopSyncDialogResponse, int); |
| 65 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnPrivacyDashboardLinkClicked); |
| 65 | 66 |
| 66 // Widgets for the Password saving group. | 67 // Widgets for the Password saving group. |
| 67 GtkWidget* passwords_asktosave_radio_; | 68 GtkWidget* passwords_asktosave_radio_; |
| 68 GtkWidget* passwords_neversave_radio_; | 69 GtkWidget* passwords_neversave_radio_; |
| 69 | 70 |
| 70 // Widgets for the Form AutoFill group. | 71 // Widgets for the Form AutoFill group. |
| 71 GtkWidget* form_autofill_enable_radio_; | 72 GtkWidget* form_autofill_enable_radio_; |
| 72 GtkWidget* form_autofill_disable_radio_; | 73 GtkWidget* form_autofill_disable_radio_; |
| 73 GtkWidget* autofill_button_; | 74 GtkWidget* autofill_button_; |
| 74 | 75 |
| 75 // Widgets for the Appearance group. | 76 // Widgets for the Appearance group. |
| 76 GtkWidget* system_title_bar_show_radio_; | 77 GtkWidget* system_title_bar_show_radio_; |
| 77 GtkWidget* system_title_bar_hide_radio_; | 78 GtkWidget* system_title_bar_hide_radio_; |
| 78 GtkWidget* themes_reset_button_; | 79 GtkWidget* themes_reset_button_; |
| 79 #if defined(TOOLKIT_GTK) | 80 #if defined(TOOLKIT_GTK) |
| 80 GtkWidget* gtk_theme_button_; | 81 GtkWidget* gtk_theme_button_; |
| 81 #endif | 82 #endif |
| 82 | 83 |
| 83 // Widgets for the Sync group. | 84 // Widgets for the Sync group. |
| 84 GtkWidget* sync_status_label_background_; | 85 GtkWidget* sync_status_label_background_; |
| 85 GtkWidget* sync_status_label_; | 86 GtkWidget* sync_status_label_; |
| 86 GtkWidget* sync_action_link_background_; | 87 GtkWidget* sync_action_link_background_; |
| 87 GtkWidget* sync_action_link_; | 88 GtkWidget* sync_action_link_; |
| 88 #if !defined(OS_CHROMEOS) | 89 #if !defined(OS_CHROMEOS) |
| 89 GtkWidget* sync_start_stop_button_; | 90 GtkWidget* sync_start_stop_button_; |
| 90 #endif | 91 #endif |
| 91 GtkWidget* sync_customize_button_; | 92 GtkWidget* sync_customize_button_; |
| 93 GtkWidget* privacy_dashboard_link_; |
| 92 | 94 |
| 93 // The parent GtkTable widget | 95 // The parent GtkTable widget |
| 94 GtkWidget* page_; | 96 GtkWidget* page_; |
| 95 | 97 |
| 96 // Pref members. | 98 // Pref members. |
| 97 BooleanPrefMember ask_to_save_passwords_; | 99 BooleanPrefMember ask_to_save_passwords_; |
| 98 BooleanPrefMember enable_form_autofill_; | 100 BooleanPrefMember enable_form_autofill_; |
| 99 BooleanPrefMember use_custom_chrome_frame_; | 101 BooleanPrefMember use_custom_chrome_frame_; |
| 100 | 102 |
| 101 // Flag to ignore gtk callbacks while we are loading prefs, to avoid | 103 // Flag to ignore gtk callbacks while we are loading prefs, to avoid |
| 102 // then turning around and saving them again. | 104 // then turning around and saving them again. |
| 103 bool initializing_; | 105 bool initializing_; |
| 104 | 106 |
| 105 NotificationRegistrar registrar_; | 107 NotificationRegistrar registrar_; |
| 106 | 108 |
| 107 // Cached pointer to ProfileSyncService, if it exists. Kept up to date | 109 // Cached pointer to ProfileSyncService, if it exists. Kept up to date |
| 108 // and NULL-ed out on destruction. | 110 // and NULL-ed out on destruction. |
| 109 ProfileSyncService* sync_service_; | 111 ProfileSyncService* sync_service_; |
| 110 | 112 |
| 111 DISALLOW_COPY_AND_ASSIGN(ContentPageGtk); | 113 DISALLOW_COPY_AND_ASSIGN(ContentPageGtk); |
| 112 }; | 114 }; |
| 113 | 115 |
| 114 #endif // CHROME_BROWSER_GTK_OPTIONS_CONTENT_PAGE_GTK_H_ | 116 #endif // CHROME_BROWSER_GTK_OPTIONS_CONTENT_PAGE_GTK_H_ |
| OLD | NEW |