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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
// Copyright (c) 2012 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.
#include "chrome/browser/ui/browser_mac.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/host_desktop.h"
namespace chrome {
void OpenAboutWindow(Profile* profile) {
Browser* browser =
new Browser(Browser::CreateParams(profile,
chrome::HOST_DESKTOP_TYPE_NATIVE));
ShowAboutChrome(browser);
browser->window()->Show();
}
void OpenHistoryWindow(Profile* profile) {
Browser* browser =
new Browser(Browser::CreateParams(profile,
chrome::HOST_DESKTOP_TYPE_NATIVE));
ShowHistory(browser);
browser->window()->Show();
}
void OpenDownloadsWindow(Profile* profile) {
Browser* browser =
new Browser(Browser::CreateParams(profile,
chrome::HOST_DESKTOP_TYPE_NATIVE));
ShowDownloads(browser);
browser->window()->Show();
}
void OpenHelpWindow(Profile* profile, HelpSource source) {
Browser* browser =
new Browser(Browser::CreateParams(profile,
chrome::HOST_DESKTOP_TYPE_NATIVE));
ShowHelp(browser, source);
browser->window()->Show();
}
void OpenOptionsWindow(Profile* profile) {
Browser* browser =
new Browser(Browser::CreateParams(profile,
chrome::HOST_DESKTOP_TYPE_NATIVE));
ShowSettings(browser);
browser->window()->Show();
}
void OpenSyncSetupWindow(Profile* profile, signin::Source source) {
Browser* browser =
new Browser(Browser::CreateParams(profile,
chrome::HOST_DESKTOP_TYPE_NATIVE));
ShowBrowserSignin(browser, source);
browser->window()->Show();
}
void OpenClearBrowsingDataDialogWindow(Profile* profile) {
Browser* browser =
new Browser(Browser::CreateParams(profile,
chrome::HOST_DESKTOP_TYPE_NATIVE));
ShowClearBrowsingDataDialog(browser);
browser->window()->Show();
}
void OpenImportSettingsDialogWindow(Profile* profile) {
Browser* browser =
new Browser(Browser::CreateParams(profile,
chrome::HOST_DESKTOP_TYPE_NATIVE));
ShowImportDialog(browser);
browser->window()->Show();
}
void OpenBookmarkManagerWindow(Profile* profile) {
Browser* browser =
new Browser(Browser::CreateParams(profile,
chrome::HOST_DESKTOP_TYPE_NATIVE));
ShowBookmarkManager(browser);
browser->window()->Show();
}
void OpenExtensionsWindow(Profile* profile) {
Browser* browser =
new Browser(Browser::CreateParams(profile,
chrome::HOST_DESKTOP_TYPE_NATIVE));
ShowExtensions(browser, std::string());
browser->window()->Show();
}
} // namespace chrome
|