blob: bc46c1eadbdb3843f900ee805a97fffd7b68f693 [file] [log] [blame]
[email protected]5d9cace72012-06-21 16:07:121// 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]5d9cace72012-06-21 16:07:127
[email protected]7a19ea22012-08-02 14:39:398#include <string>
9
[email protected]5d9cace72012-06-21 16:07:1210#include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h"
11#include "chrome/common/content_settings_types.h"
12
13class Browser;
[email protected]26603a5b2012-11-28 21:48:2214class GURL;
[email protected]5d9cace72012-06-21 16:07:1215
16namespace content {
17class WebContents;
18}
19
20namespace chrome {
21
22// Sources of requests to show the help tab.
23enum 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]f1b1fe02013-02-25 21:43:3135void ShowAppLauncherPage(Browser* browser);
[email protected]5d9cace72012-06-21 16:07:1236void ShowBookmarkManager(Browser* browser);
37void ShowBookmarkManagerForNode(Browser* browser, int64 node_id);
38void ShowHistory(Browser* browser);
39void ShowDownloads(Browser* browser);
[email protected]bc9833c32013-02-28 04:05:0840void ShowExtensions(Browser* browser,
41 const std::string& extension_to_highlight);
[email protected]5d9cace72012-06-21 16:07:1242void ShowConflicts(Browser* browser);
[email protected]7a19ea22012-08-02 14:39:3943void ShowFeedbackPage(Browser* browser,
44 const std::string& description_template,
45 const std::string& category_tag);
[email protected]5d9cace72012-06-21 16:07:1246
47void ShowHelp(Browser* browser, HelpSource source);
[email protected]32d162b2012-12-03 20:31:0848void ShowPolicy(Browser* browser);
[email protected]5d9cace72012-06-21 16:07:1249
50// Various things that open in a settings UI.
51void ShowSettings(Browser* browser);
52void ShowSettingsSubPage(Browser* browser, const std::string& sub_page);
53void ShowContentSettings(Browser* browser,
54 ContentSettingsType content_settings_type);
55void ShowClearBrowsingDataDialog(Browser* browser);
56void ShowPasswordManager(Browser* browser);
57void ShowImportDialog(Browser* browser);
[email protected]5d9cace72012-06-21 16:07:1258void ShowAboutChrome(Browser* browser);
59void ShowSearchEngineSettings(Browser* browser);
[email protected]08fafe42013-02-03 08:10:4960// If the user is already signed in, shows the "Signin" portion of Settings,
61// otherwise initiates signin.
62void ShowBrowserSignin(Browser* browser, SyncPromoUI::Source source);
[email protected]5d9cace72012-06-21 16:07:1263
[email protected]26603a5b2012-11-28 21:48:2264// Open a tab to sign into GAIA.
65void ShowGaiaSignin(Browser* browser,
66 const std::string& service,
67 const GURL& continue_url);
68
[email protected]5d9cace72012-06-21 16:07:1269} // namespace chrome
70
71#endif // CHROME_BROWSER_UI_CHROME_PAGES_H_