Home | History | Annotate | Download | only in ui
      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_
      7 
      8 #include <string>
      9 
     10 #include "chrome/browser/signin/signin_promo.h"
     11 #include "chrome/common/content_settings_types.h"
     12 
     13 class Browser;
     14 class GURL;
     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 
     35 void ShowBookmarkManager(Browser* browser);
     36 void ShowBookmarkManagerForNode(Browser* browser, int64 node_id);
     37 void ShowHistory(Browser* browser);
     38 void ShowDownloads(Browser* browser);
     39 void ShowExtensions(Browser* browser,
     40                     const std::string& extension_to_highlight);
     41 void ShowConflicts(Browser* browser);
     42 void ShowFeedbackPage(Browser* browser,
     43                       const std::string& description_template,
     44                       const std::string& category_tag);
     45 
     46 void ShowHelp(Browser* browser, HelpSource source);
     47 void ShowPolicy(Browser* browser);
     48 void ShowSlow(Browser* browser);
     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);
     58 void ShowAboutChrome(Browser* browser);
     59 void ShowSearchEngineSettings(Browser* browser);
     60 // If the user is already signed in, shows the "Signin" portion of Settings,
     61 // otherwise initiates signin.
     62 void ShowBrowserSignin(Browser* browser, signin::Source source);
     63 
     64 // Open a tab to sign into GAIA.
     65 void ShowGaiaSignin(Browser* browser,
     66                     const std::string& service,
     67                     const GURL& continue_url);
     68 
     69 }  // namespace chrome
     70 
     71 #endif  // CHROME_BROWSER_UI_CHROME_PAGES_H_
     72