| OLD | NEW |
| 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/fonts_languages_window.h" | 11 #include "chrome/browser/fonts_languages_window.h" |
| 12 #include "chrome/browser/ui/gtk/about_chrome_dialog.h" | 12 #include "chrome/browser/ui/gtk/about_chrome_dialog.h" |
| 13 #include "chrome/browser/ui/gtk/clear_browsing_data_dialog_gtk.h" | 13 #include "chrome/browser/ui/gtk/clear_browsing_data_dialog_gtk.h" |
| 14 #include "chrome/browser/ui/gtk/collected_cookies_gtk.h" | 14 #include "chrome/browser/ui/gtk/collected_cookies_gtk.h" |
| 15 #include "chrome/browser/ui/gtk/edit_search_engine_dialog.h" | 15 #include "chrome/browser/ui/gtk/edit_search_engine_dialog.h" |
| 16 #include "chrome/browser/ui/gtk/keyword_editor_view.h" | 16 #include "chrome/browser/ui/gtk/keyword_editor_view.h" |
| 17 #include "chrome/browser/ui/gtk/options/content_settings_window_gtk.h" | 17 #include "chrome/browser/ui/gtk/options/content_settings_window_gtk.h" |
| 18 #include "chrome/browser/ui/gtk/options/passwords_exceptions_window_gtk.h" | 18 #include "chrome/browser/ui/gtk/options/passwords_exceptions_window_gtk.h" |
| 19 #include "chrome/browser/ui/gtk/repost_form_warning_gtk.h" | 19 #include "chrome/browser/ui/gtk/repost_form_warning_gtk.h" |
| 20 #include "chrome/browser/ui/gtk/task_manager_gtk.h" | 20 #include "chrome/browser/ui/gtk/task_manager_gtk.h" |
| 21 #include "chrome/browser/ui/options/options_window.h" | 21 #include "chrome/browser/ui/options/options_window.h" |
| 22 #include "chrome/browser/ui/views/browser_dialogs.h" | 22 #include "chrome/browser/ui/views/browser_dialogs.h" |
| 23 #include "content/browser/tab_contents/tab_contents.h" | 23 #include "content/browser/tab_contents/tab_contents.h" |
| 24 #include "chrome/browser/ui/webui/collected_cookies_ui_delegate.h" |
| 24 #include "views/widget/widget.h" | 25 #include "views/widget/widget.h" |
| 25 | 26 |
| 26 namespace browser { | 27 namespace browser { |
| 27 | 28 |
| 28 void ShowClearBrowsingDataView(views::Widget* parent, | 29 void ShowClearBrowsingDataView(views::Widget* parent, |
| 29 Profile* profile) { | 30 Profile* profile) { |
| 30 ClearBrowsingDataDialogGtk::Show(GTK_WINDOW(parent->GetNativeView()), | 31 ClearBrowsingDataDialogGtk::Show(GTK_WINDOW(parent->GetNativeView()), |
| 31 profile); | 32 profile); |
| 32 } | 33 } |
| 33 | 34 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 60 } | 61 } |
| 61 | 62 |
| 62 void ShowContentSettingsWindow(gfx::NativeWindow parent_window, | 63 void ShowContentSettingsWindow(gfx::NativeWindow parent_window, |
| 63 ContentSettingsType content_type, | 64 ContentSettingsType content_type, |
| 64 Profile* profile) { | 65 Profile* profile) { |
| 65 ContentSettingsWindowGtk::Show(parent_window, content_type, profile); | 66 ContentSettingsWindowGtk::Show(parent_window, content_type, profile); |
| 66 } | 67 } |
| 67 | 68 |
| 68 void ShowCollectedCookiesDialog(gfx::NativeWindow parent_window, | 69 void ShowCollectedCookiesDialog(gfx::NativeWindow parent_window, |
| 69 TabContents* tab_contents) { | 70 TabContents* tab_contents) { |
| 71 #if defined(OS_CHROMEOS) |
| 72 CollectedCookiesUIDelegate::Show(tab_contents); |
| 73 #else |
| 70 new CollectedCookiesGtk(GTK_WINDOW(parent_window), tab_contents); | 74 new CollectedCookiesGtk(GTK_WINDOW(parent_window), tab_contents); |
| 75 #endif |
| 71 } | 76 } |
| 72 | 77 |
| 73 } // namespace browser | 78 } // namespace browser |
| OLD | NEW |