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

Side by Side Diff: chrome/browser/gtk/browser_window_gtk.cc

Issue 441011: Created HtmlDialogTabContentsDelegate, which encapsulates the (Closed)
Patch Set: Synced to head. Created 11 years 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/gtk/browser_window_gtk.h" 5 #include "chrome/browser/gtk/browser_window_gtk.h"
6 6
7 #include <gdk/gdkkeysyms.h> 7 #include <gdk/gdkkeysyms.h>
8 #include <X11/XF86keysym.h> 8 #include <X11/XF86keysym.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after
1160 g_signal_connect(dialog, "response", G_CALLBACK(gtk_widget_destroy), NULL); 1160 g_signal_connect(dialog, "response", G_CALLBACK(gtk_widget_destroy), NULL);
1161 gtk_widget_show_all(dialog); 1161 gtk_widget_show_all(dialog);
1162 } 1162 }
1163 1163
1164 void BrowserWindowGtk::ShowThemeInstallBubble() { 1164 void BrowserWindowGtk::ShowThemeInstallBubble() {
1165 ThemeInstallBubbleViewGtk::Show(window_); 1165 ThemeInstallBubbleViewGtk::Show(window_);
1166 } 1166 }
1167 1167
1168 void BrowserWindowGtk::ShowHTMLDialog(HtmlDialogUIDelegate* delegate, 1168 void BrowserWindowGtk::ShowHTMLDialog(HtmlDialogUIDelegate* delegate,
1169 gfx::NativeWindow parent_window) { 1169 gfx::NativeWindow parent_window) {
1170 HtmlDialogGtk::ShowHtmlDialogGtk(browser_.get(), delegate); 1170 HtmlDialogGtk::ShowHtmlDialogGtk(browser_.get(), delegate, parent_window);
1171 } 1171 }
1172 1172
1173 void BrowserWindowGtk::UserChangedTheme() { 1173 void BrowserWindowGtk::UserChangedTheme() {
1174 SetBackgroundColor(); 1174 SetBackgroundColor();
1175 gdk_window_invalidate_rect(GTK_WIDGET(window_)->window, 1175 gdk_window_invalidate_rect(GTK_WIDGET(window_)->window,
1176 &GTK_WIDGET(window_)->allocation, TRUE); 1176 &GTK_WIDGET(window_)->allocation, TRUE);
1177 UpdateWindowShape(bounds_.width(), bounds_.height()); 1177 UpdateWindowShape(bounds_.width(), bounds_.height());
1178 } 1178 }
1179 1179
1180 int BrowserWindowGtk::GetExtraRenderViewHeight() const { 1180 int BrowserWindowGtk::GetExtraRenderViewHeight() const {
(...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after
2350 // are taken from the WMs' source code. 2350 // are taken from the WMs' source code.
2351 return (wm_name == "Blackbox" || 2351 return (wm_name == "Blackbox" ||
2352 wm_name == "compiz" || 2352 wm_name == "compiz" ||
2353 wm_name == "e16" || // Enlightenment DR16 2353 wm_name == "e16" || // Enlightenment DR16
2354 wm_name == "KWin" || 2354 wm_name == "KWin" ||
2355 wm_name == "Metacity" || 2355 wm_name == "Metacity" ||
2356 wm_name == "Mutter" || 2356 wm_name == "Mutter" ||
2357 wm_name == "Openbox" || 2357 wm_name == "Openbox" ||
2358 wm_name == "Xfwm4"); 2358 wm_name == "Xfwm4");
2359 } 2359 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/html_dialog_tab_contents_delegate_unittest.cc ('k') | chrome/browser/gtk/html_dialog_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698