[email protected] | 5d9cace7 | 2012-06-21 16:07:12 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef CHROME_BROWSER_UI_CHROME_PAGES_H_ |
| 6 | #define CHROME_BROWSER_UI_CHROME_PAGES_H_ |
[email protected] | 5d9cace7 | 2012-06-21 16:07:12 | [diff] [blame] | 7 | |
[email protected] | 7a19ea2 | 2012-08-02 14:39:39 | [diff] [blame] | 8 | #include <string> |
| 9 | |
[email protected] | 5d9cace7 | 2012-06-21 16:07:12 | [diff] [blame] | 10 | #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h" |
| 11 | #include "chrome/common/content_settings_types.h" |
| 12 | |
| 13 | class Browser; |
[email protected] | 26603a5b | 2012-11-28 21:48:22 | [diff] [blame] | 14 | class GURL; |
[email protected] | 5d9cace7 | 2012-06-21 16:07:12 | [diff] [blame] | 15 | |
| 16 | namespace content { |
| 17 | class WebContents; |
| 18 | } |
| 19 | |
| 20 | namespace chrome { |
| 21 | |
| 22 | // Sources of requests to show the help tab. |
| 23 | enum HelpSource { |
| 24 | // Keyboard accelerators. |
| 25 | HELP_SOURCE_KEYBOARD, |
| 26 | |
| 27 | // Menus (e.g. wrench menu or Chrome OS system menu). |
| 28 | HELP_SOURCE_MENU, |
| 29 | |
| 30 | // WebUI (the "About" page). |
| 31 | HELP_SOURCE_WEBUI, |
| 32 | }; |
| 33 | |
| 34 | |
[email protected] | f1b1fe0 | 2013-02-25 21:43:31 | [diff] [blame] | 35 | void ShowAppLauncherPage(Browser* browser); |
[email protected] | 5d9cace7 | 2012-06-21 16:07:12 | [diff] [blame] | 36 | void ShowBookmarkManager(Browser* browser); |
| 37 | void ShowBookmarkManagerForNode(Browser* browser, int64 node_id); |
| 38 | void ShowHistory(Browser* browser); |
| 39 | void ShowDownloads(Browser* browser); |
[email protected] | bc9833c3 | 2013-02-28 04:05:08 | [diff] [blame^] | 40 | void ShowExtensions(Browser* browser, |
| 41 | const std::string& extension_to_highlight); |
[email protected] | 5d9cace7 | 2012-06-21 16:07:12 | [diff] [blame] | 42 | void ShowConflicts(Browser* browser); |
[email protected] | 7a19ea2 | 2012-08-02 14:39:39 | [diff] [blame] | 43 | void ShowFeedbackPage(Browser* browser, |
| 44 | const std::string& description_template, |
| 45 | const std::string& category_tag); |
[email protected] | 5d9cace7 | 2012-06-21 16:07:12 | [diff] [blame] | 46 | |
| 47 | void ShowHelp(Browser* browser, HelpSource source); |
[email protected] | 32d162b | 2012-12-03 20:31:08 | [diff] [blame] | 48 | void ShowPolicy(Browser* browser); |
[email protected] | 5d9cace7 | 2012-06-21 16:07:12 | [diff] [blame] | 49 | |
| 50 | // Various things that open in a settings UI. |
| 51 | void ShowSettings(Browser* browser); |
| 52 | void ShowSettingsSubPage(Browser* browser, const std::string& sub_page); |
| 53 | void ShowContentSettings(Browser* browser, |
| 54 | ContentSettingsType content_settings_type); |
| 55 | void ShowClearBrowsingDataDialog(Browser* browser); |
| 56 | void ShowPasswordManager(Browser* browser); |
| 57 | void ShowImportDialog(Browser* browser); |
[email protected] | 5d9cace7 | 2012-06-21 16:07:12 | [diff] [blame] | 58 | void ShowAboutChrome(Browser* browser); |
| 59 | void ShowSearchEngineSettings(Browser* browser); |
[email protected] | 08fafe4 | 2013-02-03 08:10:49 | [diff] [blame] | 60 | // If the user is already signed in, shows the "Signin" portion of Settings, |
| 61 | // otherwise initiates signin. |
| 62 | void ShowBrowserSignin(Browser* browser, SyncPromoUI::Source source); |
[email protected] | 5d9cace7 | 2012-06-21 16:07:12 | [diff] [blame] | 63 | |
[email protected] | 26603a5b | 2012-11-28 21:48:22 | [diff] [blame] | 64 | // Open a tab to sign into GAIA. |
| 65 | void ShowGaiaSignin(Browser* browser, |
| 66 | const std::string& service, |
| 67 | const GURL& continue_url); |
| 68 | |
[email protected] | 5d9cace7 | 2012-06-21 16:07:12 | [diff] [blame] | 69 | } // namespace chrome |
| 70 | |
| 71 | #endif // CHROME_BROWSER_UI_CHROME_PAGES_H_ |