Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(901)

Side by Side Diff: chrome/browser/gtk/options/general_page_gtk.h

Issue 2102019: Invalid URLs are no longer mangled when reopening the Options window (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/preferences_window_controller.mm ('k') | chrome/browser/gtk/options/general_page_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698