diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-26 01:13:45 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-26 01:13:45 +0000 |
commit | 83d0e2ba3c024eda4291c505300217e7ad8d7ba0 (patch) | |
tree | 709637ef3a06d70fed44ecc9ad5892ef14e1da59 /webkit/tools/test_shell/webview_host_gtk.cc | |
parent | b6757a4e8d6140ca93381e283bf55664f87d424a (diff) | |
download | chromium_src-83d0e2ba3c024eda4291c505300217e7ad8d7ba0.zip chromium_src-83d0e2ba3c024eda4291c505300217e7ad8d7ba0.tar.gz chromium_src-83d0e2ba3c024eda4291c505300217e7ad8d7ba0.tar.bz2 |
Revert all of my patches from today.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19328 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/webview_host_gtk.cc')
-rw-r--r-- | webkit/tools/test_shell/webview_host_gtk.cc | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/webkit/tools/test_shell/webview_host_gtk.cc b/webkit/tools/test_shell/webview_host_gtk.cc index cd491af..54e3ec8 100644 --- a/webkit/tools/test_shell/webview_host_gtk.cc +++ b/webkit/tools/test_shell/webview_host_gtk.cc @@ -6,11 +6,9 @@ #include "webkit/tools/test_shell/webview_host.h" -#include "base/logging.h" #include "base/gfx/rect.h" #include "base/gfx/size.h" #include "skia/ext/platform_canvas.h" -#include "webkit/glue/plugins/gtk_plugin_container.h" #include "webkit/glue/webview.h" // static @@ -31,38 +29,3 @@ WebViewHost* WebViewHost::Create(GtkWidget* parent_view, WebView* WebViewHost::webview() const { return static_cast<WebView*>(webwidget_); } - -GdkNativeWindow WebViewHost::CreatePluginContainer() { - GtkWidget* plugin_container = gtk_plugin_container_new(); - g_signal_connect(G_OBJECT(plugin_container), "plug-removed", - G_CALLBACK(OnPlugRemovedThunk), this); - gtk_container_add(GTK_CONTAINER(view_handle()), plugin_container); - gtk_widget_show(plugin_container); - gtk_widget_realize(plugin_container); - - GdkNativeWindow id = gtk_socket_get_id(GTK_SOCKET(plugin_container)); - - native_window_to_widget_map_.insert(std::make_pair(id, plugin_container)); - - return id; -} - -GtkWidget* WebViewHost::MapIDToWidget(GdkNativeWindow id) { - NativeWindowToWidgetMap::const_iterator i = - native_window_to_widget_map_.find(id); - if (i != native_window_to_widget_map_.end()) - return i->second; - - LOG(ERROR) << "Request for widget host for unknown window id " << id; - - return NULL; -} - -gboolean WebViewHost::OnPlugRemoved(GtkSocket* socket) { - // Remove the socket's id from our list of widgets. - GdkNativeWindow id = gtk_socket_get_id(socket); - native_window_to_widget_map_.erase(id); - - return FALSE; // Destroy our widget. -} - |