| 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 30 matching lines...) Expand all Loading... |
| 41 const NotificationDetails& details); | 41 const NotificationDetails& details); |
| 42 | 42 |
| 43 // Overriden from PersonalDataManager::Observer. | 43 // Overriden from PersonalDataManager::Observer. |
| 44 virtual void OnPersonalDataLoaded(); | 44 virtual void OnPersonalDataLoaded(); |
| 45 | 45 |
| 46 // Update content area after a theme changed. | 46 // Update content area after a theme changed. |
| 47 void ObserveThemeChanged(); | 47 void ObserveThemeChanged(); |
| 48 | 48 |
| 49 // Initialize the option group widgets, return their container. | 49 // Initialize the option group widgets, return their container. |
| 50 GtkWidget* InitPasswordSavingGroup(); | 50 GtkWidget* InitPasswordSavingGroup(); |
| 51 GtkWidget* InitFormAutofillGroup(); | 51 GtkWidget* InitFormAutoFillGroup(); |
| 52 GtkWidget* InitBrowsingDataGroup(); | 52 GtkWidget* InitBrowsingDataGroup(); |
| 53 GtkWidget* InitThemesGroup(); | 53 GtkWidget* InitThemesGroup(); |
| 54 GtkWidget* InitSyncGroup(); | 54 GtkWidget* InitSyncGroup(); |
| 55 | 55 |
| 56 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnImportButtonClicked); | 56 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnImportButtonClicked); |
| 57 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnGtkThemeButtonClicked); | 57 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnGtkThemeButtonClicked); |
| 58 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnResetDefaultThemeButtonClicked); | 58 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnResetDefaultThemeButtonClicked); |
| 59 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnGetThemesButtonClicked); | 59 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnGetThemesButtonClicked); |
| 60 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnSystemTitleBarRadioToggled); | 60 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnSystemTitleBarRadioToggled); |
| 61 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnShowPasswordsButtonClicked); | 61 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnShowPasswordsButtonClicked); |
| 62 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnPasswordRadioToggled); | 62 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnPasswordRadioToggled); |
| 63 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnAutofillButtonClicked); | 63 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnAutoFillButtonClicked); |
| 64 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnAutofillRadioToggled); | 64 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnAutoFillRadioToggled); |
| 65 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnSyncStartStopButtonClicked); | 65 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnSyncStartStopButtonClicked); |
| 66 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnSyncActionLinkClicked); | 66 CHROMEGTK_CALLBACK_0(ContentPageGtk, void, OnSyncActionLinkClicked); |
| 67 CHROMEGTK_CALLBACK_1(ContentPageGtk, void, OnStopSyncDialogResponse, int); | 67 CHROMEGTK_CALLBACK_1(ContentPageGtk, void, OnStopSyncDialogResponse, int); |
| 68 | 68 |
| 69 // Widgets for the Password saving group. | 69 // Widgets for the Password saving group. |
| 70 GtkWidget* passwords_asktosave_radio_; | 70 GtkWidget* passwords_asktosave_radio_; |
| 71 GtkWidget* passwords_neversave_radio_; | 71 GtkWidget* passwords_neversave_radio_; |
| 72 | 72 |
| 73 // Widgets for the Form Autofill group. | 73 // Widgets for the Form AutoFill group. |
| 74 GtkWidget* form_autofill_enable_radio_; | 74 GtkWidget* form_autofill_enable_radio_; |
| 75 GtkWidget* form_autofill_disable_radio_; | 75 GtkWidget* form_autofill_disable_radio_; |
| 76 GtkWidget* autofill_button_; |
| 76 | 77 |
| 77 // Widgets for the Appearance group. | 78 // Widgets for the Appearance group. |
| 78 GtkWidget* system_title_bar_show_radio_; | 79 GtkWidget* system_title_bar_show_radio_; |
| 79 GtkWidget* system_title_bar_hide_radio_; | 80 GtkWidget* system_title_bar_hide_radio_; |
| 80 GtkWidget* themes_reset_button_; | 81 GtkWidget* themes_reset_button_; |
| 81 #if defined(TOOLKIT_GTK) | 82 #if defined(TOOLKIT_GTK) |
| 82 GtkWidget* gtk_theme_button_; | 83 GtkWidget* gtk_theme_button_; |
| 83 #endif | 84 #endif |
| 84 | 85 |
| 85 // Widgets for the Sync group. | 86 // Widgets for the Sync group. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 108 ProfileSyncService* sync_service_; | 109 ProfileSyncService* sync_service_; |
| 109 | 110 |
| 110 // The personal data manager, used to save and load personal data to/from the | 111 // The personal data manager, used to save and load personal data to/from the |
| 111 // web database. This can be NULL. | 112 // web database. This can be NULL. |
| 112 PersonalDataManager* personal_data_; | 113 PersonalDataManager* personal_data_; |
| 113 | 114 |
| 114 DISALLOW_COPY_AND_ASSIGN(ContentPageGtk); | 115 DISALLOW_COPY_AND_ASSIGN(ContentPageGtk); |
| 115 }; | 116 }; |
| 116 | 117 |
| 117 #endif // CHROME_BROWSER_GTK_OPTIONS_CONTENT_PAGE_GTK_H_ | 118 #endif // CHROME_BROWSER_GTK_OPTIONS_CONTENT_PAGE_GTK_H_ |
| OLD | NEW |