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

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

Issue 7828065: chromeos: Add WebUI implementation of form repost dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge. again. Created 9 years, 3 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // 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 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> 8 #include <gtk/gtk.h>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "chrome/browser/ui/gtk/about_chrome_dialog.h"
12 #include "chrome/browser/ui/gtk/collected_cookies_gtk.h"
13 #include "chrome/browser/ui/gtk/edit_search_engine_dialog.h" 11 #include "chrome/browser/ui/gtk/edit_search_engine_dialog.h"
14 #include "chrome/browser/ui/gtk/repost_form_warning_gtk.h"
15 #include "chrome/browser/ui/gtk/task_manager_gtk.h"
16 #include "chrome/browser/ui/views/browser_dialogs.h" 12 #include "chrome/browser/ui/views/browser_dialogs.h"
17 #include "chrome/browser/ui/webui/collected_cookies_ui_delegate.h" 13 #include "chrome/browser/ui/webui/collected_cookies_ui_delegate.h"
18 #include "content/browser/tab_contents/tab_contents.h" 14 #include "ui/gfx/native_widget_types.h"
19 #include "views/widget/widget.h" 15
16 #if !defined(WEBUI_TASK_MANAGER)
17 #include "chrome/browser/ui/gtk/task_manager_gtk.h"
18 #endif
19
20 #if !defined(OS_CHROMEOS)
21 #include "chrome/browser/ui/gtk/collected_cookies_gtk.h"
22 #include "chrome/browser/ui/gtk/repost_form_warning_gtk.h"
23 #endif
20 24
21 namespace browser { 25 namespace browser {
22 26
27 #if !defined(WEBUI_TASK_MANAGER)
23 void ShowTaskManager() { 28 void ShowTaskManager() {
24 TaskManagerGtk::Show(false); 29 TaskManagerGtk::Show(false);
25 } 30 }
26 31
27 void ShowBackgroundPages() { 32 void ShowBackgroundPages() {
28 TaskManagerGtk::Show(true); 33 TaskManagerGtk::Show(true);
29 } 34 }
35 #endif
30 36
31 void EditSearchEngine(gfx::NativeWindow parent, 37 void EditSearchEngine(gfx::NativeWindow parent,
32 const TemplateURL* template_url, 38 const TemplateURL* template_url,
33 EditSearchEngineControllerDelegate* delegate, 39 EditSearchEngineControllerDelegate* delegate,
34 Profile* profile) { 40 Profile* profile) {
35 new EditSearchEngineDialog(GTK_WINDOW(parent), template_url, NULL, profile); 41 new EditSearchEngineDialog(GTK_WINDOW(parent), template_url, NULL, profile);
36 } 42 }
37 43
44 #if !defined(OS_CHROMEOS)
38 void ShowRepostFormWarningDialog(gfx::NativeWindow parent_window, 45 void ShowRepostFormWarningDialog(gfx::NativeWindow parent_window,
39 TabContents* tab_contents) { 46 TabContents* tab_contents) {
40 new RepostFormWarningGtk(GTK_WINDOW(parent_window), tab_contents); 47 new RepostFormWarningGtk(GTK_WINDOW(parent_window), tab_contents);
41 } 48 }
42 49
43 void ShowCollectedCookiesDialog(gfx::NativeWindow parent_window, 50 void ShowCollectedCookiesDialog(gfx::NativeWindow parent_window,
44 TabContentsWrapper* wrapper) { 51 TabContentsWrapper* wrapper) {
45 #if defined(OS_CHROMEOS)
46 CollectedCookiesUIDelegate::Show(wrapper);
47 #else
48 new CollectedCookiesGtk(GTK_WINDOW(parent_window), wrapper); 52 new CollectedCookiesGtk(GTK_WINDOW(parent_window), wrapper);
53 }
49 #endif 54 #endif
50 }
51 55
52 } // namespace browser 56 } // namespace browser
OLDNEW
« no previous file with comments | « chrome/browser/resources/repost_form_warning.html ('k') | chrome/browser/ui/webui/chrome_web_ui_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698