| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_CHROME_PAGES_H_ | 5 #ifndef CHROME_BROWSER_UI_CHROME_PAGES_H_ | 
| 6 #define CHROME_BROWSER_UI_CHROME_PAGES_H_ | 6 #define CHROME_BROWSER_UI_CHROME_PAGES_H_ | 
| 7 | 7 | 
| 8 #include <string> | 8 #include <string> | 
| 9 | 9 | 
| 10 #include "chrome/browser/ui/host_desktop.h" | 10 #include "chrome/browser/ui/host_desktop.h" | 
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 68 // matching |scheme| (or any trusted popup if |scheme| is empty). | 68 // matching |scheme| (or any trusted popup if |scheme| is empty). | 
| 69 bool IsTrustedPopupWindowWithScheme(const Browser* browser, | 69 bool IsTrustedPopupWindowWithScheme(const Browser* browser, | 
| 70                                     const std::string& scheme); | 70                                     const std::string& scheme); | 
| 71 | 71 | 
| 72 | 72 | 
| 73 // Various things that open in a settings UI. | 73 // Various things that open in a settings UI. | 
| 74 void ShowSettings(Browser* browser); | 74 void ShowSettings(Browser* browser); | 
| 75 void ShowSettingsSubPage(Browser* browser, const std::string& sub_page); | 75 void ShowSettingsSubPage(Browser* browser, const std::string& sub_page); | 
| 76 void ShowSettingsSubPageForProfile(Profile* profile, | 76 void ShowSettingsSubPageForProfile(Profile* profile, | 
| 77                                    const std::string& sub_page); | 77                                    const std::string& sub_page); | 
|  | 78 void ShowContentSettingsExceptions(Browser* browser, | 
|  | 79                                    ContentSettingsType content_settings_type); | 
| 78 void ShowContentSettings(Browser* browser, | 80 void ShowContentSettings(Browser* browser, | 
| 79                          ContentSettingsType content_settings_type); | 81                          ContentSettingsType content_settings_type); | 
| 80 void ShowSettingsSubPageInTabbedBrowser(Browser* browser, | 82 void ShowSettingsSubPageInTabbedBrowser(Browser* browser, | 
| 81                                         const std::string& sub_page); | 83                                         const std::string& sub_page); | 
| 82 void ShowClearBrowsingDataDialog(Browser* browser); | 84 void ShowClearBrowsingDataDialog(Browser* browser); | 
| 83 void ShowPasswordManager(Browser* browser); | 85 void ShowPasswordManager(Browser* browser); | 
| 84 void ShowImportDialog(Browser* browser); | 86 void ShowImportDialog(Browser* browser); | 
| 85 void ShowAboutChrome(Browser* browser); | 87 void ShowAboutChrome(Browser* browser); | 
| 86 void ShowSearchEngineSettings(Browser* browser); | 88 void ShowSearchEngineSettings(Browser* browser); | 
| 87 | 89 | 
| 88 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 90 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 
| 89 // Initiates signin in a new browser tab. | 91 // Initiates signin in a new browser tab. | 
| 90 void ShowBrowserSignin(Browser* browser, signin_metrics::Source source); | 92 void ShowBrowserSignin(Browser* browser, signin_metrics::Source source); | 
| 91 | 93 | 
| 92 // If the user is already signed in, shows the "Signin" portion of Settings, | 94 // If the user is already signed in, shows the "Signin" portion of Settings, | 
| 93 // otherwise initiates signin in a new browser tab. | 95 // otherwise initiates signin in a new browser tab. | 
| 94 void ShowBrowserSigninOrSettings(Browser* browser, | 96 void ShowBrowserSigninOrSettings(Browser* browser, | 
| 95                                  signin_metrics::Source source); | 97                                  signin_metrics::Source source); | 
| 96 #endif | 98 #endif | 
| 97 | 99 | 
| 98 }  // namespace chrome | 100 }  // namespace chrome | 
| 99 | 101 | 
| 100 #endif  // CHROME_BROWSER_UI_CHROME_PAGES_H_ | 102 #endif  // CHROME_BROWSER_UI_CHROME_PAGES_H_ | 
| OLD | NEW | 
|---|