NaCl docs: add sanitizers to GSoC ideas
[chromium-blink-merge.git] / chrome / browser / ui / browser_dialogs.h
blob2d78b9ef0d86d0e9360573562121bd07ba7af6d7
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 "content/public/common/signed_certificate_timestamp_id_and_status.h"
10 #include "third_party/skia/include/core/SkColor.h"
11 #include "ui/gfx/native_widget_types.h"
13 class Browser;
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 ui {
28 class WebDialogDelegate;
31 namespace chrome {
33 // Creates and shows an HTML dialog with the given delegate and context.
34 // The window is automatically destroyed when it is closed.
35 // Returns the created window.
37 // Make sure to use the returned window only when you know it is safe
38 // to do so, i.e. before OnDialogClosed() is called on the delegate.
39 gfx::NativeWindow ShowWebDialog(gfx::NativeView parent,
40 content::BrowserContext* context,
41 ui::WebDialogDelegate* delegate);
43 // Creates the ExtensionInstalledBubble and schedules it to be shown once
44 // the extension has loaded. |extension| is the installed extension. |browser|
45 // is the browser window which will host the bubble. |icon| is the install
46 // icon of the extension.
47 void ShowExtensionInstalledBubble(const extensions::Extension* extension,
48 Browser* browser,
49 const SkBitmap& icon);
51 // Shows or hides the Task Manager. |browser| can be NULL when called from Ash.
52 void ShowTaskManager(Browser* browser);
53 void HideTaskManager();
55 #if !defined(OS_MACOSX)
56 // Shows the create web app shortcut dialog box.
57 void ShowCreateWebAppShortcutsDialog(gfx::NativeWindow parent_window,
58 content::WebContents* web_contents);
59 #endif
61 // Shows the create chrome app shortcut dialog box.
62 // |close_callback| may be null.
63 void ShowCreateChromeAppShortcutsDialog(
64 gfx::NativeWindow parent_window,
65 Profile* profile,
66 const extensions::Extension* app,
67 const base::Callback<void(bool /* created */)>& close_callback);
69 // Shows a color chooser that reports to the given WebContents.
70 content::ColorChooser* ShowColorChooser(content::WebContents* web_contents,
71 SkColor initial_color);
73 // Shows the Signed Certificate Timestamps viewer, to view the signed
74 // certificate timestamps in |sct_ids_list|
75 void ShowSignedCertificateTimestampsViewer(
76 content::WebContents* web_contents,
77 const content::SignedCertificateTimestampIDStatusList& sct_ids_list);
79 } // namespace chrome
81 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_