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

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

Issue 6644002: [ChromeOS] Implement collected cookies in webui. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync and address arv's comments #1 Created 9 years, 9 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/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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 } 66 }
66 67
67 void ShowContentSettingsWindow(gfx::NativeWindow parent_window, 68 void ShowContentSettingsWindow(gfx::NativeWindow parent_window,
68 ContentSettingsType content_type, 69 ContentSettingsType content_type,
69 Profile* profile) { 70 Profile* profile) {
70 ContentSettingsWindowGtk::Show(parent_window, content_type, profile); 71 ContentSettingsWindowGtk::Show(parent_window, content_type, profile);
71 } 72 }
72 73
73 void ShowCollectedCookiesDialog(gfx::NativeWindow parent_window, 74 void ShowCollectedCookiesDialog(gfx::NativeWindow parent_window,
74 TabContents* tab_contents) { 75 TabContents* tab_contents) {
76 #if defined(OS_CHROMEOS)
77 CollectedCookiesUIDelegate::Show(tab_contents);
78 #else
75 new CollectedCookiesGtk(GTK_WINDOW(parent_window), tab_contents); 79 new CollectedCookiesGtk(GTK_WINDOW(parent_window), tab_contents);
80 #endif
76 } 81 }
77 82
78 } // namespace browser 83 } // namespace browser
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698