OLD | NEW |
1 // Copyright (c) 2009 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_VIEWS_OPTIONS_GENERAL_PAGE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_OPTIONS_GENERAL_PAGE_VIEW_H_ |
6 #define CHROME_BROWSER_VIEWS_OPTIONS_GENERAL_PAGE_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_OPTIONS_GENERAL_PAGE_VIEW_H_ |
7 | 7 |
8 #include "chrome/browser/pref_member.h" | 8 #include "chrome/browser/pref_member.h" |
9 #include "chrome/browser/shell_integration.h" | 9 #include "chrome/browser/shell_integration.h" |
10 #include "chrome/browser/views/options/options_page_view.h" | 10 #include "chrome/browser/views/options/options_page_view.h" |
11 #include "chrome/browser/views/url_picker.h" | 11 #include "chrome/browser/views/url_picker.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // Enables/Disables the controls associated with the custom start pages | 98 // Enables/Disables the controls associated with the custom start pages |
99 // option if that preference is not selected. | 99 // option if that preference is not selected. |
100 void EnableCustomHomepagesControls(bool enable); | 100 void EnableCustomHomepagesControls(bool enable); |
101 | 101 |
102 // UrlPickerDelegate. Adds the URL to the list of startup urls. | 102 // UrlPickerDelegate. Adds the URL to the list of startup urls. |
103 virtual void AddBookmark(UrlPicker* dialog, | 103 virtual void AddBookmark(UrlPicker* dialog, |
104 const std::wstring& title, | 104 const std::wstring& title, |
105 const GURL& url); | 105 const GURL& url); |
106 | 106 |
107 // Sets the home page preferences for kNewTabPageIsHomePage and kHomePage. | 107 // Sets the home page preferences for kNewTabPageIsHomePage and kHomePage. |
108 // If a blank string is passed in we revert to using NewTab page as the Home | 108 // If an empty or null-host GURL is passed in we revert to using NewTab |
109 // page. When setting the Home Page to NewTab page, we preserve the old value | 109 // page as the Homepage. |
110 // of kHomePage (we don't overwrite it). | 110 void SetHomepage(const GURL& homepage); |
111 void SetHomepage(const std::wstring& homepage); | |
112 | 111 |
113 // Invoked when the selection of the table view changes. Updates the enabled | 112 // Invoked when the selection of the table view changes. Updates the enabled |
114 // property of the remove button. | 113 // property of the remove button. |
115 virtual void OnSelectionChanged(); | 114 virtual void OnSelectionChanged(); |
116 | 115 |
117 // Enables or disables the field for entering a custom homepage URL. | 116 // Enables or disables the field for entering a custom homepage URL. |
118 void EnableHomepageURLField(bool enabled); | 117 void EnableHomepageURLField(bool enabled); |
119 | 118 |
120 // Sets the default search provider for the selected item in the combobox. | 119 // Sets the default search provider for the selected item in the combobox. |
121 void SetDefaultSearchProvider(); | 120 void SetDefaultSearchProvider(); |
(...skipping 30 matching lines...) Expand all Loading... |
152 views::Label* default_browser_status_label_; | 151 views::Label* default_browser_status_label_; |
153 views::NativeButton* default_browser_use_as_default_button_; | 152 views::NativeButton* default_browser_use_as_default_button_; |
154 | 153 |
155 // The helper object that performs default browser set/check tasks. | 154 // The helper object that performs default browser set/check tasks. |
156 scoped_refptr<ShellIntegration::DefaultBrowserWorker> default_browser_worker_; | 155 scoped_refptr<ShellIntegration::DefaultBrowserWorker> default_browser_worker_; |
157 | 156 |
158 DISALLOW_COPY_AND_ASSIGN(GeneralPageView); | 157 DISALLOW_COPY_AND_ASSIGN(GeneralPageView); |
159 }; | 158 }; |
160 | 159 |
161 #endif // CHROME_BROWSER_VIEWS_OPTIONS_GENERAL_PAGE_VIEW_H_ | 160 #endif // CHROME_BROWSER_VIEWS_OPTIONS_GENERAL_PAGE_VIEW_H_ |
OLD | NEW |