| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-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_GENERAL_PAGE_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_OPTIONS_GENERAL_PAGE_GTK_H_ |
| 6 #define CHROME_BROWSER_GTK_OPTIONS_GENERAL_PAGE_GTK_H_ | 6 #define CHROME_BROWSER_GTK_OPTIONS_GENERAL_PAGE_GTK_H_ |
| 7 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 GeneralPageGtk* general_page); | 116 GeneralPageGtk* general_page); |
| 117 | 117 |
| 118 // Callback for Show Home Button option | 118 // Callback for Show Home Button option |
| 119 static void OnShowHomeButtonToggled(GtkToggleButton* toggle_button, | 119 static void OnShowHomeButtonToggled(GtkToggleButton* toggle_button, |
| 120 GeneralPageGtk* general_page); | 120 GeneralPageGtk* general_page); |
| 121 | 121 |
| 122 // Callback for default search engine selection | 122 // Callback for default search engine selection |
| 123 static void OnDefaultSearchEngineChanged(GtkComboBox* combo_box, | 123 static void OnDefaultSearchEngineChanged(GtkComboBox* combo_box, |
| 124 GeneralPageGtk* general_page); | 124 GeneralPageGtk* general_page); |
| 125 | 125 |
| 126 // Callback for manage search engines button |
| 127 static void OnDefaultSearchManageEnginesClicked(GtkButton* button, |
| 128 GeneralPageGtk* general_page); |
| 129 |
| 126 // Callback for use as default browser button | 130 // Callback for use as default browser button |
| 127 static void OnBrowserUseAsDefaultClicked(GtkButton* button, | 131 static void OnBrowserUseAsDefaultClicked(GtkButton* button, |
| 128 GeneralPageGtk* general_page); | 132 GeneralPageGtk* general_page); |
| 129 | 133 |
| 130 // Enables/Disables the controls associated with the custom start pages | 134 // Enables/Disables the controls associated with the custom start pages |
| 131 // option if that preference is not selected. | 135 // option if that preference is not selected. |
| 132 void EnableCustomHomepagesControls(bool enable); | 136 void EnableCustomHomepagesControls(bool enable); |
| 133 | 137 |
| 134 // Sets the UI state to match | 138 // Sets the UI state to match |
| 135 void SetDefaultBrowserUIState(bool is_default); | 139 void SetDefaultBrowserUIState(bool is_default); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 CancelableRequestConsumer fav_icon_consumer_; | 182 CancelableRequestConsumer fav_icon_consumer_; |
| 179 | 183 |
| 180 // Default icon to show when one can't be found for the URL. This is owned by | 184 // Default icon to show when one can't be found for the URL. This is owned by |
| 181 // the ResourceBundle and we do not need to free it. | 185 // the ResourceBundle and we do not need to free it. |
| 182 GdkPixbuf* default_favicon_; | 186 GdkPixbuf* default_favicon_; |
| 183 | 187 |
| 184 DISALLOW_COPY_AND_ASSIGN(GeneralPageGtk); | 188 DISALLOW_COPY_AND_ASSIGN(GeneralPageGtk); |
| 185 }; | 189 }; |
| 186 | 190 |
| 187 #endif // CHROME_BROWSER_GTK_OPTIONS_GENERAL_PAGE_GTK_H_ | 191 #endif // CHROME_BROWSER_GTK_OPTIONS_GENERAL_PAGE_GTK_H_ |
| OLD | NEW |