| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 // ShowFeedbackPage() uses |browser| to determine the URL of the current tab. | 64 // ShowFeedbackPage() uses |browser| to determine the URL of the current tab. |
| 65 // |browser| should be NULL if there are no currently open browser windows. | 65 // |browser| should be NULL if there are no currently open browser windows. |
| 66 void ShowFeedbackPage(Browser* browser, | 66 void ShowFeedbackPage(Browser* browser, |
| 67 FeedbackSource source, | 67 FeedbackSource source, |
| 68 const std::string& description_template, | 68 const std::string& description_template, |
| 69 const std::string& category_tag); | 69 const std::string& category_tag); |
| 70 | 70 |
| 71 void ShowHelp(Browser* browser, HelpSource source); | 71 void ShowHelp(Browser* browser, HelpSource source); |
| 72 void ShowHelpForProfile(Profile* profile, HelpSource source); | 72 void ShowHelpForProfile(Profile* profile, HelpSource source); |
| 73 void ShowBetaForum(Browser* browser); |
| 73 void ShowPolicy(Browser* browser); | 74 void ShowPolicy(Browser* browser); |
| 74 void ShowSlow(Browser* browser); | 75 void ShowSlow(Browser* browser); |
| 75 | 76 |
| 76 // Constructs a settings GURL for the specified |sub_page|. | 77 // Constructs a settings GURL for the specified |sub_page|. |
| 77 GURL GetSettingsUrl(const std::string& sub_page); | 78 GURL GetSettingsUrl(const std::string& sub_page); |
| 78 | 79 |
| 79 // Returns true if |url| is the URL for the settings subpage |sub_page|. | 80 // Returns true if |url| is the URL for the settings subpage |sub_page|. |
| 80 bool IsSettingsSubPage(const GURL& url, const std::string& sub_page); | 81 bool IsSettingsSubPage(const GURL& url, const std::string& sub_page); |
| 81 | 82 |
| 82 // Returns true if |browser| is a trusted popup window containing a page with | 83 // Returns true if |browser| is a trusted popup window containing a page with |
| (...skipping 29 matching lines...) Expand all Loading... |
| 112 | 113 |
| 113 // If the user is already signed in, shows the "Signin" portion of Settings, | 114 // If the user is already signed in, shows the "Signin" portion of Settings, |
| 114 // otherwise initiates signin in a new browser tab. | 115 // otherwise initiates signin in a new browser tab. |
| 115 void ShowBrowserSigninOrSettings(Browser* browser, | 116 void ShowBrowserSigninOrSettings(Browser* browser, |
| 116 signin_metrics::AccessPoint access_point); | 117 signin_metrics::AccessPoint access_point); |
| 117 #endif | 118 #endif |
| 118 | 119 |
| 119 } // namespace chrome | 120 } // namespace chrome |
| 120 | 121 |
| 121 #endif // CHROME_BROWSER_UI_CHROME_PAGES_H_ | 122 #endif // CHROME_BROWSER_UI_CHROME_PAGES_H_ |
| OLD | NEW |