blob: aabf63a1db48789a4b78afae2136ce11ca2d17b0 [file] [log] [blame]
[email protected]c96531e82011-01-26 03:11:141// Copyright (c) 2011 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_BROWSER_DIALOGS_H_
6#define CHROME_BROWSER_UI_BROWSER_DIALOGS_H_
7#pragma once
8
9#include "ipc/ipc_message.h"
[email protected]08397d52011-02-05 01:53:3810#include "ui/gfx/native_widget_types.h"
[email protected]c96531e82011-01-26 03:11:1411
[email protected]c60e2482011-02-11 23:46:3212class Browser;
13class Extension;
14class ImporterHost;
[email protected]eb2d7902011-02-02 18:19:5615class HtmlDialogUIDelegate;
16class Profile;
[email protected]c60e2482011-02-11 23:46:3217class SkBitmap;
[email protected]eb2d7902011-02-02 18:19:5618
[email protected]c96531e82011-01-26 03:11:1419namespace browser {
20
21#if defined(IPC_MESSAGE_LOG_ENABLED)
22
23// The dialog is a singleton. If the dialog is already opened, it won't do
24// anything, so you can just blindly call this function all you want.
25// This is Called from chrome/browser/browser_about_handler.cc
26void ShowAboutIPCDialog();
27
28#endif // IPC_MESSAGE_LOG_ENABLED
29
[email protected]eb2d7902011-02-02 18:19:5630// Creates and shows an HTML dialog with the given delegate and profile.
31// The window is automatically destroyed when it is closed.
32// Returns the created window.
33//
34// Make sure to use the returned window only when you know it is safe
35// to do so, i.e. before OnDialogClosed() is called on the delegate.
36gfx::NativeWindow ShowHtmlDialog(gfx::NativeWindow parent, Profile* profile,
37 HtmlDialogUIDelegate* delegate);
38
[email protected]02c2d5c2011-02-10 21:51:3439// This function is called by an ImporterHost, and displays the Firefox profile
40// locked warning by creating a dialog. On the closing of the dialog, the
41// ImportHost receives a callback with the message either to skip the import,
42// or to try again.
43void ShowImportLockDialog(gfx::NativeWindow parent,
44 ImporterHost* importer_host);
45
[email protected]c60e2482011-02-11 23:46:3246// Creates the ExtensionInstalledBubble and schedules it to be shown once
47// the extension has loaded. |extension| is the installed extension. |browser|
48// is the browser window which will host the bubble. |icon| is the install
49// icon of the extension.
50void ShowExtensionInstalledBubble(const Extension* extension,
51 Browser* browser,
52 SkBitmap icon,
53 Profile* profile);
54
[email protected]c96531e82011-01-26 03:11:1455} // namespace browser
56
57#endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_