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

Unified Diff: webkit/tools/test_shell/gtk/webview_host.cc

Issue 8839: * Revert "Start writing the GTK code for test_shell." (Closed)
Patch Set: Created 12 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/tools/test_shell/gtk/test_shell.cc ('k') | webkit/tools/test_shell/gtk/webwidget_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/gtk/webview_host.cc
diff --git a/webkit/tools/test_shell/gtk/webview_host.cc b/webkit/tools/test_shell/gtk/webview_host.cc
index 4eecae1aead3188a74895d045c1a1701332d2add..d84ea7446d40a9addc063daff379497023f566c2 100644
--- a/webkit/tools/test_shell/gtk/webview_host.cc
+++ b/webkit/tools/test_shell/gtk/webview_host.cc
@@ -13,19 +13,15 @@
#include "webkit/glue/webview.h"
/*static*/
-WebViewHost* WebViewHost::Create(GtkWidget* box,
+WebViewHost* WebViewHost::Create(GtkWidget* parent_window,
WebViewDelegate* delegate,
const WebPreferences& prefs) {
- // TODO(agl):
- // /usr/local/google/agl/src/chrome/src/webkit/tools/test_shell/gtk/webview_host.cc:19: error: no matching function for call to 'WebWidgetHost::Create(GtkWidget*&, WebViewDelegate*&)'
- WebViewHost* host = reinterpret_cast<WebViewHost *>(WebWidgetHost::Create(box, NULL));
+ WebViewHost* host = new WebViewHost();
// TODO(erg):
// - Set "host->view_"
// - Call "host->webwidget_->Resize"
host->webwidget_ = WebView::Create(delegate, prefs);
- host->webwidget_->Resize(gfx::Size(640, 480));
- host->webwidget_->Layout();
return host;
}
« no previous file with comments | « webkit/tools/test_shell/gtk/test_shell.cc ('k') | webkit/tools/test_shell/gtk/webwidget_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698