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

Side by Side 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, 1 month 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <gtk/gtk.h> 5 #include <gtk/gtk.h>
6 6
7 #include "webkit/tools/test_shell/webview_host.h" 7 #include "webkit/tools/test_shell/webview_host.h"
8 8
9 #include "base/gfx/platform_canvas.h" 9 #include "base/gfx/platform_canvas.h"
10 #include "base/gfx/rect.h" 10 #include "base/gfx/rect.h"
11 #include "base/gfx/size.h" 11 #include "base/gfx/size.h"
12 #include "webkit/glue/webinputevent.h" 12 #include "webkit/glue/webinputevent.h"
13 #include "webkit/glue/webview.h" 13 #include "webkit/glue/webview.h"
14 14
15 /*static*/ 15 /*static*/
16 WebViewHost* WebViewHost::Create(GtkWidget* box, 16 WebViewHost* WebViewHost::Create(GtkWidget* parent_window,
17 WebViewDelegate* delegate, 17 WebViewDelegate* delegate,
18 const WebPreferences& prefs) { 18 const WebPreferences& prefs) {
19 // TODO(agl): 19 WebViewHost* host = new WebViewHost();
20 // /usr/local/google/agl/src/chrome/src/webkit/tools/test_shell/gtk/webview_ho st.cc:19: error: no matching function for call to 'WebWidgetHost::Create(GtkWidg et*&, WebViewDelegate*&)'
21 WebViewHost* host = reinterpret_cast<WebViewHost *>(WebWidgetHost::Create(box, NULL));
22 20
23 // TODO(erg): 21 // TODO(erg):
24 // - Set "host->view_" 22 // - Set "host->view_"
25 // - Call "host->webwidget_->Resize" 23 // - Call "host->webwidget_->Resize"
26 host->webwidget_ = WebView::Create(delegate, prefs); 24 host->webwidget_ = WebView::Create(delegate, prefs);
27 host->webwidget_->Resize(gfx::Size(640, 480));
28 host->webwidget_->Layout();
29 25
30 return host; 26 return host;
31 } 27 }
32 28
33 WebView* WebViewHost::webview() const { 29 WebView* WebViewHost::webview() const {
34 return static_cast<WebView*>(webwidget_); 30 return static_cast<WebView*>(webwidget_);
35 } 31 }
OLDNEW
« 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