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 #include "chrome/browser/ui/gtk/browser_window_gtk.h" | 5 #include "chrome/browser/ui/gtk/browser_window_gtk.h" |
6 | 6 |
7 #include <gdk/gdkkeysyms.h> | 7 #include <gdk/gdkkeysyms.h> |
8 | 8 |
9 #include <dlfcn.h> | 9 #include <dlfcn.h> |
10 #include <string> | 10 #include <string> |
(...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
977 if (!download_shelf_.get()) | 977 if (!download_shelf_.get()) |
978 download_shelf_.reset(new DownloadShelfGtk(browser_.get(), | 978 download_shelf_.reset(new DownloadShelfGtk(browser_.get(), |
979 render_area_vbox_)); | 979 render_area_vbox_)); |
980 return download_shelf_.get(); | 980 return download_shelf_.get(); |
981 } | 981 } |
982 | 982 |
983 void BrowserWindowGtk::ShowRepostFormWarningDialog(TabContents* tab_contents) { | 983 void BrowserWindowGtk::ShowRepostFormWarningDialog(TabContents* tab_contents) { |
984 new RepostFormWarningGtk(GetNativeHandle(), tab_contents); | 984 new RepostFormWarningGtk(GetNativeHandle(), tab_contents); |
985 } | 985 } |
986 | 986 |
987 void BrowserWindowGtk::ShowCollectedCookiesDialog(TabContents* tab_contents) { | 987 void BrowserWindowGtk::ShowCollectedCookiesDialog(TabContentsWrapper* wrapper) { |
988 // Deletes itself on close. | 988 // Deletes itself on close. |
989 new CollectedCookiesGtk(GetNativeHandle(), tab_contents); | 989 new CollectedCookiesGtk(GetNativeHandle(), wrapper); |
990 } | 990 } |
991 | 991 |
992 void BrowserWindowGtk::ShowThemeInstallBubble() { | 992 void BrowserWindowGtk::ShowThemeInstallBubble() { |
993 ThemeInstallBubbleViewGtk::Show(window_); | 993 ThemeInstallBubbleViewGtk::Show(window_); |
994 } | 994 } |
995 | 995 |
996 gfx::NativeWindow BrowserWindowGtk::ShowHTMLDialog( | 996 gfx::NativeWindow BrowserWindowGtk::ShowHTMLDialog( |
997 HtmlDialogUIDelegate* delegate, gfx::NativeWindow parent_window) { | 997 HtmlDialogUIDelegate* delegate, gfx::NativeWindow parent_window) { |
998 return browser::ShowHtmlDialog(parent_window, browser_->profile(), delegate); | 998 return browser::ShowHtmlDialog(parent_window, browser_->profile(), delegate); |
999 } | 999 } |
(...skipping 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2370 // are taken from the WMs' source code. | 2370 // are taken from the WMs' source code. |
2371 return (wm_name == "Blackbox" || | 2371 return (wm_name == "Blackbox" || |
2372 wm_name == "compiz" || | 2372 wm_name == "compiz" || |
2373 wm_name == "Compiz" || | 2373 wm_name == "Compiz" || |
2374 wm_name == "e16" || // Enlightenment DR16 | 2374 wm_name == "e16" || // Enlightenment DR16 |
2375 wm_name == "Metacity" || | 2375 wm_name == "Metacity" || |
2376 wm_name == "Mutter" || | 2376 wm_name == "Mutter" || |
2377 wm_name == "Openbox" || | 2377 wm_name == "Openbox" || |
2378 wm_name == "Xfwm4"); | 2378 wm_name == "Xfwm4"); |
2379 } | 2379 } |
OLD | NEW |