[Eraser strings] Remove unused Supervised User infobar and corresponding strings
[chromium-blink-merge.git] / chrome / browser / ui / browser_dialogs.h
blobf83ddbe0b3584b3d1360e032f48b9a2ea88ceebf
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.
5 #ifndef CHROME_BROWSER_UI_BROWSER_DIALOGS_H_
6 #define CHROME_BROWSER_UI_BROWSER_DIALOGS_H_
8 #include "base/callback.h"
9 #include "third_party/skia/include/core/SkColor.h"
10 #include "ui/gfx/native_widget_types.h"
12 class Browser;
13 class LoginHandler;
14 class Profile;
15 class SkBitmap;
17 namespace content {
18 class BrowserContext;
19 class ColorChooser;
20 class WebContents;
23 namespace extensions {
24 class Extension;
27 namespace net {
28 class AuthChallengeInfo;
29 class URLRequest;
32 namespace ui {
33 class WebDialogDelegate;
36 namespace chrome {
38 // Creates and shows an HTML dialog with the given delegate and context.
39 // The window is automatically destroyed when it is closed.
40 // Returns the created window.
42 // Make sure to use the returned window only when you know it is safe
43 // to do so, i.e. before OnDialogClosed() is called on the delegate.
44 gfx::NativeWindow ShowWebDialog(gfx::NativeView parent,
45 content::BrowserContext* context,
46 ui::WebDialogDelegate* delegate);
48 // Creates the ExtensionInstalledBubble and schedules it to be shown once
49 // the extension has loaded. |extension| is the installed extension. |browser|
50 // is the browser window which will host the bubble. |icon| is the install
51 // icon of the extension.
52 void ShowExtensionInstalledBubble(const extensions::Extension* extension,
53 Browser* browser,
54 const SkBitmap& icon);
56 // Shows or hides the Task Manager. |browser| can be NULL when called from Ash.
57 void ShowTaskManager(Browser* browser);
58 void HideTaskManager();
60 #if !defined(OS_MACOSX)
61 // Shows the create web app shortcut dialog box.
62 void ShowCreateWebAppShortcutsDialog(gfx::NativeWindow parent_window,
63 content::WebContents* web_contents);
64 #endif
66 // Shows the create chrome app shortcut dialog box.
67 // |close_callback| may be null.
68 void ShowCreateChromeAppShortcutsDialog(
69 gfx::NativeWindow parent_window,
70 Profile* profile,
71 const extensions::Extension* app,
72 const base::Callback<void(bool /* created */)>& close_callback);
74 // Shows a color chooser that reports to the given WebContents.
75 content::ColorChooser* ShowColorChooser(content::WebContents* web_contents,
76 SkColor initial_color);
78 #if defined(OS_MACOSX)
80 // For Mac, returns true if Chrome should show an equivalent toolkit-views based
81 // dialog using one of the functions below, rather than showing a Cocoa dialog.
82 bool ToolkitViewsDialogsEnabled();
84 #endif // OS_MACOSX
86 #if defined(TOOLKIT_VIEWS)
88 // Creates a toolkit-views based LoginHandler (e.g. HTTP-Auth dialog).
89 LoginHandler* CreateLoginHandlerViews(net::AuthChallengeInfo* auth_info,
90 net::URLRequest* request);
92 #endif // TOOLKIT_VIEWS
94 } // namespace chrome
96 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_