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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 void ShowConflicts(Browser* browser); | 45 void ShowConflicts(Browser* browser); |
46 | 46 |
47 // ShowFeedbackPage() uses |browser| to determine the URL of the current tab. | 47 // ShowFeedbackPage() uses |browser| to determine the URL of the current tab. |
48 // |browser| should be NULL if there are no currently open browser windows. | 48 // |browser| should be NULL if there are no currently open browser windows. |
49 void ShowFeedbackPage(Browser* browser, | 49 void ShowFeedbackPage(Browser* browser, |
50 const std::string& description_template, | 50 const std::string& description_template, |
51 const std::string& category_tag); | 51 const std::string& category_tag); |
52 | 52 |
53 void ShowHelp(Browser* browser, HelpSource source); | 53 void ShowHelp(Browser* browser, HelpSource source); |
54 void ShowHelpForProfile(Profile* profile, | 54 void ShowHelpForProfile(Profile* profile, |
55 HostDesktopType host_desktop_type, | 55 ui::HostDesktopType host_desktop_type, |
56 HelpSource source); | 56 HelpSource source); |
57 void ShowPolicy(Browser* browser); | 57 void ShowPolicy(Browser* browser); |
58 void ShowSlow(Browser* browser); | 58 void ShowSlow(Browser* browser); |
59 void ShowMemory(Browser* browser); | 59 void ShowMemory(Browser* browser); |
60 | 60 |
61 // Constructs a settings GURL for the specified |sub_page|. | 61 // Constructs a settings GURL for the specified |sub_page|. |
62 GURL GetSettingsUrl(const std::string& sub_page); | 62 GURL GetSettingsUrl(const std::string& sub_page); |
63 | 63 |
64 // Returns true if |url| is the URL for the settings subpage |sub_page|. | 64 // Returns true if |url| is the URL for the settings subpage |sub_page|. |
65 bool IsSettingsSubPage(const GURL& url, const std::string& sub_page); | 65 bool IsSettingsSubPage(const GURL& url, const std::string& sub_page); |
(...skipping 27 matching lines...) Expand all Loading... |
93 | 93 |
94 // 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, |
95 // otherwise initiates signin in a new browser tab. | 95 // otherwise initiates signin in a new browser tab. |
96 void ShowBrowserSigninOrSettings(Browser* browser, | 96 void ShowBrowserSigninOrSettings(Browser* browser, |
97 signin_metrics::Source source); | 97 signin_metrics::Source source); |
98 #endif | 98 #endif |
99 | 99 |
100 } // namespace chrome | 100 } // namespace chrome |
101 | 101 |
102 #endif // CHROME_BROWSER_UI_CHROME_PAGES_H_ | 102 #endif // CHROME_BROWSER_UI_CHROME_PAGES_H_ |
OLD | NEW |