From 692e5dbf12901edacf14812a6fae25462920af42 Mon Sep 17 00:00:00 2001 From: Steve Block Date: Tue, 27 Apr 2010 16:23:55 +0100 Subject: Merge webkit.org at r55033 : Initial merge by git Change-Id: I98a4af828067cc243ec3dc5e5826154dd88074b5 --- WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp') diff --git a/WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp b/WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp index 8ea8991..74f5e07 100644 --- a/WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp +++ b/WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp @@ -88,6 +88,23 @@ void ChromeClient::setWindowRect(const FloatRect& rect) "width", intrect.width(), "height", intrect.height(), NULL); + + gboolean autoResizeWindow; + WebKitWebSettings* settings = webkit_web_view_get_settings(m_webView); + g_object_get(settings, "auto-resize-window", &autoResizeWindow, NULL); + + if (!autoResizeWindow) + return; + + GtkWidget* window = gtk_widget_get_toplevel(GTK_WIDGET(m_webView)); +#if GTK_CHECK_VERSION(2, 18, 0) + if (gtk_widget_is_toplevel(window)) { +#else + if (GTK_WIDGET_TOPLEVEL(window)) { +#endif + gtk_window_move(GTK_WINDOW(window), intrect.x(), intrect.y()); + gtk_window_resize(GTK_WINDOW(window), intrect.width(), intrect.height()); + } } FloatRect ChromeClient::pageRect() @@ -546,6 +563,12 @@ void ChromeClient::runOpenPanel(Frame*, PassRefPtr prpFileChooser) gtk_widget_destroy(dialog); } +void ChromeClient::iconForFiles(const Vector&, PassRefPtr) +{ + // FIXME: Move the code in Icon::createIconForFiles() here. + notImplemented(); +} + bool ChromeClient::setCursor(PlatformCursorHandle) { notImplemented(); -- cgit v1.1