blob: 7884719161edf4180d233d7a415091d22d7eb229 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_VIEWS_BROWSER_DIALOGS_H_
#define CHROME_BROWSER_VIEWS_BROWSER_DIALOGS_H_
#include "base/gfx/native_widget_types.h"
// This file contains functions for running a variety of browser dialogs and
// popups. The dialogs here are the ones that the caller does not need to
// access the class of the popup. It allows us to break dependencies by
// allowing the callers to not depend on the classes implementing the dialogs.
class Browser;
class GURL;
class HtmlDialogUIDelegate;
class InfoBubbleDelegate;
class Profile;
class TabContents;
namespace gfx {
class Rect;
} // namespace gfx
namespace views {
class Widget;
class Window;
} // namespace views
namespace browser {
// Shows the "Report a problem with this page" dialog box. See BugReportView.
void ShowBugReportView(views::Widget* parent,
Profile* profile,
TabContents* tab);
// Shows the "Clear browsing data" dialog box. See ClearBrowsingDataView.
void ShowClearBrowsingDataView(views::Widget* parent,
Profile* profile);
// Shows the "Select profile" dialog. See SelectProfileDialog.
void ShowSelectProfileDialog();
// Shows the "Importer" dialog. See ImporterView.
void ShowImporterView(views::Widget* parent,
Profile* profile);
// Shows or hides the global bookmark bubble for the star button.
void ShowBookmarkBubbleView(views::Window* parent,
const gfx::Rect& bounds,
InfoBubbleDelegate* delegate,
Profile* profile,
const GURL& url,
bool newly_bookmarked);
void HideBookmarkBubbleView();
bool IsBookmarkBubbleViewShowing();
// Shows the about dialog. See AboutChromeView.
void ShowAboutChromeView(views::Widget* parent,
Profile* profile);
// Shows an HTML dialog. See HtmlDialogView.
void ShowHtmlDialogView(gfx::NativeWindow parent, Browser* browser,
HtmlDialogUIDelegate* delegate);
} // namespace browser
#endif // CHROME_BROWSER_VIEWS_BROWSER_DIALOGS_H_
|