Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: chrome/browser/views/dialog_stubs_gtk.cc

Issue 254007: Wires up views on linux dialogs to use gtk ones. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/profile.cc ('k') | chrome/browser/views/toolbar_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file contains stub implementations of the functions declared in 5 // This file contains stub implementations of the functions declared in
6 // browser_dialogs.h that are currently unimplemented in GTK-views. 6 // browser_dialogs.h that are currently unimplemented in GTK-views.
7 7
8 #include <gtk/gtk.h>
9
8 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "chrome/browser/gtk/about_chrome_dialog.h"
9 #include "chrome/browser/fonts_languages_window.h" 12 #include "chrome/browser/fonts_languages_window.h"
13 #include "chrome/browser/gtk/bookmark_manager_gtk.h"
14 #include "chrome/browser/gtk/clear_browsing_data_dialog_gtk.h"
15 #include "chrome/browser/gtk/edit_search_engine_dialog.h"
16 #include "chrome/browser/gtk/keyword_editor_view.h"
17 #include "chrome/browser/gtk/options/passwords_exceptions_window_gtk.h"
18 #include "chrome/browser/gtk/repost_form_warning_gtk.h"
19 #include "chrome/browser/gtk/task_manager_gtk.h"
10 #include "chrome/browser/options_window.h" 20 #include "chrome/browser/options_window.h"
11 #include "chrome/browser/views/browser_dialogs.h" 21 #include "chrome/browser/views/browser_dialogs.h"
22 #include "views/widget/widget.h"
12 23
13 namespace browser { 24 namespace browser {
14 25
15 void ShowBugReportView(views::Widget* parent, 26 void ShowBugReportView(views::Widget* parent,
16 Profile* profile, 27 Profile* profile,
17 TabContents* tab) { 28 TabContents* tab) {
29 // Bug report view hasn't been implemented on gtk yet.
18 NOTIMPLEMENTED(); 30 NOTIMPLEMENTED();
19 } 31 }
20 32
21 void ShowClearBrowsingDataView(views::Widget* parent, 33 void ShowClearBrowsingDataView(views::Widget* parent,
22 Profile* profile) { 34 Profile* profile) {
35 ClearBrowsingDataDialogGtk::Show(GTK_WINDOW(parent->GetNativeView()),
36 profile);
37 }
38
39 void ShowSelectProfileDialog() {
40 // Only matters if we're going to support profile switching
41 // (switches::kEnableUserDataDirProfiles).
23 NOTIMPLEMENTED(); 42 NOTIMPLEMENTED();
24 } 43 }
25 44
26 void ShowSelectProfileDialog() { 45 void ShowImporterView(views::Widget* parent, Profile* profile) {
27 NOTIMPLEMENTED(); 46 // Import currently doesn't matter.
28 }
29
30 void ShowImporterView(views::Widget* parent,
31 Profile* profile) {
32 NOTIMPLEMENTED(); 47 NOTIMPLEMENTED();
33 } 48 }
34 49
35 void ShowBookmarkManagerView(Profile* profile) { 50 void ShowBookmarkManagerView(Profile* profile) {
36 NOTIMPLEMENTED(); 51 BookmarkManagerGtk::Show(profile);
37 } 52 }
38 53
39 void ShowAboutChromeView(views::Widget* parent, 54 void ShowAboutChromeView(views::Widget* parent,
40 Profile* profile) { 55 Profile* profile) {
41 NOTIMPLEMENTED(); 56 ShowAboutDialogForProfile(GTK_WINDOW(parent->GetNativeView()), profile);
42 } 57 }
43 58
44 void ShowHtmlDialogView(gfx::NativeWindow parent, Browser* browser, 59 void ShowHtmlDialogView(gfx::NativeWindow parent, Browser* browser,
45 HtmlDialogUIDelegate* delegate) { 60 HtmlDialogUIDelegate* delegate) {
61 // Hasn't been implemented yet on linux.
46 NOTIMPLEMENTED(); 62 NOTIMPLEMENTED();
47 } 63 }
48 64
49 void ShowPasswordsExceptionsWindowView(Profile* profile) { 65 void ShowPasswordsExceptionsWindowView(Profile* profile) {
50 NOTIMPLEMENTED(); 66 ShowPasswordsExceptionsWindow(profile);
51 } 67 }
52 68
53 void ShowKeywordEditorView(Profile* profile) { 69 void ShowKeywordEditorView(Profile* profile) {
54 NOTIMPLEMENTED(); 70 KeywordEditorView::Show(profile);
55 } 71 }
56 72
57 void ShowNewProfileDialog() { 73 void ShowNewProfileDialog() {
74 // Hasn't been implemented yet on linux.
58 NOTIMPLEMENTED(); 75 NOTIMPLEMENTED();
59 } 76 }
60 77
61 void ShowTaskManager() { 78 void ShowTaskManager() {
62 NOTIMPLEMENTED(); 79 TaskManagerGtk::Show();
63 } 80 }
64 81
65 void EditSearchEngine(gfx::NativeWindow parent, 82 void EditSearchEngine(gfx::NativeWindow parent,
66 const TemplateURL* template_url, 83 const TemplateURL* template_url,
67 EditSearchEngineControllerDelegate* delegate, 84 EditSearchEngineControllerDelegate* delegate,
68 Profile* profile) { 85 Profile* profile) {
69 NOTIMPLEMENTED(); 86 new EditSearchEngineDialog(GTK_WINDOW(parent), template_url, NULL, profile);
70 } 87 }
71 88
72 void ShowRepostFormWarningDialog(gfx::NativeWindow parent_window, 89 void ShowRepostFormWarningDialog(gfx::NativeWindow parent_window,
73 TabContents* tab_contents) { 90 TabContents* tab_contents) {
74 NOTIMPLEMENTED(); 91 new RepostFormWarningGtk(GTK_WINDOW(parent_window),
92 &tab_contents->controller());
75 } 93 }
76 94
77 } // namespace browser 95 } // namespace browser
78
79 void ShowOptionsWindow(OptionsPage page,
80 OptionsGroup highlight_group,
81 Profile* profile) {
82 NOTIMPLEMENTED();
83 }
84 void ShowFontsLanguagesWindow(gfx::NativeWindow window,
85 FontsLanguagesPage page,
86 Profile* profile) {
87 NOTIMPLEMENTED();
88 }
OLDNEW
« no previous file with comments | « chrome/browser/profile.cc ('k') | chrome/browser/views/toolbar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698