OLD | NEW |
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 "webkit/tools/test_shell/webview_host.h" | 5 #include "webkit/tools/test_shell/webview_host.h" |
6 | 6 |
7 #include "base/gfx/platform_canvas.h" | |
8 #include "base/gfx/rect.h" | 7 #include "base/gfx/rect.h" |
9 #include "base/gfx/size.h" | 8 #include "base/gfx/size.h" |
10 #include "base/win_util.h" | 9 #include "base/win_util.h" |
| 10 #include "skia/ext/platform_canvas.h" |
11 #include "webkit/glue/webinputevent.h" | 11 #include "webkit/glue/webinputevent.h" |
12 #include "webkit/glue/webview.h" | 12 #include "webkit/glue/webview.h" |
13 | 13 |
14 static const wchar_t kWindowClassName[] = L"WebViewHost"; | 14 static const wchar_t kWindowClassName[] = L"WebViewHost"; |
15 | 15 |
16 /*static*/ | 16 /*static*/ |
17 WebViewHost* WebViewHost::Create(gfx::WindowHandle parent_window, | 17 WebViewHost* WebViewHost::Create(gfx::WindowHandle parent_window, |
18 WebViewDelegate* delegate, | 18 WebViewDelegate* delegate, |
19 const WebPreferences& prefs) { | 19 const WebPreferences& prefs) { |
20 WebViewHost* host = new WebViewHost(); | 20 WebViewHost* host = new WebViewHost(); |
(...skipping 19 matching lines...) Expand all Loading... |
40 | 40 |
41 host->webwidget_ = WebView::Create(delegate, prefs); | 41 host->webwidget_ = WebView::Create(delegate, prefs); |
42 | 42 |
43 return host; | 43 return host; |
44 } | 44 } |
45 | 45 |
46 WebView* WebViewHost::webview() const { | 46 WebView* WebViewHost::webview() const { |
47 return static_cast<WebView*>(webwidget_); | 47 return static_cast<WebView*>(webwidget_); |
48 } | 48 } |
49 | 49 |
OLD | NEW |