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

Side by Side Diff: chrome/browser/views/options/general_page_view.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) 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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/options/general_page_gtk.cc ('k') | chrome/browser/views/options/general_page_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698