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_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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // Populates the default search engine combobox from the model. | 60 // Populates the default search engine combobox from the model. |
61 virtual void OnTemplateURLModelChanged(); | 61 virtual void OnTemplateURLModelChanged(); |
62 | 62 |
63 // Set the default search engine pref to the combo box active item. | 63 // Set the default search engine pref to the combo box active item. |
64 void SetDefaultSearchEngineFromComboBox(); | 64 void SetDefaultSearchEngineFromComboBox(); |
65 | 65 |
66 // Set the default search engine combo box state. | 66 // Set the default search engine combo box state. |
67 void EnableDefaultSearchEngineComboBox(bool enable); | 67 void EnableDefaultSearchEngineComboBox(bool enable); |
68 | 68 |
69 // Sets the home page preferences for kNewTabPageIsHomePage and kHomePage. | 69 // Sets the home page preferences for kNewTabPageIsHomePage and kHomePage. |
70 // If a blank string is passed in we revert to using NewTab page as the Home | 70 // If an invalid URL is passed in we revert to using NewTab page as the Home |
71 // page. When setting the Home Page to NewTab page, we preserve the old value | 71 // page. |
72 // of kHomePage (we don't overwrite it). | |
73 void SetHomepage(const GURL& homepage); | 72 void SetHomepage(const GURL& homepage); |
74 | 73 |
75 // Sets the home page pref using the value in the entry box | 74 // Sets the home page pref using the value in the entry box |
76 void SetHomepageFromEntry(); | 75 void SetHomepageFromEntry(); |
77 | 76 |
78 CHROMEGTK_CALLBACK_0(GeneralPageGtk, void, OnStartupRadioToggled); | 77 CHROMEGTK_CALLBACK_0(GeneralPageGtk, void, OnStartupRadioToggled); |
79 CHROMEGTK_CALLBACK_0(GeneralPageGtk, void, OnStartupAddCustomPageClicked); | 78 CHROMEGTK_CALLBACK_0(GeneralPageGtk, void, OnStartupAddCustomPageClicked); |
80 CHROMEGTK_CALLBACK_0(GeneralPageGtk, void, OnStartupRemoveCustomPageClicked); | 79 CHROMEGTK_CALLBACK_0(GeneralPageGtk, void, OnStartupRemoveCustomPageClicked); |
81 CHROMEGTK_CALLBACK_0(GeneralPageGtk, void, OnStartupUseCurrentPageClicked); | 80 CHROMEGTK_CALLBACK_0(GeneralPageGtk, void, OnStartupUseCurrentPageClicked); |
82 CHROMEGTK_CALLBACK_0(GeneralPageGtk, void, OnNewTabIsHomePageToggled); | 81 CHROMEGTK_CALLBACK_0(GeneralPageGtk, void, OnNewTabIsHomePageToggled); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 // The helper object that performs default browser set/check tasks. | 147 // The helper object that performs default browser set/check tasks. |
149 scoped_refptr<ShellIntegration::DefaultBrowserWorker> default_browser_worker_; | 148 scoped_refptr<ShellIntegration::DefaultBrowserWorker> default_browser_worker_; |
150 | 149 |
151 // Helper object to manage accessibility metadata. | 150 // Helper object to manage accessibility metadata. |
152 scoped_ptr<AccessibleWidgetHelper> accessible_widget_helper_; | 151 scoped_ptr<AccessibleWidgetHelper> accessible_widget_helper_; |
153 | 152 |
154 DISALLOW_COPY_AND_ASSIGN(GeneralPageGtk); | 153 DISALLOW_COPY_AND_ASSIGN(GeneralPageGtk); |
155 }; | 154 }; |
156 | 155 |
157 #endif // CHROME_BROWSER_GTK_OPTIONS_GENERAL_PAGE_GTK_H_ | 156 #endif // CHROME_BROWSER_GTK_OPTIONS_GENERAL_PAGE_GTK_H_ |
OLD | NEW |