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 968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
979 | 979 |
980 void BrowserWindowGtk::ShowCollectedCookiesDialog(TabContents* tab_contents) { | 980 void BrowserWindowGtk::ShowCollectedCookiesDialog(TabContents* tab_contents) { |
981 // Deletes itself on close. | 981 // Deletes itself on close. |
982 new CollectedCookiesGtk(GetNativeHandle(), tab_contents); | 982 new CollectedCookiesGtk(GetNativeHandle(), tab_contents); |
983 } | 983 } |
984 | 984 |
985 void BrowserWindowGtk::ShowThemeInstallBubble() { | 985 void BrowserWindowGtk::ShowThemeInstallBubble() { |
986 ThemeInstallBubbleViewGtk::Show(window_); | 986 ThemeInstallBubbleViewGtk::Show(window_); |
987 } | 987 } |
988 | 988 |
989 void BrowserWindowGtk::ShowHTMLDialog(HtmlDialogUIDelegate* delegate, | 989 gfx::NativeWindow BrowserWindowGtk::ShowHTMLDialog( |
990 gfx::NativeWindow parent_window) { | 990 HtmlDialogUIDelegate* delegate, gfx::NativeWindow parent_window) { |
991 browser::ShowHtmlDialog(parent_window, browser_->profile(), delegate); | 991 return browser::ShowHtmlDialog(parent_window, browser_->profile(), delegate); |
992 } | 992 } |
993 | 993 |
994 void BrowserWindowGtk::UserChangedTheme() { | 994 void BrowserWindowGtk::UserChangedTheme() { |
995 SetBackgroundColor(); | 995 SetBackgroundColor(); |
996 gdk_window_invalidate_rect(GTK_WIDGET(window_)->window, | 996 gdk_window_invalidate_rect(GTK_WIDGET(window_)->window, |
997 >K_WIDGET(window_)->allocation, TRUE); | 997 >K_WIDGET(window_)->allocation, TRUE); |
998 UpdateWindowShape(bounds_.width(), bounds_.height()); | 998 UpdateWindowShape(bounds_.width(), bounds_.height()); |
999 } | 999 } |
1000 | 1000 |
1001 int BrowserWindowGtk::GetExtraRenderViewHeight() const { | 1001 int BrowserWindowGtk::GetExtraRenderViewHeight() const { |
(...skipping 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2372 // are taken from the WMs' source code. | 2372 // are taken from the WMs' source code. |
2373 return (wm_name == "Blackbox" || | 2373 return (wm_name == "Blackbox" || |
2374 wm_name == "compiz" || | 2374 wm_name == "compiz" || |
2375 wm_name == "Compiz" || | 2375 wm_name == "Compiz" || |
2376 wm_name == "e16" || // Enlightenment DR16 | 2376 wm_name == "e16" || // Enlightenment DR16 |
2377 wm_name == "Metacity" || | 2377 wm_name == "Metacity" || |
2378 wm_name == "Mutter" || | 2378 wm_name == "Mutter" || |
2379 wm_name == "Openbox" || | 2379 wm_name == "Openbox" || |
2380 wm_name == "Xfwm4"); | 2380 wm_name == "Xfwm4"); |
2381 } | 2381 } |
OLD | NEW |