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" |
(...skipping 23 matching lines...) Expand all Loading... |
34 Profile* profile) { | 34 Profile* profile) { |
35 new EditSearchEngineDialog(GTK_WINDOW(parent), template_url, NULL, profile); | 35 new EditSearchEngineDialog(GTK_WINDOW(parent), template_url, NULL, profile); |
36 } | 36 } |
37 | 37 |
38 void ShowRepostFormWarningDialog(gfx::NativeWindow parent_window, | 38 void ShowRepostFormWarningDialog(gfx::NativeWindow parent_window, |
39 TabContents* tab_contents) { | 39 TabContents* tab_contents) { |
40 new RepostFormWarningGtk(GTK_WINDOW(parent_window), tab_contents); | 40 new RepostFormWarningGtk(GTK_WINDOW(parent_window), tab_contents); |
41 } | 41 } |
42 | 42 |
43 void ShowCollectedCookiesDialog(gfx::NativeWindow parent_window, | 43 void ShowCollectedCookiesDialog(gfx::NativeWindow parent_window, |
44 TabContents* tab_contents) { | 44 TabContentsWrapper* wrapper) { |
45 #if defined(OS_CHROMEOS) | 45 #if defined(OS_CHROMEOS) |
46 CollectedCookiesUIDelegate::Show(tab_contents); | 46 CollectedCookiesUIDelegate::Show(wrapper); |
47 #else | 47 #else |
48 new CollectedCookiesGtk(GTK_WINDOW(parent_window), tab_contents); | 48 new CollectedCookiesGtk(GTK_WINDOW(parent_window), wrapper); |
49 #endif | 49 #endif |
50 } | 50 } |
51 | 51 |
52 } // namespace browser | 52 } // namespace browser |
OLD | NEW |