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
|
// Copyright (c) 2010 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.
// This file contains stub implementations of the functions declared in
// browser_dialogs.h that are currently unimplemented in GTK-views.
#include <gtk/gtk.h>
#include "base/logging.h"
#include "chrome/browser/gtk/about_chrome_dialog.h"
#include "chrome/browser/fonts_languages_window.h"
#include "chrome/browser/gtk/clear_browsing_data_dialog_gtk.h"
#include "chrome/browser/gtk/collected_cookies_gtk.h"
#include "chrome/browser/gtk/edit_search_engine_dialog.h"
#include "chrome/browser/gtk/keyword_editor_view.h"
#include "chrome/browser/gtk/options/content_settings_window_gtk.h"
#include "chrome/browser/gtk/options/passwords_exceptions_window_gtk.h"
#include "chrome/browser/gtk/repost_form_warning_gtk.h"
#include "chrome/browser/gtk/task_manager_gtk.h"
#include "chrome/browser/options_window.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/views/browser_dialogs.h"
#include "views/widget/widget.h"
namespace browser {
void ShowClearBrowsingDataView(views::Widget* parent,
Profile* profile) {
ClearBrowsingDataDialogGtk::Show(GTK_WINDOW(parent->GetNativeView()),
profile);
}
void ShowImporterView(views::Widget* parent, Profile* profile) {
// Import currently doesn't matter.
NOTIMPLEMENTED();
}
void ShowPasswordsExceptionsWindowView(Profile* profile) {
ShowPasswordsExceptionsWindow(profile);
}
void ShowKeywordEditorView(Profile* profile) {
KeywordEditorView::Show(profile);
}
void ShowNewProfileDialog() {
// Hasn't been implemented yet on linux.
NOTIMPLEMENTED();
}
void ShowTaskManager() {
TaskManagerGtk::Show();
}
void EditSearchEngine(gfx::NativeWindow parent,
const TemplateURL* template_url,
EditSearchEngineControllerDelegate* delegate,
Profile* profile) {
new EditSearchEngineDialog(GTK_WINDOW(parent), template_url, NULL, profile);
}
void ShowRepostFormWarningDialog(gfx::NativeWindow parent_window,
TabContents* tab_contents) {
new RepostFormWarningGtk(GTK_WINDOW(parent_window), tab_contents);
}
void ShowContentSettingsWindow(gfx::NativeWindow parent_window,
ContentSettingsType content_type,
Profile* profile) {
ContentSettingsWindowGtk::Show(parent_window, content_type, profile);
}
void ShowCollectedCookiesDialog(gfx::NativeWindow parent_window,
TabContents* tab_contents) {
new CollectedCookiesGtk(GTK_WINDOW(parent_window), tab_contents);
}
} // namespace browser
|