OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/browser/options_page_base.h" | 10 #include "chrome/browser/options_page_base.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 ContentPageGtk* page); | 42 ContentPageGtk* page); |
43 | 43 |
44 // Callback for reset default theme button. | 44 // Callback for reset default theme button. |
45 static void OnResetDefaultThemeButtonClicked(GtkButton* widget, | 45 static void OnResetDefaultThemeButtonClicked(GtkButton* widget, |
46 ContentPageGtk* page); | 46 ContentPageGtk* page); |
47 | 47 |
48 // Callback for get themes button. | 48 // Callback for get themes button. |
49 static void OnGetThemesButtonClicked(GtkButton* widget, | 49 static void OnGetThemesButtonClicked(GtkButton* widget, |
50 ContentPageGtk* page); | 50 ContentPageGtk* page); |
51 | 51 |
| 52 // Callback for system title bar checkbox. |
| 53 static void OnSystemTitleBarCheckboxClicked(GtkButton* widget, |
| 54 ContentPageGtk* page); |
| 55 |
52 // Callback for passwords exceptions button. | 56 // Callback for passwords exceptions button. |
53 static void OnPasswordsExceptionsButtonClicked(GtkButton* widget, | 57 static void OnPasswordsExceptionsButtonClicked(GtkButton* widget, |
54 ContentPageGtk* page); | 58 ContentPageGtk* page); |
55 | 59 |
56 // Callback for password radio buttons. | 60 // Callback for password radio buttons. |
57 static void OnPasswordRadioToggled(GtkToggleButton* widget, | 61 static void OnPasswordRadioToggled(GtkToggleButton* widget, |
58 ContentPageGtk* page); | 62 ContentPageGtk* page); |
59 | 63 |
60 // Callback for form autofill radio buttons. | 64 // Callback for form autofill radio buttons. |
61 static void OnAutofillRadioToggled(GtkToggleButton* widget, | 65 static void OnAutofillRadioToggled(GtkToggleButton* widget, |
62 ContentPageGtk* page); | 66 ContentPageGtk* page); |
63 | 67 |
64 // Widgets for the Password saving group. | 68 // Widgets for the Password saving group. |
65 GtkWidget* passwords_asktosave_radio_; | 69 GtkWidget* passwords_asktosave_radio_; |
66 GtkWidget* passwords_neversave_radio_; | 70 GtkWidget* passwords_neversave_radio_; |
67 | 71 |
68 // Widget for the Form Autofill group. | 72 // Widgets for the Form Autofill group. |
69 GtkWidget* form_autofill_asktosave_radio_; | 73 GtkWidget* form_autofill_asktosave_radio_; |
70 GtkWidget* form_autofill_neversave_radio_; | 74 GtkWidget* form_autofill_neversave_radio_; |
71 | 75 |
| 76 // Widgets for the Themes group. |
| 77 GtkWidget* system_title_bar_checkbox_; |
| 78 |
72 // The parent GtkTable widget | 79 // The parent GtkTable widget |
73 GtkWidget* page_; | 80 GtkWidget* page_; |
74 | 81 |
75 // Pref members. | 82 // Pref members. |
76 BooleanPrefMember ask_to_save_passwords_; | 83 BooleanPrefMember ask_to_save_passwords_; |
77 BooleanPrefMember ask_to_save_form_autofill_; | 84 BooleanPrefMember ask_to_save_form_autofill_; |
| 85 BooleanPrefMember use_custom_chrome_frame_; |
78 | 86 |
79 // Flag to ignore gtk callbacks while we are loading prefs, to avoid | 87 // Flag to ignore gtk callbacks while we are loading prefs, to avoid |
80 // then turning around and saving them again. | 88 // then turning around and saving them again. |
81 bool initializing_; | 89 bool initializing_; |
82 | 90 |
83 DISALLOW_COPY_AND_ASSIGN(ContentPageGtk); | 91 DISALLOW_COPY_AND_ASSIGN(ContentPageGtk); |
84 }; | 92 }; |
85 | 93 |
86 #endif // CHROME_BROWSER_GTK_OPTIONS_CONTENT_PAGE_GTK_H_ | 94 #endif // CHROME_BROWSER_GTK_OPTIONS_CONTENT_PAGE_GTK_H_ |
OLD | NEW |